mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-27 14:50:21 +03:00
fix #817,count shadow size for mask thickness
This commit is contained in:
parent
9f31f0e0e4
commit
651be0bcbf
@ -143,7 +143,7 @@ DragDrop.DropArea {
|
||||
property int modifierClickAction: plasmoid.configuration.modifierClickAction
|
||||
property int modifierClick: plasmoid.configuration.modifierClick
|
||||
|
||||
property int panelEdgeSpacing: iconSize / 3
|
||||
property int panelEdgeSpacing: Math.max(iconSize / 3, 1.5*appShadowSize)
|
||||
property int panelTransparency: plasmoid.configuration.panelTransparency
|
||||
property bool panelShadowsActive: (( (plasmoid.configuration.panelShadows && !root.backgroundOnlyOnMaximized)
|
||||
|| (plasmoid.configuration.panelShadows && root.backgroundOnlyOnMaximized && !root.forceTransparentPanel))
|
||||
@ -152,7 +152,7 @@ DragDrop.DropArea {
|
||||
|
||||
|
||||
property int appShadowOpacity: (plasmoid.configuration.shadowOpacity/100) * 255
|
||||
property int appShadowSize: (0.4*root.iconSize) * (plasmoid.configuration.shadowSize/100)
|
||||
property int appShadowSize: enableShadows ? (0.4*root.iconSize) * (plasmoid.configuration.shadowSize/100) : 0
|
||||
property string appShadowColor: "#" + decimalToHex(appShadowOpacity) + plasmoid.configuration.shadowColor
|
||||
|
||||
property int totalPanelEdgeSpacing: 0 //this is set by PanelBox
|
||||
@ -195,12 +195,13 @@ DragDrop.DropArea {
|
||||
//decouple iconMargin which now is used only for length calculations with thickMargins
|
||||
//which are used for thickness calculations
|
||||
property int thickMarginBase: shrinkThickMargins ? (behaveAsPlasmaPanel ? 0 : 1) : Math.ceil(0.06 * iconSize)
|
||||
property int thickMarginHigh: shrinkThickMargins ? (behaveAsPlasmaPanel ? 0 : 1) : Math.ceil(0.06 * iconSize)
|
||||
property int thickMarginHigh: shrinkThickMargins ? (behaveAsPlasmaPanel ? 0 : 1) :
|
||||
Math.max( Math.ceil(0.06 * iconSize), 0.6 * appShadowSize)
|
||||
property int thickMargin: thickMarginBase + thickMarginHigh
|
||||
|
||||
//it is used in order to not break the calculations for the thickness placement
|
||||
//especially in automatic icon sizes calculations
|
||||
property int thickMarginOriginal: Math.ceil(0.12 * maxIconSize)
|
||||
property int thickMarginOriginal: Math.ceil(0.06 * maxIconSize + Math.max( Math.ceil(0.06 * maxIconSize), 0.6 * appShadowSize))
|
||||
|
||||
//! iconMargin from configuration is a percentage. The calculation provides a length
|
||||
//! for that value between 0.04 - 0.5 of iconSize, this way 100% iconMargin means
|
||||
|
Loading…
x
Reference in New Issue
Block a user