Bar: proper top/bottom margin check
This commit is contained in:
parent
f670f88804
commit
6f6a5b364a
1 changed files with 3 additions and 3 deletions
|
|
@ -46,8 +46,8 @@ Variants {
|
||||||
|
|
||||||
// Floating bar margins - only apply when floating is enabled
|
// Floating bar margins - only apply when floating is enabled
|
||||||
margins {
|
margins {
|
||||||
top: Settings.data.bar.marginTop
|
top: Settings.data.bar.floating ? Settings.data.bar.marginTop : 0
|
||||||
bottom: Settings.data.bar.marginBottom
|
bottom: Settings.data.bar.floating ? Settings.data.bar.marginBottom : 0
|
||||||
left: Settings.data.bar.floating ? Settings.data.bar.marginLeft : 0
|
left: Settings.data.bar.floating ? Settings.data.bar.marginLeft : 0
|
||||||
right: Settings.data.bar.floating ? Settings.data.bar.marginRight : 0
|
right: Settings.data.bar.floating ? Settings.data.bar.marginRight : 0
|
||||||
}
|
}
|
||||||
|
|
@ -62,7 +62,7 @@ Variants {
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: Qt.alpha(Color.mSurface, Settings.data.bar.backgroundOpacity)
|
color: Qt.alpha(Color.mSurface, Settings.data.bar.backgroundOpacity)
|
||||||
|
|
||||||
// Floating bar rounded corners
|
// Floating bar rounded corners
|
||||||
radius: Settings.data.bar.floating ? Settings.data.bar.rounding : 0
|
radius: Settings.data.bar.floating ? Settings.data.bar.rounding : 0
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue