Better compact mode
This commit is contained in:
parent
0da59954cd
commit
071100459f
2 changed files with 3 additions and 3 deletions
|
|
@ -88,7 +88,7 @@ Singleton {
|
||||||
}
|
}
|
||||||
property real capsuleHeight: {
|
property real capsuleHeight: {
|
||||||
if (Settings.data.bar.density === "compact") {
|
if (Settings.data.bar.density === "compact") {
|
||||||
return barHeight * 0.95
|
return barHeight * 0.85
|
||||||
}
|
}
|
||||||
if (Settings.data.bar.density === "default") {
|
if (Settings.data.bar.density === "default") {
|
||||||
return barHeight * 0.82
|
return barHeight * 0.82
|
||||||
|
|
|
||||||
|
|
@ -86,7 +86,7 @@ Item {
|
||||||
}
|
}
|
||||||
total += Math.max(localWorkspaces.count - 1, 0) * spacingBetweenPills
|
total += Math.max(localWorkspaces.count - 1, 0) * spacingBetweenPills
|
||||||
total += horizontalPadding * 2
|
total += horizontalPadding * 2
|
||||||
return total
|
return Math.round(total)
|
||||||
}
|
}
|
||||||
|
|
||||||
function computeHeight() {
|
function computeHeight() {
|
||||||
|
|
@ -97,7 +97,7 @@ Item {
|
||||||
}
|
}
|
||||||
total += Math.max(localWorkspaces.count - 1, 0) * spacingBetweenPills
|
total += Math.max(localWorkspaces.count - 1, 0) * spacingBetweenPills
|
||||||
total += horizontalPadding * 2
|
total += horizontalPadding * 2
|
||||||
return total
|
return Math.round(total)
|
||||||
}
|
}
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue