Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Background image is overlayed by GTK theming #2918

Open
JoseskVolpe opened this issue Jan 22, 2022 · 11 comments
Open

Background image is overlayed by GTK theming #2918

JoseskVolpe opened this issue Jan 22, 2022 · 11 comments

Comments

@JoseskVolpe
Copy link

 * Cinnamon version: Cinnamon 5.2.7
 * Distribution: Manjaro Linux
 * Graphics hardware *and* driver used: Intel HD Graphics 620, Mesa 3D Driver
 * 32 or 64 bit: 64-Bit
 * Attach ~/.xsession-errors, or /var/log/syslog: Sorry, but i'm not using Cinnamon the moment i'm submiting it, so the logs would be garbage. If that's still needed for this report, please tell me

Issue
Background image is overlayed by GTK theming if the theme is using "background-image" inside 'background' tag.
By adding this line inside "gtk.css"

.background {
   color: #ffffff;
   background-image: linear-gradient(to bottom, rgba(19, 19, 19, 1), rgba(9, 9, 9, 1)); 
}

That result is received:
Screenshot_20220122_052300

Steps to reproduce
From the control panel, apply a application theme that uses "background-image" inside the "background" tag

Expected behaviour
A GTK application theme should apply it's customization to the applications, but not to the whole desktop. In oher desktop environments like KDE Plasma and Gnome that configuration would only overlay application's backgrounds, while letting desktop background alone.

Other information

Configuration info, if applicable
If this bug report is related to an Applet, Desklet or Extension, please paste (or use a pastebin service) the offending extension's settings, if it has any. You can obtain this by opening its configuration, clicking the 'hamburger' button in the upper-right corner of the window, and selecting "Export to a file". Please be sure to review the contents and remove any personal data it may contain.


[Theme GitHub repository](https://github.com/JoseskVolpe/X-Vulpus-DarkRed)
@JosephMcc
Copy link
Contributor

Are you using Nemo as the file manager?This looks likes it's actually probably the file managers issue, not Cinnamons.

@JoseskVolpe
Copy link
Author

Yes, it came with Nemo after i installed Cinnamon to test my theme

@smurphos
Copy link
Contributor

This is easily reproduced by adding to ~/.config/gtk-3.0/gtk.css

.background {
   color: #ffffff;
   background-image: linear-gradient(to bottom, rgba(19, 19, 19, 1), rgba(9, 9, 9, 1)); 
}

Easily fixed by the theme author by using this in their theme

.background :not(nemo-desktop) {
   color: #ffffff;
   background-image: linear-gradient(to bottom, rgba(19, 19, 19, 1), rgba(9, 9, 9, 1)); 
}

or otherwise explicitly theming nemo-desktop.background

@JoseskVolpe
Copy link
Author

Unfortunately, it didn't worked :/
Desktop's background is still being overlayed

@smurphos
Copy link
Contributor

Make sure you restart nemo-desktop when testing - terminal command nemo-desktop -q You may need to restart it again with command nemo-desktop

@JoseskVolpe
Copy link
Author

I've logged out user then logged in again. But i'll try it

@JoseskVolpe
Copy link
Author

Killing neno-desktop made that overlay to disappear, so i can confirm it is a Nemo's issue, however bringing nemo-desktop back makes it to overlay the desktop background again

@smurphos
Copy link
Contributor

Mmm OK - doesn't work actually using your theme, only when I use those snippets in the local gtk-override..

@smurphos
Copy link
Contributor

Try including this in your theme -

.nemo-desktop-window { background-image: none; }

@JoseskVolpe
Copy link
Author

¡Yeah it works! But partially, because it removes the gradient effect on applications background now

@JoseskVolpe
Copy link
Author

¿Should i move this issue to Nemo repository?

@mtwebster mtwebster transferred this issue from linuxmint/cinnamon Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants