GNOME Bugzilla – Bug 676196
range: use a CSS margin to shrink the trough component
Last modified: 2012-05-17 13:43:17 UTC
This will allow us to remove another big part of Adwaita's overrides.
Created attachment 214214 [details] [review] range: remove commented out code We wouldn't need any detail anyway, since we use a progressbar style class for the progress part of GtkRange.
Created attachment 214215 [details] [review] range: read and use CSS margin values for the trough component Many themes want to render the trough background/stroke thinner than the full height/width (which is constructed around the value of the 'slider-width' style property). Read and apply the CSS margin from the theme on the trough component, so that themes can make it smaller at their will without the need to override the render_background, render_frame and render_activity methods of GtkThemingEngine.
Attachment 214214 [details] pushed as fb968e6 - range: remove commented out code Attachment 214215 [details] pushed as e32da24 - range: read and use CSS margin values for the trough component Ack-ed by Benjamin on IRC.