1
0
mirror of https://github.com/KDE/latte-dock.git synced 2024-12-26 23:21:37 +03:00

make Latte panel background painting more important

--I reversed the logic meaning that the Latte panel
background painting in more important than the Plasma
original SVG painting. That way the animations between
panels painting become smoother with no glitches

BUG: 408552
This commit is contained in:
Michail Vourlakos 2019-06-11 17:23:44 +03:00
parent 24c9940bac
commit 98587d11d4

View File

@ -332,14 +332,12 @@ Item{
anchors.bottomMargin: Latte.WindowSystem.compositingActive ? shadowsSvgItem.margins.bottom : 0
anchors.fill:parent
opacity: {
if (forceSolidness) {
return 1;
} else if (!root.userShowPanelBackground || root.forcePanelForBusyBackground || root.forceTransparentPanel) {
opacity: {
if (overlayedBackground.opacity > 0) {
return 0;
} else {
return plasmoid.configuration.panelTransparency / 100;
}
return overlayedBackground.midOpacity;
}
readonly property bool forceSolidness: root.forceSolidPanel || !Latte.WindowSystem.compositingActive
@ -487,7 +485,7 @@ Item{
}
if (colorizerManager.mustBeShown && colorizerManager.applyTheme !== theme) {
return solidBackground.opacity;
return midOpacity;
}
return 0;
@ -515,6 +513,19 @@ Item{
return 0;
}
property real midOpacity: {
if (forceSolidness) {
return 1;
} else if (!root.userShowPanelBackground || root.forcePanelForBusyBackground || root.forceTransparentPanel) {
return 0;
} else {
return plasmoid.configuration.panelTransparency / 100;
}
}
readonly property bool forceSolidness: root.forceSolidPanel || !Latte.WindowSystem.compositingActive
Behavior on opacity{
enabled: Latte.WindowSystem.compositingActive
NumberAnimation { duration: barLine.animationTime }