changes to icon centering
This commit is contained in:
parent
45afaf955e
commit
2b9e44f71f
@ -38,10 +38,12 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: textRow
|
id: textRow
|
||||||
spacing: 2
|
spacing: 0
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
height: parent.height
|
||||||
CustomText {
|
CustomText {
|
||||||
id: volumeText
|
id: volumeText
|
||||||
|
Layout.alignment: Qt.AlignVCenter
|
||||||
PwObjectTracker {
|
PwObjectTracker {
|
||||||
objects: Pipewire.ready ? Pipewire.defaultAudioSink : []
|
objects: Pipewire.ready ? Pipewire.defaultAudioSink : []
|
||||||
}
|
}
|
||||||
|
|||||||
@ -32,7 +32,7 @@ Rectangle {
|
|||||||
id: notiIcon
|
id: notiIcon
|
||||||
radius: notifyItem.radius - notifyItem.radius / 3
|
radius: notifyItem.radius - notifyItem.radius / 3
|
||||||
implicitWidth: 64
|
implicitWidth: 64
|
||||||
color: Colors.color8
|
color: "transparent"
|
||||||
implicitHeight: 64
|
implicitHeight: 64
|
||||||
visible: notifyItem.modelData.image !== ""
|
visible: notifyItem.modelData.image !== ""
|
||||||
IconImage {
|
IconImage {
|
||||||
|
|||||||
@ -1,10 +1,16 @@
|
|||||||
import QtQuick
|
import QtQuick
|
||||||
import qs.settings
|
|
||||||
import qs
|
import qs
|
||||||
|
import qs.settings
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
verticalAlignment: Text.AlignVCenter
|
property real fill: 0
|
||||||
font.family: "Material Symbols Rounded"
|
font.family: "Material Symbols Rounded"
|
||||||
color: Colors.onSurfaceColor
|
color: Colors.onSurfaceColor
|
||||||
font.pixelSize: Settings.config.fontSize + 2
|
font.pixelSize: Settings.config.fontSize
|
||||||
|
font.variableAxes: ({
|
||||||
|
FILL: fill,
|
||||||
|
GRAD: 0,
|
||||||
|
opsz: 24,
|
||||||
|
wght: 400
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user