Make things more readable
This commit is contained in:
parent
1157c8e21d
commit
1ee14df915
4 changed files with 70 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue