mate-desktop / mate-control-center

Utilities to configure the MATE desktop
https://mate-desktop.org
GNU General Public License v2.0
65 stars 58 forks source link

(Feature Request) Setting for changing Desktop Icon Font Colour #300

Open Tea-Fox opened 7 years ago

Tea-Fox commented 7 years ago

I made a similar request in 'mate-panel' for the panel text but I feel it would also prove to be a neat feature to have on the desktop itself, maybe even more so here than in the panel.

I would like to request a GUI setting (in 'Appearance' maybe) to change the font colour of Desktop Icon text as well as turning shadows for the font on or off as needed, I think this would be a really useful feature here, especially when changing to a desktop wallpaper that has the same colour as the font, it can make things a bit harder to read: example font colour

I know there are ways to change the font colour via scripts, but I don't think that's very user friendly and a GUI Setting would be nice to have.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/48123791-feature-request-setting-for-changing-desktop-icon-font-colour?utm_campaign=plugin&utm_content=tracker%2F559197&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F559197&utm_medium=issues&utm_source=github).
krkartikay commented 6 years ago

I am facing exactly this issue currently. Does anyone know how to solve this? What files do I have to edit? I've tried editing /usr/share/themes/Radiant-MATE/gtk-3.0/apps/nautilus.css and made this change:

21c21
<     color: @theme_selected_fg_color;
---
>     color: black; /*@theme_selected_fg_color;*/

But I see no change in the desktop font colour.

lukefromdc commented 6 years ago

You won't because that is for Nautilus. In MATE, the desktop is normally managed by caja, and the desktop text color is set in caja-desktop.css to white with a contrasting shadow as this works with most backgrounds.

/* desktop mode */
.caja-desktop.caja-canvas-item {
    color: #ffffff;
    text-shadow: 1px 1px alpha (#000000, 0.8);
}

This is loaded with GTK_STYLE_PROVIDER_PRIORITY_APPLICATION, which overrides themes but in turn can be overrriden by entries in ~/.config/gtk-3.0/gtk.css . Create that file, copy the css snippet above into it, and set the color and shadow you want. This is loaded with GTK_STYLE_PROVIDER_PRIORITY_USER and overrides absolutely everything else.

krkartikay commented 6 years ago

That worked for me! Thank you!

I will try to see if I can implement this feature in the GUI for other users as well. However I wanted to ask, where can I find the system-wide caja-desktop.css? I couldn't find it in /usr/share/themes.

lukefromdc commented 6 years ago

The systemwide file is part of Caja and is found in /usr/share/caja/