Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Themes and gtk

  1. #1
    Join Date
    Sep 2005
    Beans
    71

    Themes and gtk

    I recently upgraded to 11.1 and have ran into a couple of customization issues.

    I'm trying to tune my environment and I'm quite satisfied with colors and fonts, but I'm a bit confused when it comes to scrollbars, and in particular the gnome-terminal one. I find the "GNOME color chooser" very convenient, but it seem to onlyn alter gtk-2 related stuff. It seem that the gnome-term window consist of both gtk-2 and gtk-3 elements, but I can't figure out what files to edit for changing the probably gtk-3 related scrollbar in "gnome-terminal".
    Anyone out there interested in this scrollbar issue? I really like to change it's contrast and/or color.

  2. #2
    Join Date
    Apr 2010
    Beans
    1,584
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Themes and gtk

    Quote Originally Posted by ked View Post
    I recently upgraded to 11.1 and have ran into a couple of customization issues.

    I'm trying to tune my environment and I'm quite satisfied with colors and fonts, but I'm a bit confused when it comes to scrollbars, and in particular the gnome-terminal one. I find the "GNOME color chooser" very convenient, but it seem to onlyn alter gtk-2 related stuff. It seem that the gnome-term window consist of both gtk-2 and gtk-3 elements, but I can't figure out what files to edit for changing the probably gtk-3 related scrollbar in "gnome-terminal".
    Anyone out there interested in this scrollbar issue? I really like to change it's contrast and/or color.
    Me too. I've tried several differerent how-tos online to make the changes I want, but none of them are working. I miss the old way we could change Appearance in 10.10. We only have like 4 themes to choose from now. And you can't really do much with them.

  3. #3
    Join Date
    Feb 2010
    Location
    Obscurial Springs
    Beans
    15,266
    Distro
    Ubuntu Budgie Development Release

    Re: Themes and gtk

    There is a section at the link that addresses disabling the overlay scroll bars . http://www.webupd8.org/2011/10/thing...ng-ubuntu.html
    "Our intention creates our reality. "

    Ubuntu Documentation Search: Popular Pages
    Ubuntu: Security Basics
    Ubuntu: Flavors

  4. #4
    Join Date
    Sep 2005
    Beans
    71

    Re: Themes and gtk

    Quote Originally Posted by Frogs Hair View Post
    There is a section at the link that addresses disabling the overlay scroll bars . http://www.webupd8.org/2011/10/thing...ng-ubuntu.html
    Sorry, I forgot to say I've already disabled the overlay scrollbar. I just want to change the color of the old fashion one.

  5. #5
    Join Date
    Dec 2007
    Beans
    12,521

    Re: Themes and gtk

    Quote Originally Posted by ked View Post
    ...
    Anyone out there interested in this scrollbar issue? I really like to change it's contrast and/or color.
    Yes! I don't know why it's not being seen as an accessibility issue. Instead, it's being treated as a "tweaking" or "customization" issue and being given less importance.

    There are two bugs but ...
    https://bugs.launchpad.net/ubuntu/+s...es/+bug/563474
    with this: "Or set colorize_scrollbar to TRUE in theme gtkrc file. But it will work till next theme update " which I haven't tried
    and
    https://bugs.launchpad.net/ubuntu/+s...es/+bug/537048

  6. #6
    Join Date
    Dec 2007
    Beans
    12,521

    Re: Themes and gtk

    Change colorize from FALSE to TRUE in gtkrc (for gtk-2.0 stuff).

    Works for me. Now I get decent contrast in LibreOffice.

  7. #7
    Join Date
    Sep 2005
    Beans
    71

    Re: Themes and gtk

    Quote Originally Posted by vasa1 View Post
    Change colorize from FALSE to TRUE in gtkrc (for gtk-2.0 stuff).

    Works for me. Now I get decent contrast in LibreOffice.
    Yes, it works for gtk-2.0 stuff, but some apps seem to be dependent on both gtk-2.0 and gtk-3.0 stuff. I can't change the Evolution mail or Gnome terminal scrollbar color, but works nice for most other apps. Really annoying...

  8. #8
    Join Date
    Sep 2005
    Beans
    71

    Re: Themes and gtk

    I can see that the almost invisible scrollbars in the Ambiance theme has been an issue before, and that the problem was solved for gtk-2.0 stuff. But I understand that gtk-3.0 stuff is not affected by these solutions. I've been trying to figure out how colors are set in the Ambiance gtk-3.0 files, but I can't figure it out, and really I don't have time for this. (It's not within the scope of my project... )
    There are some color definitions I haven't edited in the different gtk.css files around. Maybe I'll play around a bit there to see what happens.

    Cheers...

  9. #9
    Join Date
    Sep 2005
    Beans
    71

    Re: Themes and gtk

    Finally!!! I found a way to change the gtk-3.0 scrollbar within the Ambiance theme to get both stepper buttons and a good contrast of the scrollbar.


    ~$sudo gedit /usr/share/themes/Ambiance/gtk-3.0/gtk-widgets.css

    scroll (if you can see the scrollbar...) to the

    /*************
    * scrollbar *
    *************/

    section (line 1252), and set

    -GtkScrollbar-has-backward-stepper: 1;
    -GtkScrollbar-has-forward-stepper: 1;

    if you like the stepper buttons activated.

    Then, in the ".scrollbar.trough.vertical" section (just under), change the "bg_color" to for instance #A5A5A5 (or any color you like) so the section looks like this:

    background-image: -gtk-gradient (linear, left top, right top,
    from (shade (#A5A5A5, 0.9)),
    to (shade (#A5A5A5, 0.95)));

    As far as I see, this helps for gtk-3.0 apps only (like Evolution and gnome-terminal).

    Hope this can be useful for others, or did I just invent the wheel again?



    Cheers...

  10. #10
    Join Date
    Sep 2005
    Beans
    71

    Re: Themes and gtk

    Quote Originally Posted by LIONFURY View Post
    Change colorize from FALSE to TRUE in gtkrc (for gtk-2.0 stuff).

    Works for me. Now I get decent contrast in LibreOffice.
    I did that for better scrollbars for the gtk-2.0 stuff, but it didn't do anything for the gtk-3.0 stuff, but now it works nice.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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