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
pull/16/head
Michail Vourlakos 5 years ago
parent 2437c87a1c
commit 556ecae3e2

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

@ -825,7 +825,7 @@ PlasmaComponents.Page {
enabled: Latte.WindowSystem.compositingActive enabled: Latte.WindowSystem.compositingActive
PlasmaComponents.Label { 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") i18nc("opacity when desktop background is busy from contrast point of view","Busy Opacity") : i18n("Opacity")
horizontalAlignment: Text.AlignLeft horizontalAlignment: Text.AlignLeft
enabled: transparencySlider.enabled enabled: transparencySlider.enabled

Loading…
Cancel
Save