Re: Themable colors



On Mon, 2005-03-28 at 12:37 +0400, nshmyrev wrote:
> There is a problem that meets every implementor of custom widget. It is 
> described here:
> 
> http://bugzilla.gnome.org/show_bug.cgi?id=114355

The bug is not very descriptive.  I'll add this text to it:

The original motivation was to extend the "stock color" system to
include things like

- colors for unvisited/visited links in hypertext

- nice pastel background colors for things like color-coded calendars

- a way to get useful variants of the above, like "darken(some_color)"
and "lighten(some_color)" for 3D effects.

- something else which I forget.

Having things like your proposed GTK_PALETTE_RED doesn't make much
sense; if you want a specific color, just use it from your app:

  GdkColor c;

  c.red = 0xffff;
  c.green = c.blue = 0;
  gdk_gc_set_rgb_fg_color (my_gc, &c);
  gdk_draw_line (drawable, my_gc, ...);

On the other hand, it would be good if "logical" colors like the ones
above for links/color-coded backgrounds were configurable from themes.

  Federico




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