[Solved] How to change Nemo's background color?

Please post suggestions for improvement of Cinnamon here
https://github.com/linuxmint/Cinnamon
Post Reply
User avatar
administrollaattori
Level 14
Level 14
Posts: 5136
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

[Solved] How to change Nemo's background color?

Post by administrollaattori » Mon Nov 27, 2017 11:42 am

My eyes do not like white background, so I would like to change its color. There is a tutorial, but it does not work in LMDE 2.
Last edited by administrollaattori on Thu Nov 30, 2017 10:23 am, edited 1 time in total.

Penn
Level 5
Level 5
Posts: 751
Joined: Tue Jun 10, 2014 1:12 pm

Re: How to change Nemo's background color?

Post by Penn » Mon Nov 27, 2017 2:03 pm

Code: Select all

.view {
    background-color: #000000;
    color: @theme_text_color;
}
LMDE2. I don't remember which Cinnamon/Nemo version this started in and it will probably change a few other minor things to black but of course you can choose a different color. I use #202020 but I like a dark theme.

User avatar
administrollaattori
Level 14
Level 14
Posts: 5136
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: How to change Nemo's background color?

Post by administrollaattori » Mon Nov 27, 2017 4:02 pm

Penn wrote:

Code: Select all

.view {
    background-color: #000000;
    color: @theme_text_color;
}
LMDE2. I don't remember which Cinnamon/Nemo version this started in and it will probably change a few other minor things to black but of course you can choose a different color. I use #202020 but I like a dark theme.
Obviously LMDE is immune all kind of attempts to change Nemo's background color ... or I just cannot change the color. :?

Penn
Level 5
Level 5
Posts: 751
Joined: Tue Jun 10, 2014 1:12 pm

Re: How to change Nemo's background color?

Post by Penn » Mon Nov 27, 2017 6:35 pm

administrollaattori wrote:
Penn wrote:

Code: Select all

.view {
    background-color: #000000;
    color: @theme_text_color;
}
LMDE2. I don't remember which Cinnamon/Nemo version this started in and it will probably change a few other minor things to black but of course you can choose a different color. I use #202020 but I like a dark theme.
Obviously LMDE is immune all kind of attempts to change Nemo's background color ... or I just cannot change the color. :?
You didn't say which theme you wanted to alter so I just posted the line that I found works, which should already exist if you are using Mint-X.

/usr/share/themes/Mint-X/gtk-3.0/gtk-widgets.css in the section for * viewport *. It works in my LMDE2 install, assuming you want to change what I think you want to change. Actually, if you were to make it black "background-color" in Mint-X you would also want to change the "color" since the text might not be readable with black background.

If you aren't using Mint-X the section should still exist but I don't know where.

User avatar
administrollaattori
Level 14
Level 14
Posts: 5136
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: How to change Nemo's background color?

Post by administrollaattori » Tue Nov 28, 2017 8:04 am

I reseted everything in the /usr/share/themes folder, but Nemo's backgroud color seems to bolted to fcfcfc color. Everything else applications accept chancing the color, but not Nemo. Anyway it is not so big problem. Maybe it is a new feature, because I installed Cinnamon desktop a few days ago.

Code: Select all

Desktop: Cinnamon 3.4.6 (Gtk 3.14.5+4) Distro: LinuxMint 2 betsy 

User avatar
administrollaattori
Level 14
Level 14
Posts: 5136
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

[Solved] How to change Nemo's background color?

Post by administrollaattori » Thu Nov 30, 2017 10:22 am

After long fight I found an easy solution, which works with every theme. :D
viewtopic.php?f=42&t=258354

I just made a ~/.config/gtk-3.0/gtk.css file, which content is:

Code: Select all

.nemo-desktop.nemo-canvas-item {
  color: #ffffff;
}
 
.nemo-desktop.nemo-canvas-item:selected {
  background-color: alpha (#e0d963, 0.2);
}
 
NemoWindow .sidebar, NemoWindow .sidebar .view {
  background-color: #444;
  color: #eee; /* light grey */
}

NemoWindow .view {
    background-color: #76ecd7;
    color: #0d0c0c;
}
After making the file, logout and login. :D
gtk3-nemo-settings.png

Post Reply

Return to “Cinnamon”