1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-21 22:50:14 +03:00

disable dynamicBackground for !compositing

--disable also the panel opacity for !compositing
This commit is contained in:
Michail Vourlakos 2018-02-22 17:22:26 +02:00
parent 444c730048
commit 6d08319c10
4 changed files with 8 additions and 4 deletions

View File

@ -265,7 +265,8 @@ Item{
anchors.fill:parent
opacity: (root.solidPanel && !plasmoid.configuration.solidBackgroundForMaximized) || root.forceSolidPanel
|| (root.hasExpandedApplet && root.zoomFactor===1 && plasmoid.configuration.panelSize===100) ?
|| (root.hasExpandedApplet && root.zoomFactor===1 && plasmoid.configuration.panelSize===100)
|| !Latte.WindowSystem.compositingActive ?
1 : plasmoid.configuration.panelTransparency / 100
property rect efGeometry: Qt.rect(-1,-1,0,0)

View File

@ -164,9 +164,10 @@ Item{
target: dock && dock.visibility ? dock.visibility : null
property: "enabledDynamicBackground"
when: dock && dock.visibility
value: root.backgroundOnlyOnMaximized
value: (root.backgroundOnlyOnMaximized
|| plasmoid.configuration.solidBackgroundForMaximized
|| root.disablePanelShadowMaximized
|| root.disablePanelShadowMaximized)
&& Latte.WindowSystem.compositingActive
}
Connections{

View File

@ -79,10 +79,11 @@ DragDrop.DropArea {
property bool containsOnlyPlasmaTasks: false //this is flag to indicate when from tasks only a plasma based one is found
property bool dockContainsMouse: dock && dock.visibility ? dock.visibility.containsMouse : false
property bool disablePanelShadowMaximized: plasmoid.configuration.disablePanelShadowForMaximized
property bool disablePanelShadowMaximized: plasmoid.configuration.disablePanelShadowForMaximized && Latte.WindowSystem.compositingActive
property bool drawShadowsExternal: panelShadowsActive && behaveAsPlasmaPanel && !visibilityManager.inTempHiding
property bool editMode: editModeVisual.inEditMode
property bool forceSolidPanel: plasmoid.configuration.solidBackgroundForMaximized && dock && dock.visibility
&& Latte.WindowSystem.compositingActive
&&(dock.visibility.existsWindowMaximized || dock.visibility.existsWindowSnapped)
property bool forceTransparentPanel: root.backgroundOnlyOnMaximized
&& !(dock.visibility.existsWindowMaximized || dock.visibility.existsWindowSnapped)

View File

@ -90,6 +90,7 @@ PlasmaComponents.Page {
ColumnLayout {
spacing: units.smallSpacing
Layout.rightMargin: units.smallSpacing * 2
enabled: Latte.WindowSystem.compositingActive
Header {
text: i18n("Dynamic Background")