mirror of
https://github.com/KDE/latte-dock.git
synced 2025-01-09 17:18:11 +03:00
fix #760,enable effects when forceSolidPanel
--when the user has enabled to show solid panel for maximized windows the window effects must be enabled. This way the best contrast is provided.
This commit is contained in:
parent
c5b99b4576
commit
65c50e4200
@ -46,7 +46,7 @@ Item{
|
||||
property int length: root.isVertical ? Screen.height : Screen.width //screenGeometry.height : screenGeometry.width
|
||||
|
||||
property int slidingOutToPos: ((plasmoid.location===PlasmaCore.Types.LeftEdge)||(plasmoid.location===PlasmaCore.Types.TopEdge)) ?
|
||||
-thicknessNormal : thicknessNormal;
|
||||
-thicknessNormal : thicknessNormal;
|
||||
|
||||
property int statesLineSizeOriginal: root.latteApplet ? Math.ceil( root.maxIconSize/13 ) : 0
|
||||
|
||||
@ -103,7 +103,8 @@ Item{
|
||||
target: dock
|
||||
property: "drawEffects"
|
||||
when: dock
|
||||
value: root.blurEnabled && root.useThemePanel && !root.solidPanel
|
||||
value: (root.blurEnabled && root.useThemePanel && !root.solidPanel)
|
||||
|| (root.forceSolidPanel && windowsModel.hasMaximizedWindow && Latte.WindowSystem.compositingActive)
|
||||
}
|
||||
|
||||
Binding{
|
||||
@ -220,7 +221,7 @@ Item{
|
||||
//console.log("entered normal state...");
|
||||
//count panel length
|
||||
|
||||
var noCompositingEdit = !Latte.WindowSystem.compositingActive && root.editMode;
|
||||
var noCompositingEdit = !Latte.WindowSystem.compositingActive && root.editMode;
|
||||
//used when !compositing and in editMode
|
||||
if (noCompositingEdit) {
|
||||
tempLength = root.isHorizontal ? root.width : root.height;
|
||||
|
Loading…
Reference in New Issue
Block a user