After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 641228 - Provide define for lighter/darker colors through GtkSymbolicColor
Provide define for lighter/darker colors through GtkSymbolicColor
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Class: GtkStyleContext
2.99.x
Other Linux
: Normal normal
: ---
Assigned To: Carlos Garnacho
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2011-02-02 10:19 UTC by Vincent Untz
Modified: 2014-08-30 06:33 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Vincent Untz 2011-02-02 10:19:37 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?
Comment 1 Matthias Clasen 2011-02-05 02:25:19 UTC
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, ...
Comment 2 Vincent Untz 2011-02-05 15:08:44 UTC
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.
Comment 3 Matthias Clasen 2014-08-30 06:33:34 UTC
GtkSymbolicColor has been deprecated