Re: Themable colors



Well, you've almost convinced me :)

Isn't it better than have API for colors similar to stock icons API:

struct GtkStockColorItem;

gtk_stock_color_items_add
gtk_stock_color_items_add_static
gtk_stock_color_item_free
gtk_stock_color_item_list_ids
gtk_stock_color_lookup

and add to GtkGC's api.

gtk_gc_get_from_stock

also it is possible and useful to make public gtk_style_shade function as

gtk_color_shade (GtkColor *color, gdouble shade)


and define a lot of stock colors:

GTK_STOCK_COLOR_ERROR         /* RED */
GTK_STOCK_COLOR_WARNING       /* YELLOW */
GTK_STOCK_COLOR_NORMAL        /* GREEN */
GTK_STOCK_COLOR_HIGHLIGHT     /* BLUE */

and so on for all HIG palette. Note that there are definitely should be about 
8 items with just numbers, as Soren stated, useful for graphs, charts.

GTK_STOCK_COLOR_ITEM_1
GTK_STOCK_COLOR_ITEM_2
GTK_STOCK_COLOR_ITEM_3
GTK_STOCK_COLOR_ITEM_4


application could add it's own stock colors and theme authors could modify it just like stock icons

Also I can't understand what can be done with private gc's in current GtkStyle, 
like text_aa, can they be removed or it would break ABI?




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