Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Color Scheme #15

Closed
lukeaus opened this issue Jan 31, 2015 · 4 comments · Fixed by #19
Closed

Custom Color Scheme #15

lukeaus opened this issue Jan 31, 2015 · 4 comments · Fixed by #19

Comments

@lukeaus
Copy link

lukeaus commented Jan 31, 2015

Can't get custom colour theme to load in OSX with ST3 despite following instructions and multiple ST3 restarts

@NerOcrO
Copy link

NerOcrO commented Feb 8, 2015

Me too on Ubuntu/ST3 :(

@simonvizzini
Copy link

I'm having the same problem on Windows. I'm no ST3 expert, never wrote a plugin or even coded in Python, but by taking a look at the find_results.py file:

# Some plugins like **Color Highlighter** are forcing their color-scheme to the activated view
# Although, it's something that should be fixed on their side, in the meantime, it's safe to force
# the color shceme on `on_activated_async` event.
class BFBForceColorSchemeCommand(sublime_plugin.EventListener):
    def on_activated_async(self, view):
        syntax = view.settings().get('syntax')
        if syntax and (syntax.endswith("Find Results.hidden-tmLanguage")):
            view.settings().set('color_scheme','Packages/BetterFindBuffer/FindResults.hidden-tmTheme')

If I understand it correctly, this plugin will always apply the color scheme from Packages/BetterFindBuffer/FindResults.hidden-tmTheme as soon as the find window gets activated?

I was only able to change the color scheme by editing the tmTheme file in Packages/BetterFindBuffer/FindResults.hidden-tmTheme but of course that is not a nice solution.

@NerOcrO
Copy link

NerOcrO commented May 25, 2015

There is a solution more correct.
Change this line:

if syntax and (syntax.endswith("Find Results.hidden-tmLanguage")):

by

if syntax and (syntax.endswith("Find Results.hidden-tmTheme")):

And follow the documentation!

@a-dg
Copy link

a-dg commented Jun 16, 2015

@NerOcrO This worked great for me! Would you consider submitting a pull request?

kl0tl added a commit to kl0tl/BetterFindBuffer that referenced this issue Jul 11, 2015
@aziz aziz closed this as completed in #19 Jul 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants