GNOME Bugzilla – Bug 641228
Provide define for lighter/darker colors through GtkSymbolicColor
Last modified: 2014-08-30 06:33:34 UTC
Various people might need to do: gtk_symbolic_color_new_shade (c1, 1.3); or gtk_symbolic_color_new_shade (c1, 0.7); to get lighter/darker colors, and do it in the same way as GTK+. Could we have some #define for this?
Hmm, I don't think there's anything special about these numbers. In fact, grepping through gtk, we shade colors by other values as well. I see 0.6, 0.7, 0.8, 0.9, 0.93, 1.05, 1.3, 1.8, ...
Well, we can of course use any value, but I would expect having a small set of defines would help with overall consistency, especially when people implement new widgets for their app, or do some custrom drawing.
GtkSymbolicColor has been deprecated