1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-28 18:50:40 +03:00

respect shrink margins for thickBase

--increase also the minimum for thickHigh in order
to follow plasma design

BUG: 398950, 398951
FIXED-IN: 0.8.2
This commit is contained in:
Michail Vourlakos 2018-09-23 11:42:33 +03:00
parent b3aa9bb61e
commit 23a1225c33

View File

@ -264,22 +264,20 @@ DragDrop.DropArea {
//which are used for thickness calculations
property int thickMarginBase: {
if (shrinkThickMargins) {
if (behaveAsPlasmaPanel){
return 0;
} else {
return 1;
}
return 0;
} else {
return Math.ceil(0.06 * iconSize);
}
}
property int thickMarginHigh: {
var minimum = 2;
if (shrinkThickMargins) {
if (behaveAsPlasmaPanel){
return (reverseLinesPosition ? Math.max(root.statesLineSize/2, 1) : 1);
return (reverseLinesPosition ? Math.max(root.statesLineSize/2, 1) : minimum);
} else {
return Math.max(1, 0.5 * appShadowSize);
return Math.max(minimum, 0.5 * appShadowSize);
}
} else {
if (behaveAsPlasmaPanel) {