Results 1 to 6 of 6

Thread: Change scrollbar width, arrows, static in Gnome theme Adwaita

  1. #1
    Join Date
    Oct 2019
    Posts
    15

    Default Change scrollbar width, arrows, static in Gnome theme Adwaita

    Desktop Gnome
    Theme Adwaita (not dark)

    I'd like to change the appearance of all scrollbars
    1. Double the current width
    2. Display arrow buttons
    3. Make it static, don't hide

    To /usr/share/themes/Adwaita/gtk-2.0/gtkrc I added:

    Code:
    style "my_tweaks" {
      GtkScrollbar::stepper-size                 = 16
      GtkScrollbar::has-backward-stepper         = 1
      GtkScrollbar::has-forward-stepper          = 1
    
      # this property does not exist in main.rc
      GtkScrollbar::slider-width         = 32
    
      GtkRange::slider-width      = 32
      GtkScale::slider_width        = 32
    }
    class "GtkWidget" style "my_tweaks"
    But nothing changed

  2. #2
    Join Date
    Dec 2008
    Location
    FL, USA
    Posts
    1,974

    Default Re: Change scrollbar width, arrows, static in Gnome theme Adwaita

    Quote Originally Posted by mife View Post
    /usr/share/themes/Adwaita/gtk-2.0/gtkrc
    does not apply to GTK3 apps, which most GTK apps in recent distro versions are. I suggest to investigate use of ~/.config/gtk-3.0/gtk.css and ~/.config/gtk-3.0/settings.ini to produce your desirable customizations. My gtk.css includes the following:
    Code:
    *{
    -GtkScrollbar-has-backward-stepper: 1;
    -GtkScrollbar-has-forward-stepper: 1;
    -GtkScrollbar-has-secondary-backward-stepper: 1;
    }
    
    scrollbar trough {
        min-width: 12px;
        min-height: 16px;
    }
    
    scrollbar slider {
         min-width: 12px;
         min-height: 16px;
    }
    Those steppers are up and down arrows at the ends of scrollbars. I don't use Gnome, so can't provide more specific suggestions.
    Reg. Linux User #211409 *** multibooting since 1992
    Primary: 42.3,TW,15.0 & 13.1 on Haswell w/ RAID
    Secondary: eComStation (OS/2)&42.3 on 965P/Radeon
    Tertiary: TW,15.0,42.3,Fedora,Debian,more on Kaby Lake,Q45,Q43,G41,G3X,965G,Cedar,Caicos,Oland,GT218&&&

  3. #3
    Join Date
    Oct 2019
    Posts
    15

    Default Re: Change scrollbar width, arrows, static in Gnome theme Adwaita

    Thanks for your suggestion, which I tried, but to no avail.

    First line in sudo nano /usr/share/themes/Adwaita/gtk-3.0/gtk.css reads
    /* Adwaita is the default theme of GTK+ 3, this file is not used */

  4. #4
    Join Date
    Dec 2008
    Location
    FL, USA
    Posts
    1,974

    Default Re: Change scrollbar width, arrows, static in Gnome theme Adwaita

    Quote Originally Posted by mife View Post
    First line in sudo nano /usr/share/themes/Adwaita/gtk-3.0/gtk.css reads
    /* Adwaita is the default theme of GTK+ 3, this file is not used */
    Users and admins shouldn't be touching /usr/share/ content with text editors. /etc/gtk-3.0/ and ~/.config/gtk-3.0/ are appropriate places. Conflicts between them and /usr/share/ are resolved against /usr/share/, while valid content in them that isn't addressed in /usr/share/ is nevertheless supposed to be applied.
    Reg. Linux User #211409 *** multibooting since 1992
    Primary: 42.3,TW,15.0 & 13.1 on Haswell w/ RAID
    Secondary: eComStation (OS/2)&42.3 on 965P/Radeon
    Tertiary: TW,15.0,42.3,Fedora,Debian,more on Kaby Lake,Q45,Q43,G41,G3X,965G,Cedar,Caicos,Oland,GT218&&&

  5. #5
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    27,829
    Blog Entries
    15

    Default Re: Change scrollbar width, arrows, static in Gnome theme Adwaita

    Hi
    As user mrmazda indicates, make the changes in your home directory....

    I use the following in ~/.config/gtk-2.0/ for gtk.css to set scrollbar width;

    Code:
    cat ~/.config/gtk-3.0/gtk.css
    
    scrollbar, scrollbar button, scrollbar slider {
       min-width: 12px;
       min-height: 12px;
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  6. #6
    Join Date
    Oct 2019
    Posts
    15

    Smile Re: Change scrollbar width, arrows, static in Gnome theme Adwaita

    It's working

    Finally I got you all - I was in the wrong directory.

    Went to my /home/(username)
    Told Nautilus to show hidden files
    Entered .config/gtk-3.0/
    Created file gtk.css

    Reboot et voila

    Thank you so much everybody

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •