Results 1 to 8 of 8

Thread: How to modify a theme without the Theme Configurator?

  1. #1
    Join Date
    May 2008
    Location
    Canada
    Beans
    215
    Distro
    Xubuntu 16.04 Xenial Xerus

    How to modify a theme without the Theme Configurator?

    I am using the Greybird theme and the Humanity-dark icon theme. This scheme allows me to set the desktop icon captions to white with a transparent background. A change with the Theme Configurator setting of "Highlight background" and "highlight text" (the first option) to black text also affects the desktop icon text and renders them unreadable. My question is which is the theme color settings file, so that I can modify the desktop icons from being affected by the Theme Configuraton?
    # Linux Mint Cinnamon 21.1 as of 2023-06-06 21:17

  2. #2
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    5,739

    Re: How to modify a theme without the Theme Configurator?

    I looked at this in the past, and don't think there is any independent setting for the desktop icon text color. In Xubuntu, it is set to the selected foreground color (selected_fg_color) in the theme configuration files - usually this is white. We can only set the font size. If you use the Theme Configurator, you just have to leave the Highlight Text (or Selection Text) color as it is, or use a color acceptable for the desktop as well.

    In Lubuntu on the other hand, the Desktop Settings dialog allows setting custom font size AND text color - a nice feature.

  3. #3
    Join Date
    May 2008
    Location
    Canada
    Beans
    215
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: How to modify a theme without the Theme Configurator?

    Dennis N, thanks for the reply. You confirmed my suspicions and I am doing exactly as you recommended.
    # Linux Mint Cinnamon 21.1 as of 2023-06-06 21:17

  4. #4
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    5,739

    Re: How to modify a theme without the Theme Configurator?

    @ineuw,

    This will be on interest should you come back to this thread. Contrary to what I had thought, I now find a couple of themes in the default set where the desktop icon text is NOT set to the highlighted text color (selected_fg_color). One is Albatross, the other is Raleigh. Albatross has a GTK-3.0 theme, so is preferable. The highlighted text color (selected_fg_color) in the theme configuration file for Albatross is near black (#333333), but the desktop icon's text color is white. In the attached image, I changed it to yellow with the Theme Configurator. Notice that the icon text color remains white.
    Attached Images Attached Images

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

    Re: How to modify a theme without the Theme Configurator?

    My gtkrc has this:

    Code:
    style "xfdesktop-icon-view"
    {
    	font_name = "normal"
    	XfdesktopIconView::label-alpha = 0
    	XfdesktopIconView::selected-label-alpha = 0
    	XfdesktopIconView::tooltip-size = 32
    	fg[NORMAL] = @bg_color
    	fg[ACTIVE] = @bg_color
    	fg[SELECTED] = @link_color
            base[SELECTED] = "#f07745"
    
    	engine "murrine"
    	{
    		textstyle = 5
    		text_shade = 0.05
    	}
    }
    Last edited by vasa1; December 16th, 2014 at 05:24 AM. Reason: posted incomplete code :(

  6. #6
    Join Date
    May 2008
    Location
    Canada
    Beans
    215
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: How to modify a theme without the Theme Configurator?

    Thanks to you both. I will try both because I am curious and want to control my workspace.
    # Linux Mint Cinnamon 21.1 as of 2023-06-06 21:17

  7. #7
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    5,739

    Re: How to modify a theme without the Theme Configurator?

    Quote Originally Posted by vasa1 View Post
    My gtkrc has this:

    Code:
    style "xfdesktop-icon-view"
    {
    	font_name = "normal"
    	XfdesktopIconView::label-alpha = 0
    	XfdesktopIconView::selected-label-alpha = 0
    	XfdesktopIconView::tooltip-size = 32
    	fg[NORMAL] = @bg_color
    	fg[ACTIVE] = @bg_color
    	fg[SELECTED] = @link_color
            base[SELECTED] = "#f07745"
    
    	engine "murrine"
    	{
    		textstyle = 5
    		text_shade = 0.05
    	}
    }
    @vasa1

    Thanks very much. I had looked at this section of the theme config. and didn't get my changes to work. I tried it again and now it does! Obviously I was doing something wrong, but I don't know what.

    @ineuw

    Change fg[NORMAL] and fg[ACTIVE] to hex color codes you want. These set the icon text color independent of anything else. Such as:

    fg[NORMAL] = "#E2EF70"
    fg[SELECTED] = "#000000"

    These are not affected by the Theme Configurator choices.

  8. #8
    Join Date
    May 2008
    Location
    Canada
    Beans
    215
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: How to modify a theme without the Theme Configurator?

    I looked into gtkrc, and my question is which version of GTK is Xubuntu using for the color management? I also noticed that GTK-3 is based on .css. Very interesting and thanks again for introducing me to GTK.
    # Linux Mint Cinnamon 21.1 as of 2023-06-06 21:17

Tags for this Thread

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
  •