fix material symbols beause i was too refarted to turn on fill

This commit is contained in:
lucy 2026-02-01 00:56:06 +01:00
parent 7da8d8670f
commit 22b68c399e
6 changed files with 13 additions and 11 deletions

View File

@ -34,7 +34,7 @@ Variants {
Row { Row {
id: leftStuff id: leftStuff
leftPadding: 10 leftPadding: 5
spacing: 10 spacing: 10
anchors.left: parent.left anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
@ -53,7 +53,7 @@ Variants {
Row { Row {
id: rightStuff id: rightStuff
rightPadding: 10 rightPadding: 5
spacing: 10 spacing: 10
anchors.right: parent.right anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter

View File

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

View File

@ -44,9 +44,10 @@ Rectangle {
Row { Row {
id: textRow id: textRow
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 5 spacing: 0
CustomText { CustomText {
id: volumeText id: volumeText
anchors.verticalCenter: parent.verticalCenter
PwObjectTracker { PwObjectTracker {
objects: Pipewire.ready ? Pipewire.defaultAudioSink : [] objects: Pipewire.ready ? Pipewire.defaultAudioSink : []
} }

View File

@ -2,7 +2,6 @@ pragma ComponentBehavior: Bound
pragma Singleton pragma Singleton
import Quickshell.Services.Notifications import Quickshell.Services.Notifications
import QtQuick import QtQuick
import Quickshell.Io
NotificationServer { NotificationServer {
bodyMarkupSupported: true bodyMarkupSupported: true

View File

@ -16,10 +16,12 @@ ClippingWrapperRectangle {
onAccepted: { onAccepted: {
Settings.config.font = selectedFont.family; Settings.config.font = selectedFont.family;
Settings.config.fontSize = selectedFont.pointSize; Settings.config.fontSize = selectedFont.pointSize;
Settings.config.fontWeight = selectedFont.weight;
} }
onSelectedFontChanged: { onSelectedFontChanged: {
Settings.config.font = selectedFont.family; Settings.config.font = selectedFont.family;
Settings.config.fontSize = selectedFont.pointSize; Settings.config.fontSize = selectedFont.pointSize;
Settings.config.fontWeight = selectedFont.weight;
} }
} }
anchors.centerIn: parent anchors.centerIn: parent

View File

@ -3,14 +3,14 @@ import qs.settings
import qs import qs
Text { Text {
property real fill: 1 property real fill: 0
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
font.family: "Material Icons Sharp" font.family: "Material Symbols Rounded"
color: Colors.onSurfaceColor color: Colors.onSurfaceColor
font.variableAxes: ({ font.variableAxes: ({
FILL: fill.toFixed(1), FILL: 1,
GRAD: -25, GRAD: 200,
opsz: Settings.config.fontSize, opsz: 0,
wght: Settings.config.fontWeight wght: 700
}) })
} }