Re: Themable colors



> Some important points that need to be adressed are:
> 
> - We want to be able to write a simple "color setting" control. How does
> that work ? Is there a Setting containing a palette, ie essentially a
> map from color names to rgb triplets ? 
> 
> - How can themes adapt to the user-selected stock colors ? Do we add new
> rc file syntax like fg[NORMAL] = stock-color("foreground") ?
> 
> - Do themes need to be able to derive new colors from the stock colors ?
> If yes, how ? Do we parse color expressions like 
>   fg[NORMAL] = lerp(0.5, stock-color("foreground"), #ff00ff) ?
> 
> - How can themes mark themselves as being "recolorable" ? (We probably
> want to disable the color setting control if the theme uses fixed
> colors)


Got some good points here, but it can't really be the solution. See,
when I switch themes, the theme new theme should have a default set of
colors to go with it, but the user should still be able to change all
the colors. That said, I'd think that it makes most sense to have a
separate color-scheme shipped with a theme, not included in the gtkrc
file. Now you have a dialogue, where you can chose one of the shipped
color-schemes, edit it as you like and save it as your own. That way you
can easily switch between different schemes without loosing the changes
you did before.
Furthermore it enables themers to ship a default set of colors, which is
reasonable since different themes require different colors to look good.

Take care!

David




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