1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-01 00:58:24 +03:00

use panel theme in some cases that isnt chosen

--when the user has disabled the panel background
but has enabled a solid background for maximized windows
then in such case the panel background must be enabled
for when it is needed
This commit is contained in:
Michail Vourlakos 2018-03-05 21:56:17 +02:00
parent 198ce090ef
commit 4d6e986d2b
2 changed files with 11 additions and 2 deletions

View File

@ -282,7 +282,15 @@ Item{
anchors.bottomMargin: Latte.WindowSystem.compositingActive ? shadowsSvgItem.margins.bottom - bottomIncreaser : 0
anchors.fill:parent
opacity: forceSolidness ? 1 : plasmoid.configuration.panelTransparency / 100
opacity: {
if (forceSolidness) {
return 1;
} else if (!plasmoid.configuration.useThemePanel && plasmoid.configuration.solidBackgroundForMaximized) {
return 0;
} else {
return plasmoid.configuration.panelTransparency / 100;
}
}
readonly property bool forceSolidness: (root.solidPanel && !plasmoid.configuration.solidBackgroundForMaximized) || root.forceSolidPanel
|| (root.hasExpandedApplet && root.zoomFactor===1 && plasmoid.configuration.panelSize===100)

View File

@ -126,7 +126,8 @@ DragDrop.DropArea {
//has been dropped from the Dock Configuration Window
//property bool smallAutomaticIconJumps: plasmoid.configuration.smallAutomaticIconJumps
property bool smallAutomaticIconJumps: true
property bool useThemePanel: noApplets === 0 || !Latte.WindowSystem.compositingActive ? true : plasmoid.configuration.useThemePanel
property bool useThemePanel: noApplets === 0 || !Latte.WindowSystem.compositingActive ?
true : (plasmoid.configuration.useThemePanel || plasmoid.configuration.solidBackgroundForMaximized)
property alias hoveredIndex: layoutsContainer.hoveredIndex