change the way filled fonts work
This commit is contained in:
parent
f2b941906d
commit
2147220cd7
@ -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
|
||||
|
||||
@ -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
|
||||
})
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user