GNOME Bugzilla – Bug 665420
arrow: make rendering of arrows possible with CSS
Last modified: 2014-07-10 03:25:03 UTC
This patchset reworks arrow rendering by adding an arrow-style-type property to GtkThemingEngine, similar to list-style-type of CSS. See http://www.w3.org/TR/CSS2/generate.html#propdef-list-style for more information.
Created attachment 202638 [details] [review] stylecontext: add GTK_STYLE_CLASS_ARROW For e.g. submenu items arrow in GtkMenuItems.
Created attachment 202639 [details] [review] stylecontext: always add the ARROW style class when rendering an arrow When gtk_render_arrow() is called, always add an ARROW style class to the GtkStyleContext before rendering, so themes can specify a different color for it.
Created attachment 202640 [details] [review] themingengine: add the arrow-style-type style property This is in inspiration similar to list-style-type in CSS proper, but adapted for arrows. Possible values are currently 'arrow' and 'triangle'.
Attachment 202638 [details] pushed as c538fb8 - stylecontext: add GTK_STYLE_CLASS_ARROW Attachment 202639 [details] pushed as d80ff7b - stylecontext: always add the ARROW style class when rendering an arrow Pushed the first two patches here; there's no consensus the idea from the third patch is actually a good one yet; let's keep it here in the meantime.
Renaming this bug; I'm not sure the patch I propose in comment #3 is the best solution, but we need to make this possible somehow.
*** Bug 686986 has been marked as a duplicate of this bug. ***
this has been done now, with -gtk-icon-source