-
Notifications
You must be signed in to change notification settings - Fork 74
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
Some base colors not swapped between light and dark #16
Comments
Yes, it would be awesome to sync automatically. I always do a manual check On 19 mei 2013, at 16:02, "Jørgen Ibsen" [email protected] wrote: There are a number of places where the base colors are not swapped between It might be helpful to fix one theme and then produce the other — |
FWIW, here is a quick Perl script I used to swap base colors so I could check for differences: my %invbase = (
'#002b36' => '#fdf6e3',
'#073642' => '#eee8d5',
'#586e75' => '#93a1a1',
'#657b83' => '#839496',
'#839496' => '#657b83',
'#93a1a1' => '#586e75',
'#eee8d5' => '#073642',
'#fdf6e3' => '#002b36',
);
while (<>) {
s/#002b36|#073642|#586e75|#657b83|#839496|#93a1a1|#eee8d5|#fdf6e3/$invbase{"\L$&"}/ig;
print $_;
} |
I started on a minimal Solarized theme the other day, to see if it would be possible to limit the rules to more or less just the root groups. I got sufficiently annoyed with XML that I wrote a Python script to generate themes from YAML sources. This is quite a big change, but if you are interested I made a brach showing how both theme files could be generated from one set of source files (just as an example): https://github.com/jibsen/Solarized/tree/yamltotm_build |
I've tried something similar, keeping the theme file small, with the themes I've created myself. The problems start when you want to support a lot of languages, because the language files deviate from the rules in subtle ways. Usually in ways that make sense, because the same patterns don't always return in the same way. And I like the syntax highlighting especially where it highlights subtle differences in syntaxes in a language: I don't need colours to see that $foo is a variable. So, anyway, we could always put your simplified themes in the package alongside the "traditional" versions. Just submit pull requests for the files and I'll pull them in. |
I've seen some other efforts that use a workable syntax like cson or yaml to build themes and yeah, that makes a lot of sense. However, I just went for some elbow grease and cleaned the themes out. Really for another couple years of use I think ;) |
There are a number of places where the base colors are not swapped between the light and dark theme - for instance
entity.name.function.c
, which results in C function names having the same color as comments when using the dark theme.It might be helpful to fix one theme and then produce the other automatically by substitution of the base colors, to avoid them "getting out of sync"?
The text was updated successfully, but these errors were encountered: