mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-13 04:58:18 +03:00
improve how panel thickness is calculated
--always provide the needed high margin for the panel background thickness
This commit is contained in:
parent
bd2336b7af
commit
4702bc0694
@ -203,17 +203,14 @@ Item{
|
||||
property int panelSize: automaticPanelSize
|
||||
property int automaticPanelSize: {
|
||||
if (root.behaveAsPlasmaPanel) {
|
||||
return root.iconSize + root.thickMargins;
|
||||
return root.iconSize + root.thickMargins + root.panelThickMarginHigh;
|
||||
} else {
|
||||
var icons = root.iconSize + root.thickMargins + 1;
|
||||
var icons = root.iconSize + root.thickMargins + root.panelThickMarginHigh;
|
||||
var panelt = root.themePanelThickness + root.panelThickMarginHigh;
|
||||
|
||||
root.realPanelThickness = icons;
|
||||
if (icons > panelt) {
|
||||
return panelt;
|
||||
} else {
|
||||
return icons;
|
||||
}
|
||||
|
||||
return Math.min(icons, panelt);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user