How to change button color in nemo

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
minkcv
Level 1
Level 1
Posts: 3
Joined: Fri Nov 13, 2015 7:25 pm

How to change button color in nemo

Post by minkcv »

I've been editing the gtk-main.css. I copied Mint-X-Aqua from /usr/share/themes/Mint-X-Aqua to ~/.themes/

gtk-main.css is in ~/.themes/Mint-X2/gtk-3.0/

I've been changing the colors at the top as follows:

Code: Select all

@define-color theme_bg_color #2c2c2c;
@define-color theme_fg_color #e6e6e6;
@define-color theme_base_color #404040;
@define-color theme_text_color #e6e6e6;
@define-color theme_selected_bg_color #6cabcd;
@define-color theme_selected_fg_color #f5f5f5;
@define-color theme_tooltip_bg_color #fbeaa0;
@define-color theme_tooltip_fg_color #212121;
Event if I change them all to "#ff0000" (pure red) it doesn't change the color of the arrows on the buttons at the top of nemo except the unclickable (inactive) arrows ARE red.

Code: Select all

@define-color insensitive_fg_color #ff0000;
Changes the color of the arrows in the unclickable buttons to red. How do I change the color of the arrows in the clickable buttons?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
JosephM
Level 6
Level 6
Posts: 1458
Joined: Sun May 26, 2013 6:25 pm

Re: How to change button color in nemo

Post by JosephM »

On about line 156 of gtk-widgets.css you will find this line

Code: Select all

.primary-toolbar.toolbar .button.image-button {
    color: #404040;
    icon-shadow: 0 1px alpha(white, 0.9);
}
Change the color to use @button_fg. Then your other changes should work. Not sure how that one hardcoded color ended up in there.
When I give opinions, they are my own. Not necessarily those of any other Linux Mint developer or the Linux Mint project as a whole.
minkcv
Level 1
Level 1
Posts: 3
Joined: Fri Nov 13, 2015 7:25 pm

Re: How to change button color in nemo

Post by minkcv »

That fixed it. Thank you so much Joseph.
Locked

Return to “Cinnamon”