netatoo / phoenix-theme

Dark & Light custom UI themes with colors variations for Sublime Text 2
891 stars 61 forks source link

How to enable Regex highlighting in Find/Change palette? #10

Open kapooostin opened 11 years ago

kapooostin commented 11 years ago

Standard theme has it but none of custom themes do. Is it possible to enable this feature?

netatoo commented 11 years ago

By Standard theme, you mean the Default.sublime-theme or the Soda theme ?

kapooostin commented 11 years ago

The Default one.

image

On 29 December 2012 02:58, Simon Martins notifications@github.com wrote:

By Standard theme, you mean the Default.sublime-theme or the Soda theme ?

— Reply to this email directly or view it on GitHubhttps://github.com/netatoo/phoenix-theme/issues/10#issuecomment-11743824.

facelessuser commented 11 years ago

If you want a theme used in your regex input panel, just create a Widget.sublime-settings file in your User folder and add the following line (switching out setting for the theme of your choice; I am using my own custom variation of Tomorrow-Night for mine).

{
    "color_scheme": "Packages/User/Color Scheme/Tomorrow-Night-Eighties-Dark.tmTheme"
}

I don't think sublime properly reads custom theme's widget.sublime-settings files, especially if they are buried in sub folders, but I know sublime seems to read it from my User folder. Just an FYI.

kapooostin commented 11 years ago

@facelessuser thanks for the direction to look into!

After some research I can say that ST does read settings from custom theme, but Soda theme uses almost empty scheme for widgets and Phoenix just copied this file. User settings do not override this, at least in my installation.

So I hacked a theme widget settings to get code highlighting in Find field.

facelessuser commented 11 years ago

Cool. User has always worked for me and is nice because I don't have to alter the theme package directly, but it's good to hear you got it working.