Results 1 to 10 of 10

Thread: Changing colors in gtk 3 theme

  1. #1
    Join Date
    Oct 2004
    Beans
    107

    Changing colors in gtk 3 theme

    I installed a new gtk 3 theme and I like it very much.
    http://gnome-look.org/content/show.p...content=146775

    But I would like to change some things:

    I would like to change the font color of the clock in the panel
    I would like to change the textcolor of desktop icons
    I would like to change the textcolor of minimized programs in the taskbar.

    I'm looking in the gtk.css file but can't find wich option to change.

    Can someone with expertise in gtk 3 themes help me?

    Thanks

  2. #2
    Join Date
    Oct 2004
    Beans
    107

    Re: Changing colors in gtk 3 theme

    Nobody with some knowledge in gtk 3 themes.
    Please help

  3. #3
    Join Date
    Nov 2008
    Beans
    24

    Re: Changing colors in gtk 3 theme

    Quote Originally Posted by redman5087 View Post
    I would like to change the font color of the clock in the panel
    Open the file "gtk-3.0/apps/gnome-panel.css". Find the following code (approximately at the end of the file):

    Code:
    ClockBox {
        text-shadow: 0 1 shade (@dark_bg_color, 1.08);
    }
    and add a color property:

    Code:
    ClockBox {
        text-shadow: 0 1 shade (@dark_bg_color, 1.08);
        color: @fg_color;
    }
    "@fg_color" refers to a color set in the file "gtk.css". It's the same color used for the menu in the panel. If you want, you can use a custom color, for example (black):

    Code:
    ClockBox {
        text-shadow: 0 1 shade (@dark_bg_color, 1.08);
        color: #000000;
    }
    Quote Originally Posted by redman5087 View Post
    I would like to change the textcolor of desktop icons
    Open the file "gtk-3.0/apps/nautilus.css". At the end, add the following:

    Code:
    .nautilus-desktop.nautilus-canvas-item {
    	color: #ffffff;
    	text-shadow: 1 1 alpha (@fg_color, 0.8);
    }
    
    .nautilus-desktop.nautilus-canvas-item:active,
    .nautilus-desktop.nautilus-canvas-item:prelight,
    .nautilus-desktop.nautilus-canvas-item:selected {
    	text-shadow: none;
    }
    The font color on the desktop will now be white. Note that the property "text-shadow" is optionnal. You can remove it if you just want to change the color.

    Quote Originally Posted by redman5087 View Post
    I would like to change the textcolor of minimized programs in the taskbar.
    In the file "gtk-3.0/apps/gnome-panel.css", add the following at the end:

    Code:
    #tasklist-button {
    	color: @fg_color;
    }

  4. #4
    Join Date
    Oct 2004
    Beans
    107

    Re: Changing colors in gtk 3 theme

    I feel so stupid that I didn't find this on my own

    Many thanks for responding

  5. #5
    Join Date
    Sep 2011
    Beans
    1

    Re: Changing colors in gtk 3 theme

    Many thanks to jplfe. These are really very interesting tips.

    But I would like to thange the background-color of desktop icons.

    My file "gtk-3.0/apps/nautilus.css" contains:

    Code:
    .nautilus-desktop.nautilus-canvas-item {
        /*color: @bg_color;*/
        background-image: none;
        background-color: #000000;
        border-radius: 2;
        color: #ffffff;
        /*text-shadow: 1 1 alpha (#000000, 0.8);*/
        text-shadow: none;
    }
    
    .nautilus-desktop.nautilus-canvas-item:active {
        background-image: none;
        background-color: alpha (@bg_color, 0.84);
        border-radius: 2;
    
        color: @fg_color;
    }
    
    .nautilus-desktop.nautilus-canvas-item:selected {
        background-image: none;
        background-color: alpha (@selected_bg_color, 0.84);
        border-radius: 2;
    
        color: @selected_fg_color;
    }
    
    .nautilus-desktop.nautilus-canvas-item:active,
    .nautilus-desktop.nautilus-canvas-item:prelight,
    .nautilus-desktop.nautilus-canvas-item:selected {
        text-shadow: none;
    }
    I can change the color of the text to white, but I can't get a black background when the icon state is normal.

    When the icon state is normal, how do you get a background-color?

  6. #6
    Join Date
    May 2009
    Beans
    4

    Re: Changing colors in gtk 3 theme

    Same problem. Still no solution?

  7. #7
    Join Date
    Oct 2011
    Location
    West Bengal, India
    Beans
    92
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: Changing colors in gtk 3 theme

    Me too!
    Intel Core2Duo 2.20 GHz || 4 GB DDR3 RAM
    nVidia GT 240M 1 GB || 320 GB SATA Hard Disk

  8. #8
    Join Date
    Aug 2011
    Location
    I have no idea
    Beans
    Hidden!
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Changing colors in gtk 3 theme


  9. #9
    Join Date
    Jan 2013
    Beans
    1

    Re: Changing colors in gtk 3 theme

    Quote Originally Posted by johanfa View Post
    I can change the color of the text to white, but I can't get a black background when the icon state is normal.

    When the icon state is normal, how do you get a background-color?
    I have same problem in 12.04.2 - Still no info about fixing this? Is there any other wasy to get background color in desktop icons?

  10. #10
    Join Date
    Oct 2004
    Beans
    107

    Re: Changing colors in gtk 3 theme

    @jpfle

    The following code is not working anymore in Ubuntu 14.04 Flashback

    I tried to compare with Ambiance and Radiance but I don't find the difference!

    Code:
    #tasklist-button {
    	color: @fg_color;
    }
    Also I have another problem where there is a semi black line beneath the taskbar, it only appears with the indicators, see screenshot attached.

    You're help with be much appreciated...
    Attached Images Attached Images

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
  •