1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-28 18:50:40 +03:00

fix disabled monochrome contents for no background

--when the user had chosen monochrome contents and had
disabled the panel background totally the case wasnt
activating monochrome contents when needed

(cherry picked from commit fc8a531837f835b421465a9d5369e505c6024020)
This commit is contained in:
Michail Vourlakos 2018-09-01 10:59:04 +03:00
parent a5a20c0af7
commit d080b9a89f

View File

@ -141,6 +141,8 @@ DragDrop.DropArea {
//has been dropped from the Dock Configuration Window
//property bool smallAutomaticIconJumps: plasmoid.configuration.smallAutomaticIconJumps
property bool smallAutomaticIconJumps: true
property bool userShowPanelBackground: Latte.WindowSystem.compositingActive ? plasmoid.configuration.useThemePanel : true
property bool useThemePanel: noApplets === 0 || !Latte.WindowSystem.compositingActive ?
true : (plasmoid.configuration.useThemePanel || plasmoid.configuration.solidBackgroundForMaximized)
@ -1774,7 +1776,7 @@ DragDrop.DropArea {
property bool isShown: active && !forceSolidPanel
//! 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))
&& (!userShowPanelBackground || !forceSemiTransparentPanel || (forceSemiTransparentPanel && root.panelTransparency<40))
&& !maximizedWindowTitleBarBehavesAsPanelBackground
&& (plasmoid.configuration.solidBackgroundForMaximized || plasmoid.configuration.backgroundOnlyOnMaximized)
&& !root.editMode && Latte.WindowSystem.compositingActive