put icons to fixed size

This commit is contained in:
lucy 2026-02-07 23:26:24 +01:00
parent 0d490310b8
commit 5e7af6969b
3 changed files with 5 additions and 7 deletions

View File

@ -70,7 +70,8 @@ Loader {
RowLayout {
id: batRow
anchors.verticalCenter: parent.verticalCenter
anchors.centerIn: parent
height: parent.height
spacing: 5
CustomText {
id: batText

View File

@ -8,7 +8,7 @@ Rectangle {
id: root
radius: implicitHeight / 2
color: pavuArea.containsMouse ? Colors.primaryContainer : Colors.surfaceContainer
implicitWidth: volumeIcon.implicitWidth + 10
implicitWidth: Settings.config.barHeight - 8
implicitHeight: Settings.config.barHeight - 10
CustomIcon {
id: volumeIcon

View File

@ -3,14 +3,11 @@ import qs
import qs.settings
Text {
property real fill: 0
font.family: "Material Symbols Rounded"
color: Colors.onSurfaceColor
font.pixelSize: Settings.config.fontSize
font.family: "Material Symbols Rounded"
font.pixelSize: 14
font.variableAxes: ({
FILL: fill,
GRAD: 200,
opsz: 36,
wght: 400
})
}