add left and right spacing
This commit is contained in:
parent
5e2577b291
commit
56b5b0a4e6
2 changed files with 104 additions and 103 deletions
|
|
@ -27,16 +27,16 @@ Variants {
|
||||||
implicitHeight: Config.barHeight
|
implicitHeight: Config.barHeight
|
||||||
layer: WlrLayer.Top
|
layer: WlrLayer.Top
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
id: container
|
||||||
radius: Config.floating ? Config.rounding : 0
|
radius: Config.floating ? Config.rounding : 0
|
||||||
color: Qt.rgba(Colors.base00.r, Colors.base00.g, Colors.base00.b, Config.opacity)
|
color: Qt.rgba(Colors.base00.r, Colors.base00.g, Colors.base00.b, Config.opacity)
|
||||||
id: container
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: leftLayout
|
id: leftLayout
|
||||||
spacing: 5
|
spacing: 5
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.leftMargin: Config.rounding
|
anchors.leftMargin: Config.rounding == 0 ? 10 : Config.rounding
|
||||||
Ws {
|
Ws {
|
||||||
moduleHeight: root.moduleHeight
|
moduleHeight: root.moduleHeight
|
||||||
barScreen: root.modelData
|
barScreen: root.modelData
|
||||||
|
|
@ -60,7 +60,7 @@ Variants {
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
spacing: 5
|
spacing: 5
|
||||||
anchors.rightMargin: Config.rounding
|
anchors.rightMargin: Config.rounding == 0 ? 10 : Config.rounding
|
||||||
Mpris {
|
Mpris {
|
||||||
moduleHeight: root.moduleHeight
|
moduleHeight: root.moduleHeight
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,7 @@ Rectangle {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: wsWrapper.modelData.id > 10 ? wsWrapper.modelData.id > 20 ? wsWrapper.modelData.id - 20 : wsWrapper.modelData.id - 10 : wsWrapper.modelData.id
|
text: wsWrapper.modelData.id > 10 ? wsWrapper.modelData.id > 20 ? wsWrapper.modelData.id - 20 : wsWrapper.modelData.id - 10 : wsWrapper.modelData.id
|
||||||
color: wsWrapper.active ? Colors.base0D : Colors.base04
|
color: wsWrapper.active ? Colors.base0D : Colors.base04
|
||||||
|
opacity: wsWrapper.active ? 1.0 : 0.4
|
||||||
font.bold: wsWrapper.active
|
font.bold: wsWrapper.active
|
||||||
}
|
}
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue