diff --git a/modules/bar/Volume.qml b/modules/bar/Volume.qml index 6db7d30..1c0f8dc 100644 --- a/modules/bar/Volume.qml +++ b/modules/bar/Volume.qml @@ -1,4 +1,3 @@ -import Quickshell import Quickshell.Io import QtQuick import Quickshell.Services.Pipewire @@ -43,8 +42,8 @@ Rectangle { } Row { id: textRow - anchors.verticalCenter: parent.verticalCenter - spacing: 0 + anchors.centerIn: root + spacing: 5 CustomText { id: volumeText anchors.verticalCenter: parent.verticalCenter @@ -56,6 +55,7 @@ Rectangle { } CustomIcon { id: volumeIcon + anchors.verticalCenter: parent.verticalCenter opacity: Pipewire.ready ? root.sink.audio.muted ? 0.5 : 1 : 0 text: Pipewire.ready ? root.getVolumeIcon() : null } @@ -66,7 +66,7 @@ Rectangle { id: pavuLauncher command: ["sh", "-c", "pavucontrol"] } - anchors.fill: root + anchors.fill: parent onClicked: pavuLauncher.exec(pavuLauncher.command) acceptedButtons: Qt.LeftButton cursorShape: Qt.PointingHandCursor diff --git a/reusables/CustomIcon.qml b/reusables/CustomIcon.qml index ab7a619..0944e72 100644 --- a/reusables/CustomIcon.qml +++ b/reusables/CustomIcon.qml @@ -3,15 +3,12 @@ import qs.settings import qs Text { - property bool fill: false - anchors.verticalCenter: parent.verticalCenter - font.family: "Material Symbols Rounded" + property bool fill: true + font.family: fill ? "Material Symbols Rounded Filled" : "Material Symbols Rounded" color: Colors.onSurfaceColor - font.pixelSize: Settings.config.fontSize + 4 font.variableAxes: ({ - FILL: fill, GRAD: 100, opsz: fill ? 48 : 20, - wght: 400 + wght: 700 }) }