redo bar right and left padding logic
This commit is contained in:
parent
ce11401d43
commit
f30fbb36ca
2 changed files with 9 additions and 8 deletions
|
|
@ -11,7 +11,7 @@ Variants {
|
|||
delegate: WlrLayershell {
|
||||
id: root
|
||||
required property var modelData
|
||||
property double moduleHeight: implicitHeight - 12
|
||||
property double moduleHeight: implicitHeight - 10
|
||||
screen: modelData
|
||||
anchors {
|
||||
top: true
|
||||
|
|
@ -36,7 +36,7 @@ Variants {
|
|||
spacing: 5
|
||||
anchors.left: parent.left
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.leftMargin: Config.rounding == 0 ? Config.floating ? 0 : 10 : Config.barHeight / 4
|
||||
anchors.leftMargin: Config.rounding == 0 ? Config.floating ? 0 : 10 : root.moduleHeight / 4
|
||||
Ws {
|
||||
moduleHeight: root.moduleHeight
|
||||
barScreen: root.modelData
|
||||
|
|
@ -60,7 +60,7 @@ Variants {
|
|||
anchors.right: parent.right
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
spacing: 5
|
||||
anchors.rightMargin: Config.rounding == 0 ? Config.floating ? 0 : 10 : Config.barHeight / 4
|
||||
anchors.rightMargin: Config.rounding == 0 ? Config.floating ? 0 : 10 : root.moduleHeight / 4
|
||||
Mpris {
|
||||
moduleHeight: root.moduleHeight
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue