From 0c956fac77a37dbf6156f0a8ffb8a09a093dcc30 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Fri, 6 Apr 2018 13:18:26 +0300 Subject: [PATCH] fix #961,Improve Visibility consider WindowsGoBelow --the following case: [Windows Go Bellow + Top Panel + Panel Transparency<40% + "Improve Visibility" + "Not Forced Solid Background for maximized windows"] disables the colorizer because the role of the background is done from the window titleBar. --- containment/package/contents/ui/main.qml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/containment/package/contents/ui/main.qml b/containment/package/contents/ui/main.qml index 236fe552f..5f5a4565a 100644 --- a/containment/package/contents/ui/main.qml +++ b/containment/package/contents/ui/main.qml @@ -101,6 +101,13 @@ DragDrop.DropArea { property bool forceColorizer: Latte.WindowSystem.compositingActive && plasmoid.configuration.colorizeTransparentPanels + property bool maximizedWindowTitleBarBehavesAsPanelBackground: dock && dock.visibility + && (!plasmoid.configuration.solidBackgroundForMaximized && plasmoid.configuration.backgroundOnlyOnMaximized) + && (dock.visibility.mode === Latte.Dock.WindowsGoBelow) + && (plasmoid.location === PlasmaCore.Types.TopEdge) + && (!useThemePanel || panelTransparency<40) + && dock.visibility.existsWindowMaximized + readonly property bool hasExpandedApplet: plasmoid.applets.some(function (item) { return (item.status >= PlasmaCore.Types.NeedsAttentionStatus && item.pluginName !== root.plasmoidName && item.status !== PlasmaCore.Types.HiddenStatus); @@ -1758,6 +1765,7 @@ DragDrop.DropArea { //! when forceSemiTransparentPanel is enabled because of snapped or maximized etc. windows //! then the colorizer could be enabled for low panel transparency levels (<40%) && (!forceSemiTransparentPanel || (forceSemiTransparentPanel && root.panelTransparency<40)) + && !maximizedWindowTitleBarBehavesAsPanelBackground && (plasmoid.configuration.solidBackgroundForMaximized || plasmoid.configuration.backgroundOnlyOnMaximized) && !root.editMode && Latte.WindowSystem.compositingActive