PDA

View Full Version : Xubuntu 12.04 Change width of scroll bars



bob-linux-user
March 25th, 2012, 06:29 PM
How can I change the default width of the scroll bars (vertical and horizontal) in the xubuntu greybird theme please? (I would like to double the width)

brainwash
March 25th, 2012, 07:42 PM
Hey,

just add following lines to ~/.gtkrc-2.0:


style "scrollbar"
{
GtkScrollbar::slider-width = 18
}
class "Gtk*Scrollbar" style "scrollbar"

style "resize-grip"
{
GtkWindow::resize-grip-height = 24
GtkWindow::resize-grip-width = 24
}
class "GtkWindow*" style "resize-grip"

They default width of the greybird scrollbar is 9.

edit:
The resize grip area needs to be resized to match the new appearance.

bob-linux-user
March 25th, 2012, 10:08 PM
Thanks Brainwash! It worked on most applications. However it did not work on Nautilus or Synaptic. I am not using overlay scrollbars in case that makes a difference.

brainwash
March 25th, 2012, 10:21 PM
Just logout and login again. :)

bob-linux-user
March 26th, 2012, 06:54 PM
Thanks Brainwash

That is a microsoft solution isn't it :-) ?

I tried logging out and in. The scrollbars on Synaptic and Nautilus are the same default width. The edit had no effect.

?

Regards

bob-linux-user

brainwash
March 26th, 2012, 07:40 PM
Synaptic gets started with root privileges, so there has to be a copy of .gtkrc-2.0 in the /root/ dir. You can link the file to the root folder:


sudo ln -s /home/<username>/.gtkrc-2.0 /root/.gtkrc-2.0

Not sure about Nautilus though.

LewisTM
March 26th, 2012, 08:22 PM
Nautilus and Synaptic are GTK 3.0 apps and thus will ignore .gtkrc-2.0

Not sure how to set custom styles though. Here's a nice starting point (http://mail.gnome.org/archives/gtk-list/2011-March/msg00108.html)for custom GTK 3.0 config files.

I think the settings you are looking for are in /usr/share/themes/greybird/gtk-3.0/gtk-bars.css
if you can modify this file and don't mind the system-wide changes. If you go for it, you might as well modify the gtkrc file in [..]/greybird/gtk-2.0

Cheers!

bob-linux-user
March 30th, 2012, 08:01 PM
Thanks LewisTM and Barainwash. Not looked on the forum recently as have been ill. Did not suceed with altering the files as sugested but decided to use the "Clearwaita" them which I found on Gnome look.

I think a graphical application that enables the user to tweak colors and scrollbars would be useful, especially with more people turning to xfce as has been sugested in some circles.

oldos2er
March 30th, 2012, 10:48 PM
Thread moved to Ubuntu +1 (Precise Pangolin).