More colour schemes - part 2



Hi all,

In order to have in control center more support for colour schemes for
metathemes, one year ago I opened a bug [1] with a little patch to
begin that discussion.  The patch wasn't implemented very well and now
I am trying to enhance it.

A themer could want to ship more than one colour scheme for his GTK
theme so that an user could select his favourite one using
gnome-appearance-properties.

Let's start again analyzing

  1) what actually are colour schemes;
  2) what we want to change;
  3) how should we store them.

[1] http://bugzilla.gnome.org/show_bug.cgi?id=499575


1) A colour scheme is a set of colours to use with a gtk theme. These
colours are:

fg_color, bg_color, base_color, text_color, selected_bg_color,
selected_fg_color, tooltip_bg_color, tooltip_fg_color.

Actually only one colour scheme is shipped for each gtk theme. This
default colour scheme is stored in
$PREFIX/share/themes/$THEME_NAME/gtk-2.0/gtkrc. An user could change
the default colour scheme, using gnome-appearance-properties and
selectig by hand his favourite colours.


2) We want to change the actual idea of a colour scheme, introducing a
"set" of many colour schemes per gtk theme or metatheme. An user could
change the current scheme by hand, colour by colour, or selecting a
default one using for example a combobox or a treeview.


3) A "set" of colour schemes could be stored in a ini-like file under
the main theme directory, for example
$PREFIX/share/themes/$THEME_NAME/colorschemes like this

  [id1]
  name[en] = name
  name[it] = nome
  name[de] = name
  ...
  fg_color = #000
  bg_color = #EDECEB
  ...

  [id2]
  ...

I chose a ini-like file to guarantee an easy localization of scheme
names, because it's easy to manipulate, for compliance with
index.theme file and because it's quite easy to edit and understand.


Finally, what I'd like to discuss here is

  a) should a colour scheme be considered a metatheme part (like
icons, gtk themes, metacity themes and so on) or a gtk theme part?
  b) what about the actual colour scheme implementation in gtkrc?
should it remain or should we integrate it in the colorschemes file?
  c) how the user interface should appear?  Is some form of preview
needed for colour schemes or not (for example a thumbnail in a
treeview or in a combobox)? And what about "colour" tab in customizing
window?


I hope we'll give an answer to these questions, because I think that a
single colour scheme is quite limiting for a themer/artist.

-- 
Giuseppe Fuggiano <giuseppe fuggiano gmail com>
OpenPGP key: D70B7158


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