I played a little with the general color settings this morning to find the information you need.
There is no setting which selects one of the available user color schemes as active color scheme. Instead the colors of a user color scheme are copied to the INI entry holding the colors of the active color scheme when selecting a user color scheme and closing the configuration dialog with button OK. Here are the missing information you need to write your program.
Index table for
Colors= in section
[Settings] holding the colors of the active color scheme.
Code: Select all
Index Item
----------------------------------------------------
0, 1 Plain Text Background
2, 3 Bookmarks
4, 5 Plain Text
6, 7 Selected Text
8, 9 Selected Text Background
10,11 Ruler, Line Number Column Background
12,13 Ruler, Line Number Column
14,15 Active Line
16,17 Active Line Background
18,19 Column Marker
20,21 Brace Highlight
22,23 Folding Background
24,25 Workspace Manager / Output Window
26,27 Workspace Manager / Output Window Background
28,29 Spaces, Tabs, Line Ends
First number (even index) can only have the values 0 or 1. 0 is for default color, 1 for custom color. If first number is 0 of a setting pair, second number is also 0. If first number is 1, second number is the BGR value (= blue * 65536 + green * 256 + red). The values are separated by commas.
The default color scheme as customized active color scheme would be:
Code: Select all
Colors=1,16777215,1,16776960,1,0,1,16777215,1,6956042,1,15461613,1,0,1,16711680,1,16640196,1,0,1,14474460,1,16119285,1,0,1,16777215,1,13882323
Tango Dark as active color scheme is:
Code: Select all
Colors=1,3552302,1,164,1,13621203,1,15527662,1,8751752,1,0,1,13621203,1,13621203,1,5461845,1,1776151,1,8751752,1,1776151,1,13621203,1,3552302,1,8081525
Tango Dark Alt as active color scheme is:
Code: Select all
Colors=1,3552302,1,164,1,13621203,1,15527662,1,8751752,1,0,1,13621203,1,13621203,1,2631458,1,1776151,1,5461845,1,1776151,1,13621203,1,3552302,1,8081525
Index table for a color scheme in section
[User Color Schemes]
Code: Select all
Index Item
----------------------------------------------------
0 Name of the color scheme
1 Plain Text
2 Plain Text Background
3 Selected Text
4 Selected Text Background
5 Active Line
6 Active Line Background
7 Spaces, Tabs, Line Ends
8 (Plain Text Background)
9 Ruler, Line Number Column
10 Ruler, Line Number Column Background
11 Workspace Manager / Output Window
12 Workspace Manager / Output Window Background
13 (Plain Text)
14 Bookmarks
15 (Plain Text Background)
16 Column Marker
17 (Plain Text)
18 Brace Highlight
19 (Plain Text)
20 Folding Background
The values in round brackets are copies. Making these values different to the referenced value has no affect. So make sure that the values of the copies match with the appropriate original value to avoid problems. The values are separated by semicolons.
The default color scheme as customized user color scheme is:
Code: Select all
0=Default Scheme;0;16777215;16777215;6956042;16711680;16640196;13882323;16777215;0;15461613;0;16777215;0;16776960;16777215;0;0;14474460;0;16119285