Scrollbar styling options

Your rating: None Average: 1 (1 vote)
- 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.
Status: 
Implemented

This is an idea I got time

This is an idea I got time ago... I will look into it, thanks for pointing it out
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

GtkScrollbar::trough-side-details = 1

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

the within-bevel thing was implemented, the second request it's easy but I'm not sure every will love it (as it will break themes).
It should defaults to bg[ACTIVE], but then will break old themes...

I'm editing a theme but when

I'm editing a theme but when I set the roundness of the scrollbar, the trough becomes round too, was this feature implemented in 0.90.3 svn ? How can I achieve a squared trough with a round scrollbar?

something happened in git...

something happened in git...

How can I make the bevel or

How can I make the bevel or background of the scrollbar flat, or what is the way to set its gradient? i cannot make it flat or change the gradient. Pls Help! Thx, Adam

trough_shades = {1.0, 1.0}

trough_shades = {1.0, 1.0}

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
  • Allowed HTML tags: <a> <b> <strong> <i> <em> <u> <br />

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions. Registered users are trusted and don't require this verification.
9 + 2 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.