Disable window dimming when focus is lost

He using another theme, he didn't give us any system information at all?

He showed the contents of the file with cat ~/.config/gtk-3.0/gtk.css...

1 Like

Ow welp, is it a part of the theme or gnome?

Theme. I tested it... Plus I recall another member had the same question about a month and a half ago and we performed the same solution, successfully, then.

1 Like

Ok imma try it and try to understand it, im gonna try it on my other computer which is collecting dust anyway. I will give more feedback afterwards.

1 Like

I found a solution

Yes, that also would work.

The gtk.css file placed in ~/.config/gtk-3.0 gets First Priority.
Then, the gtk.css file placed in either ~/.themes or ~/.local/share/themes gets next priority.

That is partly why I prefer edits to be made to ~/.config/gtk-3.0/gtk.css while the other reason is because edits are more easily altered or undone in ~/.config/gtk-3.0/gtk.css than they are in the Main Theme. What if you do not remember the Original parameters of the Original Theme, but it is already changed and saved?

Sometimes the accents still dim tho. I need to dig deeper in the css file. I will see what makes the shadows disappear.

U could make a backup, copy the file and rename it then save it in home folder.

1 Like

Absolutely.

ctrl+F, then search for everything that has the property :backdrop
Compare the backdrop items to the non-backdrop and you can recolor all :backdrop'ed properties to match the class that is not backdropped.
(Be wary that not all items that have a backdrop property should be changed. Read what you are changing. Use the back-up copy to restore mistakes).

1 Like

Nothing I tried seems to change anything.

Current system state:

redacted@redacted-lap:~$ uname -a
Linux redacted-lap 5.11.0-27-generic #29~20.04.1-Ubuntu SMP Wed Aug 11 15:58:17 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
redacted@redacted-lap:~$ cat /etc/issue.net 
Zorin OS 16
redacted@redacted-lap:~$ gsettings get org.gnome.desktop.interface gtk-theme
'ZorinBlue-Dark'
redacted@redacted-lap:~$ cat /home/redacted/.config/gtk-3.0/gtk.css 
.background:backdrop { color: #bde6fb; background-color: #1e2529; }
redacted@redacted-lap:~$ cat /usr/share/themes/ZorinBlue-Dark/gtk-3.0/gtk.css | grep .background:backdrop 
.background:backdrop { color: #6f828a; background-color: #1a2022; text-shadow: none; -gtk-icon-shadow: none; }
/* I manually inserted the following .background:backdrop  */
.background:backdrop { color: #bde6fb; background-color: #1e2529; }
popover.background:backdrop { background-color: #14191a; box-shadow: 0 1px 2px 1px rgba(0, 0, 0, 0.4); border-color: rgba(40, 48, 51, 0.75); }
redacted@redacted-lap:~$ 

The system was freshly installed about a week ago, and wasn't customised at all (except for the changed theme to dark in Zorin Appearance app). Is there any other information I can provide?

Thank you all!

Can you post screenshots showing the dimming effect?

Sure, here they are.

Right nano is in focus:

Left files is in focus:

1 Like

That is the same as I see on mine due to the backdrop property in the theme. I do not see anything there to suggest an outside Dimming Effect...
I am honestly at a loss.
The suggestions above should work and have worked on each instance I tested.

Ok... can you try a third party theme (It doesn't matter if you like it or hate it... just something that can give us a frame of reference to compare against) and see if you observe the same dimming effect?
You can snag one from Pling.com

The next test will be to use the ~/.config/gtk-3.0/gtk.css to make some obvious change that is easy to observe, like

button*
{background-image: linear-gradient(to bottom, pink, orange);
}

To see if that causes a direct and easy to see change. If so, then we know that the file is being seen and used by the engine.

I've tried several themes, and while most of them do some sort of the dim effect, I've found several that don't. One example is Qogir-win-dark. I honestly don't care much about the theme as long as it stays out of the way... I'm ok with staying with this one.

I've tried gradient from the post above, and i don't see any change. Weird...

Very weird.
The most I can offer is the suggestion made above in this post...
Copy the Zorin Theme you prefer to ~/.themes
Then modify the theme gtk.css file.

Correction, the button css did apply, but only to some buttons (not all programs), so I didn't spot it right away.

Some windows where it did apply:

And now you know how to prank another Linux user. :wink:

Well, have established that your gtk.css is being read.
What it may be is you and I are looking at different changes (different things have our attention.) We may not have enough classes listed in your gtk.css

We could try isolating each class; or take a riskier move using the * option
For example

window.background:backdrop* { color: #bde6fb; background-color: #1e2529; }

Ok found it, for terminal it should be overriden like this:

terminal-window .terminal-screen:backdrop { color: #bde6fb; background-color: #1e2529;}

Honestly it's just too much work for nothing. I think I'll just stick to one of other themes that don't have this behavior. I installed Zorin because I got tired of customizing and tweaking everything (I usually use Debian for everything), I wanted it to simply work, but so far it's not happening. I'm not finding any major problems, but some stuff just isn't polished and still requires manual tweaking and tinkering...

I have never tried any distro that I am not tweaking or changing around. It's pretty much impossible that some developer out there will have all the same tastes and configurations as me.
I don't really think that disliking a Theme Feature counts as lack of polish, however.

I make my own themes, so I do not use Zorin OS's default ones unless testing a user issue. It is interesting how much I do not know about the differences in Zorin Themes.