Bar: add floating setting
This commit is contained in:
parent
ae931b791f
commit
50d8b54adf
4 changed files with 216 additions and 1 deletions
|
|
@ -44,6 +44,14 @@ Variants {
|
|||
right: true
|
||||
}
|
||||
|
||||
// Floating bar margins - only apply when floating is enabled
|
||||
margins {
|
||||
top: Settings.data.bar.marginTop
|
||||
bottom: Settings.data.bar.marginBottom
|
||||
left: Settings.data.bar.floating ? Settings.data.bar.marginLeft : 0
|
||||
right: Settings.data.bar.floating ? Settings.data.bar.marginRight : 0
|
||||
}
|
||||
|
||||
Item {
|
||||
anchors.fill: parent
|
||||
clip: true
|
||||
|
|
@ -54,6 +62,9 @@ Variants {
|
|||
|
||||
anchors.fill: parent
|
||||
color: Qt.alpha(Color.mSurface, Settings.data.bar.backgroundOpacity)
|
||||
|
||||
// Floating bar rounded corners
|
||||
radius: Settings.data.bar.floating ? Settings.data.bar.rounding : 0
|
||||
}
|
||||
|
||||
// ------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue