├── QtCreator.png ├── README.md ├── generate-styles.pl ├── qtcreator-template.xml ├── solarized-dark.xml └── solarized-light.xml /QtCreator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/artm/qtcreator-solarized-syntax/b8d4be9d6f508f41cb23684aee8a82bcd3d28a53/QtCreator.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Solarized colors for Qt Creator 2 | 3 | See Ethan's [Solarized page](http://ethanschoonover.com/solarized) for the 4 | background information. 5 | 6 | [Dedicated repository of this port](https://github.com/artm/qtcreator-solarized-syntax). 7 | 8 | [Main Solarized repository](https://github.com/altercation/solarized). 9 | 10 | ![Qt Creator with solarized (light) style](https://github.com/artm/qtcreator-solarized-syntax/raw/master/QtCreator.png) 11 | 12 | ## Notes 13 | 14 | At this point only code editor's colors are affected. If you've 15 | installed apple-colorpalette-solarized you can choose compatible 16 | color for gui gradients, but most gui widgets and dialogs are 17 | unaffected by this choice. 18 | 19 | On some platforms (Linux?) Qt style can be controlled by 20 | `~/.config/Trolltech.conf` file, in which case you might find [gist by 21 | booiiing (Patric Schenke)](https://gist.github.com/929469) useful. 22 | 23 | Apparently, Qt Creator: 24 | 25 | - ignores some of the attributes (e.g. `background` of 26 | `CurrentLineNumber`, `foreground` of `SearchResult`) 27 | - derives extra colors from the style (for example for the backgrounds 28 | of nested blocks) 29 | - derives gradients from some colors (e.g. `Occurences`). I haven't 30 | found a way to control all aspects of these elements. I let Qt 31 | Creator control the color of `Occurences.Rename` and (in the light 32 | style) of `SearchScope`) 33 | - composes the gradients / backgrounds in some cases which makes the 34 | result differ from style color. This makes the current line background 35 | lighter then expected, for example. 36 | - different types of background highlight which keep the thext color, 37 | mean I had to deviate from the canonical solarized. 38 | 39 | 40 | I use light theme myself, dark one will probably have more issued at any given 41 | time. 42 | 43 | ## Installation 44 | 45 | ### Linux / Mac OS X 46 | 47 | Use either: 48 | 49 | ln solarized-*.xml ~/.config/QtProject/qtcreator/styles 50 | 51 | or: 52 | 53 | cp solarized-*.xml ~/.config/QtProject/qtcreator/styles 54 | 55 | to install styles. 56 | 57 | For newer versions of QtCreator after aquired by Digia: 58 | 59 | Use either: 60 | 61 | ln solarized-*.xml ~/.config/QtProject/qtcreator/styles 62 | 63 | or: 64 | 65 | cp solarized-*.xml ~/.config/QtProject/qtcreator/styles 66 | 67 | to install styles. 68 | 69 | ### Windows 70 | 71 | On Windows XP styles should go to: 72 | 73 | Documents and Settings\\Application Data\QtProject\qtcreator\styles 74 | 75 | On Windows 7: 76 | 77 | Users\\AppData\Roaming\QtProject\qtcreator\styles 78 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /generate-styles.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | use strict; 3 | use Template; 4 | 5 | my $vars = { 6 | base03 => "#002b36", 7 | base02 => "#073642", 8 | base01 => "#586e75", 9 | base00 => "#657b83", 10 | base0 => "#839496", 11 | base1 => "#93a1a1", 12 | base2 => "#eee8d5", 13 | base3 => "#fdf6e3", 14 | yellow => "#b58900", 15 | orange => "#cb4b16", 16 | red => "#dc322f", 17 | magenta => "#d33682", 18 | violet => "#6c71c4", 19 | blue => "#268bd2", 20 | cyan => "#2aa198", 21 | green => "#859900", 22 | }; 23 | 24 | my $tt = Template->new({INTERPOLATE=>1}) || die "$Template::ERROR\n"; 25 | 26 | 27 | # first light variant... 28 | $vars->{variant} = "light"; 29 | $vars->{bg} = $vars->{base3}; 30 | $vars->{bg1} = $vars->{base2}; 31 | $vars->{text} = $vars->{base00}; 32 | $vars->{emph} = $vars->{base01}; 33 | $vars->{lite} = $vars->{base1}; 34 | 35 | $tt->process("qtcreator-template.xml", $vars, "solarized-light.xml"); 36 | 37 | 38 | 39 | $vars->{variant} = "dark"; 40 | $vars->{bg} = $vars->{base03}; 41 | $vars->{bg1} = $vars->{base02}; 42 | $vars->{text} = $vars->{base0}; 43 | $vars->{emph} = $vars->{base1}; 44 | $vars->{lite} = $vars->{base01}; 45 | 46 | $tt->process("qtcreator-template.xml", $vars, "solarized-dark.xml"); 47 | 48 | -------------------------------------------------------------------------------- /qtcreator-template.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 |