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:
parent
198ce090ef
commit
4d6e986d2b
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user