Re: Recolorable themes



Hello,

On Tue, 2007-16-01 at 20:39 +0000, Thomas Wood wrote:
> 3) Save a ini format file in ~/.gnome2/color_schemes.ini (in a similar 
> was to index.theme)

Using a GKeyFile seems like a good solution to me. The benefit here is
that the same or a similar format can be used to extend the index.theme
file to ship a theme with multiple predefined color schemes.

The ~/.gnome2/color_schemes.ini could look something like this:

[ColorSchemes]
ColorSchemes = dark,light

[dark]
Name = Dark
Name[de] = Dunkel
Comment = A dark color scheme for XYZ
Comment[de] = Ein dunkeles Farbschema für XYZ

# Having a list of colors might be good, as one can add more
# metadata to the color scheme without troubles then
# (eg. the theme it was created for)
Colors = bg_color,fg_color
bg_color = #0f1310
fg_color = #ffffff
...

[light]
name = Light
...

In the index.theme just add the ColorSchemes key to the
X-GNOME-Metatheme group and do the same thing.

Benjamin

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]