Home Download Buy Blog Forum Support

show_quick_panel on_highlight callback

show_quick_panel on_highlight callback

Postby skaet on Tue May 07, 2013 12:20 am

I'm using the quick panel to preview colour schemes and themes using the on_highlight callback. I've noticed when initialising the quick panel with a selected_index value that the on_highlight callback is triggered once when the list items are populated then again after the selected_index is highlighted.

In the case of my plugins, this causes ST3 to "flicker" from the saved scheme/theme to the first list item back to the original scheme/theme being passed as the selected_index.

Can the quick panel functionality be tweaked to not trigger the on_highlight callback until after the selected_index?

It would also be nice if the quick panel scrolled to show the selected_index item
skaet
 
Posts: 93
Joined: Thu Sep 16, 2010 3:37 pm

Re: show_quick_panel on_highlight callback

Postby malkomalko on Tue Jun 18, 2013 1:03 pm

this is a little late but this is what I do: https://gist.github.com/malkomalko/957702138e4eb98b7860
malkomalko
 
Posts: 13
Joined: Sat Feb 02, 2013 12:54 pm


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: Google [Bot] and 5 guests