mirror of
https://github.com/KDE/latte-dock.git
synced 2024-12-26 11:21:40 +03:00
use automatic icon size for behaveAsPlasmaPanel
--this way the panel can be shrinked because it exceeds screen boundaries even when view is used as a plasma panel
This commit is contained in:
parent
2414a918bb
commit
7d42891833
@ -70,6 +70,8 @@ Item{
|
||||
|
||||
//! is used from Panel in edit mode in order to provide correct masking
|
||||
property int thicknessEditMode: thicknessNormalOriginalValue + editModeVisual.settingsThickness
|
||||
//! when Latte behaves as Plasma panel
|
||||
property int thicknessAsPanel: root.iconSize + root.thickMargins
|
||||
|
||||
//! is used to increase the mask thickness
|
||||
readonly property int marginBetweenContentsAndRuler: root.editMode ? 10 : 0
|
||||
@ -104,7 +106,7 @@ Item{
|
||||
property:"maxThickness"
|
||||
//! prevents updating window geometry during closing window in wayland and such fixes a crash
|
||||
when: latteView && !inTempHiding && !inForceHiding
|
||||
value: thicknessZoomOriginal
|
||||
value: root.behaveAsPlasmaPanel && !root.editMode ? thicknessAsPanel : thicknessZoomOriginal
|
||||
}
|
||||
|
||||
property bool validIconSize: (root.iconSize===root.maxIconSize || root.iconSize === root.automaticIconSizeBasedSize)
|
||||
@ -114,7 +116,7 @@ Item{
|
||||
target: latteView
|
||||
property:"normalThickness"
|
||||
when: latteView && inPublishingState
|
||||
value: thicknessNormalOriginal
|
||||
value: root.behaveAsPlasmaPanel && !root.editMode ? thicknessAsPanel : thicknessNormalOriginal
|
||||
}
|
||||
|
||||
Binding{
|
||||
|
Loading…
Reference in New Issue
Block a user