Scrollbar styling options
- Scrollbar trough caps should have no roundness to match scrolled-window that is always squared (or at least an option for it)
- Honour scrollbar-whitin-bevel property. Currently, it's draw outside the scrolled-window, having a border on all sides (which leads to a 2px border if you use scrollbar-spacing = 0).
- Being able to set the trough background color. The way it is now, the background is always the same color as the parent, leading to inconsistent scrollbar colors depending on the parent (e.g., if the scrollbar is inside a notebook or not). The widget should have the same background color, always. Overall, Murrine engine is great. Hope this improvements can be made to enable better and more consistent themes for the Gnome desktop. ;) See the attached image for a mockup.
- Honour scrollbar-whitin-bevel property. Currently, it's draw outside the scrolled-window, having a border on all sides (which leads to a 2px border if you use scrollbar-spacing = 0).
- Being able to set the trough background color. The way it is now, the background is always the same color as the parent, leading to inconsistent scrollbar colors depending on the parent (e.g., if the scrollbar is inside a notebook or not). The widget should have the same background color, always. Overall, Murrine engine is great. Hope this improvements can be made to enable better and more consistent themes for the Gnome desktop. ;) See the attached image for a mockup.
Status:
Implemented
This is an idea I got time
For the background depending on the parent... it's a feature :) I prefer if it inherits the color of the background, since the trough is like a cutting inside the wood (our "wood" is the notebook, background etc etc)
GtkScrollbar::trough-side-det
If you set that for your scrollbar widgets, you can then theme the trough. Beware as this messes up rounded scrollbars.
Below is my scrollbar config section:
style "scrollbar" {
GtkScrollbar::trough-side-details = 1
GtkRange::trough-border = 0
GtkRange::trough-under-steppers = 0 bg[SELECTED] = "#111"
bg[SELECTED] = @selected_bg_color
bg[SELECTED] = shade(1.20, @bg_color) bg[NORMAL] = shade(0.80, @bg_color)
bg[PRELIGHT] = shade(1.20, @bg_color)
bg[ACTIVE] = shade(0.80, @bg_color) fg[INSENSITIVE] = shade(0.85, @bg_color)
fg[NORMAL] = shade(0.50, @bg_color)
fg[PRELIGHT] = shade(1.50, @bg_color)
fg[ACTIVE] = shade(0.85, @bg_color)
engine "murrine" {
roundness = 0
contrast = 0.5
}
}
the within-bevel thing was
It should defaults to bg[ACTIVE], but then will break old themes...
I'm editing a theme but when
something happened in git...
How can I make the bevel or
trough_shades = {1.0, 1.0}
Post new comment