About nemo file manager: How can I change font color of folder name in toolbar button?

21
2014-04
  • BD-TH

    About Nemo file manager : How can I change font color of folder name in toolbar button ?

    Because I deeply prefer Ambiance theme,so I want to keep it but it mess up with the theme of Nemo which is my favourite file manager as shown in attached picture.

    How can I specifically tweak just folder name font's color of Nemo? Is there a way without recompiling the whole app?

    Nemo - Ambiance-theme-not-so-fit-in font color on Folder name's button

  • Answers
  • Roman Raguet

    You can try the following:

    1) Open your favorite editor. (eg:gedit) and create a new file named "nemo.css", add these lines:

    • /* font path bar */

      .nemo-pathbar-button,

      NemoPathbarButton {

      color: #4c4c4c;
      

      }

    enter image description here

    Add your favorite color in hexadecimal notation. I choose #4c4c4c (Grey color)

    enter image description here

    2) Save the file "nemo.css" in your Desktop.

    3) Open a Terminal and type:

    • sudo cp /home/*your_user*/Desktop/nemo.css /usr/share/themes/Ambiance/gtk-3.0/apps/

    4) Go to the /usr/share/themes/Ambiance/gtk-3.0/apps/ directory, and change the perms of the file.

    • cd /usr/share/themes/Ambiance/gtk-3.0/apps

    • sudo chmod 644 nemo.css

    5) Edit the gtk.css to import the "nemo.css", add this line: @import url("apps/nemo.css");

    • sudo gedit /usr/share/themes/Ambiance/gtk-3.0/gtk.css

    enter image description here

    6) Kill nemo with (pkill nemo) or just Logout and Login to see the changes.

    My case:

    enter image description here

    Hope this will helpful.

  • user5950

    Some good soul created a git repro for that problem: https://github.com/alsar/ubuntu-ambiance-nemo

    Perform the following commands:

    git clone https://github.com/alsar/ubuntu-ambiance-nemo
    cd ubuntu-ambiance-nemo/
    ./install.sh
    nemo -q
    

    Than Nemo will look as it should: enter image description here

  • BD-TH

    Thanks. Because of your guide about importing customized Stylesheet, I had found fantastic setting from

    http://segfault.linuxmint.com/2013/05/nemo-1-8-and-gtk-themes/

    Code goes..

    .nemo-pathbar-button,
    NemoPathbarButton {
    background-image: -gtk-gradient(linear, left top, left bottom,
    color-stop (0, shade(@dark_bg_color, 1.1)),
    color-stop (.3, shade(@dark_bg_color, 1.1)),
    color-stop (.7, shade(@dark_bg_color, 0.90)),
    color-stop (1, shade(@dark_bg_color, 0.80)));
    border-color: shade(@dark_bg_color, 0.7);
    -NemoPathbarButton-border-radius: 3px;
    }
    
    NemoPathbarButton:active {
    background-image: -gtk-gradient(linear, left top, left bottom,
    color-stop (0, shade(@dark_bg_color, .8)),
    color-stop (.3, shade(@dark_bg_color, .9)),
    color-stop (1, shade(@dark_bg_color, 1.0)));
    border-color: shade(@dark_bg_color, 0.7);
    }
    
    NemoPathbarButton:hover {
    background-image: -gtk-gradient(linear, left top, left bottom,
    color-stop (0, shade(alpha(@dark_bg_color, 1.4), 1.25)),
    color-stop (.3, shade(alpha(@dark_bg_color, 1.4), 1.25)),
    color-stop (.7, shade(alpha(@dark_bg_color, 1.4), 0.95)),
    color-stop (1, shade(alpha(@dark_bg_color, 1.4), 0.85)));
    border-color: shade(@dark_bg_color, 0.7);
    }
    

    Better look of Nemo with Ambiance

    Thanks again so much !!


  • Related Question

    11.10 - How can I change font color?
  • Ben

    The default font color is gray and the contrast makes it hard to read. How can I keep the theme (Ambiance) but make the font dark? I knew how to do this prior to Ubuntu 11.10 but now I can't find it. Thank you.


  • Related Answers
  • user57495

    To change the system font color of the Ambiance theme from gray to black, you can edit these three files:

    /usr/share/themes/Ambiance/gtk-2.0/gtkrc
    /usr/share/themes/Ambiance/gtk-3.0/settings.ini
    /usr/share/themes/Ambiance/gtk-3.0/gtk.css
    

    In these files change

    text_color:#3C3C3C to text_color:#000000

    fg_color:#4c4c4c to fg_color:#000000

    This should greatly improve contrast and make applications' menu and dialog text much easier to read.

  • rakesh

    This post may not help you, but may be useful for others :) Open the terminal (on top left you will find the File ... menu when you highlight the terminal) go to Edit->profile preferences

    click on colors tab, uncheck "use system colors.."

    select one of the options or customize the backgrounds and foreground colors.