Commit 33ac629e authored by Kirill Unitsaev's avatar Kirill Unitsaev

hyprland/quickshell: add volume percentage display to volume-osd

parent 1479aead
...@@ -62,14 +62,26 @@ Scope { ...@@ -62,14 +62,26 @@ Scope {
RowLayout { RowLayout {
anchors { anchors {
fill: parent fill: parent
leftMargin: 10 leftMargin: 15
rightMargin: 10 rightMargin: 15
} }
spacing: 10
Text {
id: volumeText
Layout.preferredWidth: 35
Layout.preferredHeight: 20
text: Math.round(root.volume * 100) + "%"
color: "white"
font.pixelSize: 14
font.bold: true
horizontalAlignment: Text.AlignRight
verticalAlignment: Text.AlignVCenter
}
Rectangle { Rectangle {
Layout.fillWidth: true Layout.fillWidth: true
Layout.preferredHeight: 10
implicitHeight: 10
radius: 20 radius: 20
color: "#40D8E2EA" color: "#40D8E2EA"
...@@ -80,8 +92,10 @@ Scope { ...@@ -80,8 +92,10 @@ Scope {
bottom: parent.bottom bottom: parent.bottom
} }
implicitWidth: parent.width * root.volume width: parent.width * root.volume
height: parent.height
radius: parent.radius radius: parent.radius
color: "white"
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment