Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

share|improve this question
add comment

3 Answers

up vote 4 down vote accepted

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.

share|improve this answer
add comment

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

share|improve this answer
add comment

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 !!

share|improve this answer
    
Thanks so much!!! This really helped me –  Felipe Oct 18 '13 at 2:42
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.