From 1cb0fdb965d3d5840303eb8b8fdbeb83356638ce Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Fri, 3 Feb 2017 18:52:10 +0200 Subject: [PATCH] trigger externals shadows when panelsize>=iconsize --- containment/contents/ui/PanelBox.qml | 2 +- containment/contents/ui/VisibilityManager.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/containment/contents/ui/PanelBox.qml b/containment/contents/ui/PanelBox.qml index 4fee9d182..9bcb14dc4 100644 --- a/containment/contents/ui/PanelBox.qml +++ b/containment/contents/ui/PanelBox.qml @@ -100,7 +100,7 @@ Item{ property int marginsHeight: root.drawShadowsExternal ? 0 : margins.top + margins.bottom property int panelSize: automaticPanelSize - property int automaticPanelSize: root.drawShadowsExternal ? root.themePanelSize + root.panelShadow: + property int automaticPanelSize: root.drawShadowsExternal ? root.statesLineSize + root.iconSize + root.iconMargin + 1: Math.min(root.themePanelSize + root.panelShadow + 1, root.statesLineSize + root.iconSize + root.iconMargin + 1) diff --git a/containment/contents/ui/VisibilityManager.qml b/containment/contents/ui/VisibilityManager.qml index 2a1127959..ab85695ca 100644 --- a/containment/contents/ui/VisibilityManager.qml +++ b/containment/contents/ui/VisibilityManager.qml @@ -40,7 +40,7 @@ Item{ property bool inStartup: root.inStartup property bool normalState : false // this is being set from updateMaskArea property bool previousNormalState : false // this is only for debugging purposes - property bool panelIsBiggerFromIconSize: root.useThemePanel && (root.themePanelSize >= (root.iconSize + root.iconMargin + 1)) + property bool panelIsBiggerFromIconSize: root.useThemePanel && (root.themePanelSize >= root.iconSize) property int animationSpeed: root.durationTime * 1.2 * units.longDuration property int length: root.isVertical ? Screen.height : Screen.width //screenGeometry.height : screenGeometry.width