1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-13 05:17:48 +03:00

improve option "Hide Background when not needed"

--when option "Hide Background when not needed" is
used on its own activates or not the forceTransparentPanel
code path. So when that option is enabled and any
window is touching the Latte::View then the force
transparency codepath should be disabled. In such
case the user background settings are applied.

BUG:414071
FIXED-IN:0.9.5
This commit is contained in:
Michail Vourlakos 2019-11-13 13:44:48 +02:00
parent 4b74474157
commit 63ed290593
2 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ Item {
&& Latte.WindowSystem.compositingActive
&& !inConfigureAppletsMode
&& !forceSolidPanel
&& !(windowColors === Latte.Types.TouchingWindowColors && latteView.windowsTracker.currentScreen.activeWindowTouching)
&& !latteView.windowsTracker.currentScreen.existsWindowTouching
&& !(windowColors === Latte.Types.ActiveWindowColors && selectedWindowsTracker.existsWindowActive)
property bool forcePanelForBusyBackground: userShowPanelBackground && (root.themeColors === Latte.Types.SmartThemeColors)

View File

@ -825,7 +825,7 @@ PlasmaComponents.Page {
enabled: Latte.WindowSystem.compositingActive
PlasmaComponents.Label {
text: plasmoid.configuration.backgroundOnlyOnMaximized ?
text: plasmoid.configuration.backgroundOnlyOnMaximized && plasmoid.configuration.solidBackgroundForMaximized ?
i18nc("opacity when desktop background is busy from contrast point of view","Busy Opacity") : i18n("Opacity")
horizontalAlignment: Text.AlignLeft
enabled: transparencySlider.enabled