xfce: changing scrollbar looks
Is there a _debian_ doc somewhere that shows how to change the xfce
scrollbar looks?
What I want is the "traditional" scrollbar look - ie. the damn thing
doesn't play hide & seek with me, it looks like a bar instead of a
wire, is wide enough that I can easily click on it when I'm using the
laptop mousepad, has enough contrast between the bar & background so
that I can easily find it, has up/down arrows that scroll the contents
of the window up/down one line at a time, etc.
I've found lots of little snippets, for various systems, that show how
to change one thing but nothing that pulls it all together. And I'm
*really* sick and tired of making a change & rebooting to see what
effect the change has.
What I've got so far:
$ cat .gtkrc-2.0
style "myscrollbar"
{
GtkScrollbar::activate-slider = 0 # if set, slider uses
trough color when sliding
GtkScrollbar::has_backward_stepper = 1 # if set, display the
standard backward arrow button
GtkScrollbar::has_forward_stepper = 1 # if set, display the
standard forward arrow button
GtkScrollbar::min-slider-length = 20
GtkScrollbar::slider-width = 16 # width of the scrollbar
GtkScrollbar::stepper-size = 16 #
GtkScrollbar::trough-border = 2 # spacing between steppers
and outer trough bevel
GtkScrollbar::has_secondary_backward_stepper = 0 # i want only one button on
GtkScrollbar::has_secondary_forward_stepper = 0 # either end of
the scrollbar
# bg: color of the widget
bg[ACTIVE] = "#606060" # trough colour
bg[INSENSITIVE] = "#D0D0D0" # ??? button color ???
bg[NORMAL] = "#D0D0D0" # scrollbar
bg[PRELIGHT] = "#E0E0E0" # button/scrollbar hover
bg[SELECTED] = "#FF0000" # ???
# fg: color of the text/graphic on the widget
fg[ACTIVE] = "#000000" # button will do something + pressed
fg[INSENSITIVE] = "#B3B3B3" # scrollbar at limit, button inactive
fg[NORMAL] = "#000000" # button will do something - pressed
fg[PRELIGHT] = "#00FF00" # ???
fg[SELECTED] = "#FF00FF" # ???
}
widget_class "*Scrollbar*" style "myscrollbar"
class "*Scrollbar*" style "myscrollbar"
Which gets me pretty close for GTK2 apps.
install qt5-style-plugins to "... also provides the GTK+ 2
platformtheme, which you would likely want to use if you want the GTK+
2 style."
and then set some environment variables:
$ cat /etc/environment
export QT_QPA_PLATFORMTHEME=gtk2
# -LR- try to get QT to use GTK2 theme
# -LR- ?? requires qt5-style-plugins package ??
export GTK_OVERLAY_SCROLLING=0
# -LR- always show scrollbars
# -LR- default is to hide the scrollbar until a mouseover
create a gtk3 css something
$ cat .config/gtk-3.0/gtk.css
.scrollbar, scrollbar {
-GtkScrollbar-has-backward-stepper: true;
-GtkScrollbar-has-forward-stepper: true;
-GtkRange::activate-slider: 0;
-GtkRange-slider-width: 16;
-GtkRange-stepper-size: 16;
}
and I'm getting there. Slowly. I'm hoping to get some pointers on
how2doit so I can quit the whole "make a change, reboot, see how it
looks" loop.
Thanks,
Lee
Reply to: