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

Thread: Highlighted text icons on desktop

  1. #1
    Join Date
    Nov 2011
    Beans
    19

    Talking Highlighted text icons on desktop

    Hello everybody
    after installing a mac theme from here , the icon's name on desktop are always highlighted :



    can you please help me fix it
    Last edited by dxtr12; May 27th, 2013 at 12:38 PM. Reason: Solved

  2. #2
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    1,825

    Re: Highlighted text icons on desktop

    To fix this, create a text file named .gtkrc-2.0 in your home folder with the following contents. Note the period at the beginning of the name (which makes it a hidden file). You can copy and paste the following:

    Code:
    style "xfdesktop-icon-view" { 
    XfdesktopIconView::label-alpha = 0 
    
    fg[NORMAL] = "#ffffff" 
    fg[SELECTED] = "#ffffff" 
    fg[ACTIVE] = "#ffffff" 
    } 
    
    
    widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"
    Now the icon text should have a transparent background.

  3. #3
    Join Date
    Nov 2011
    Beans
    19

    Re: Highlighted text icons on desktop

    Quote Originally Posted by Dennis N View Post
    To fix this, create a text file named .gtkrc-2.0 in your home folder with the following contents. Note the period at the beginning of the name (which makes it a hidden file). You can copy and paste the following:

    Code:
    style "xfdesktop-icon-view" { 
    XfdesktopIconView::label-alpha = 0 
    
    fg[NORMAL] = "#ffffff" 
    fg[SELECTED] = "#ffffff" 
    fg[ACTIVE] = "#ffffff" 
    } 
    
    
    widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"
    Now the icon text should have a transparent background.
    hey thnx for your reply
    i did what you said but it didn't work : here is the set of command i did
    touch /home/.gtkrc-2.0
    mousepad /home/.gtkrc-2.0
    then i copied your code and save the file , but it didn't worked

  4. #4
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    1,825

    Re: Highlighted text icons on desktop

    You have to logout and login for the change to take effect.
    Last edited by Dennis N; May 25th, 2013 at 01:33 AM.

  5. #5
    Join Date
    Nov 2011
    Beans
    19

    Re: Highlighted text icons on desktop

    Quote Originally Posted by Dennis N View Post
    You have to logout and login for the change to take effect.
    it didn't work even after i restarted it

  6. #6
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    1,825

    Re: Highlighted text icons on desktop

    What version of Xubuntu are you using?
    I am looking at the ppa - What is the full package name of the file you downloaded?

  7. #7
    Join Date
    Nov 2011
    Beans
    19

    Re: Highlighted text icons on desktop

    Quote Originally Posted by Dennis N View Post
    What version of Xubuntu are you using?
    I am looking at the ppa - What is the full package name of the file you downloaded?
    Xubuntu 13.04

  8. #8
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    1,825

    Re: Highlighted text icons on desktop

    @dxtr12

    I suggest you test if the .gtkrc-2.0 file is working by testing with the preinstalled themes (there are only 6, under Settings Manager > Appearance > Style) and check if the icon text background is transparent. If transparent, then the file is working. When I tried a couple of the preinstalls without the added file, the text background was whitish as in you screenshot. Greybird (the default) was an exception. I wanted to install another theme, Zukitwo, and it had this problem without the .gtkrc-2.0 file. It works fine with it.

    If the file works with the preinstalled themes, and your theme does not change, then obviously something else is causing this in your new theme.

    I did not invent this code. I have used it in the past several releases to solve this problem. A source for this technique (there are several on the web) is:

    http://xubuntugeek.blogspot.com/2012...cons-text.html

  9. #9
    Join Date
    Dec 2007
    Location
    Bombay
    Beans
    6,477
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: Highlighted text icons on desktop

    @DennisN, this is not strictly related to the question, but Greybird has many of the settings you mention within /usr/share/themes/gtk-2.0/gtkrc (towards the end of the file). So, if one wants, the values can be tweaked there (or in the corresponding location on ~/.themes) instead of editing .gtkrc-2.0.
    de gustibus et coloribus non est disputandum -- Wiktionary

  10. #10
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    1,825

    Re: Highlighted text icons on desktop

    Quote Originally Posted by vasa1 View Post
    @DennisN, this is not strictly related to the question, but Greybird has many of the settings you mention within /usr/share/themes/gtk-2.0/gtkrc (towards the end of the file). So, if one wants, the values can be tweaked there (or in the corresponding location on ~/.themes) instead of editing .gtkrc-2.0.
    I think Greybird was the only theme that had transparent desktop icon text background without using the extra .gtkrc-2.0, so I would guess the necessary code is added there to make it look good by default rather than relying on an external file. That would make sense. I will take a look when I next get on Xubuntu.

Page 1 of 2 12 LastLast

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
  •