Make things more readable

This commit is contained in:
Ly-sec 2025-09-14 09:05:51 +02:00
parent 1157c8e21d
commit 1ee14df915
4 changed files with 70 additions and 13 deletions

View file

@ -167,8 +167,14 @@ Variants {
// Position above the bar if it's at bottom
anchors.bottom: true
// TODO fixme
margins.bottom: barAtBottom ? barHeight + floatingMargin : floatingMargin
margins.bottom: {
switch (Settings.data.bar.position) {
case "bottom":
return (Style.barHeight + Style.marginM) * scaling + (Settings.data.bar.floating ? Settings.data.bar.marginVertical * Style.marginXL * scaling : 0)
default:
return floatingMargin
}
}
// Rectangle {
// anchors.fill: parent