[Breeze] [Bug 393238] Reduce shadow size/strength for background windows

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Mon Oct 28 11:49:03 GMT 2019


https://bugs.kde.org/show_bug.cgi?id=393238

--- Comment #21 from n4n0 at tuta.io ---
Uh, anyhow; to implement this, all you have to do is inside the
breezedecoration.cpp within void Decoration::createShadow(), add a few lines
along the likes of this:

> auto c = client().data();
> if ( !c->isActive() ) { strength /= 2 }

This will take the previously defined const qreal strength and divide it by 2
if the window is inactive. You can also settle for other values. In my theme I
made it a user setting to leave it at "Normal" (/=2), "Light" (/=4) or "None"
in which case inactive windows will have no shadows at all.

And depending on the outcome of your discussion, you can probably simply use a
check for QPropertyAnimation::Running to animate a transition.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Unassigned-bugs mailing list