fixed volume popup closing when changing a device + made notifications and volume fonts bolder

This commit is contained in:
SomeElse
2026-05-16 22:02:36 +00:00
parent 0c7b5188a8
commit c8343398f9
6 changed files with 88 additions and 52 deletions

View File

@@ -153,7 +153,9 @@ ModuleChip {
text: root.speakerGlyph(root.outputMuted, root.outputVolume)
color: root.outputMuted ? root.t.volIconMuted : root.t.volIcon
font.pixelSize: Cfg.Config.volumeIconSize
font.bold: true
Layout.alignment: Qt.AlignVCenter
renderType: Text.NativeRendering
}
}
@@ -190,7 +192,6 @@ ModuleChip {
color: root.t.volPopupBg
border.color: root.t.volPopupBorder
border.width: Cfg.Config.popupBorderWidth
layer.enabled: true
MouseArea { anchors.fill: parent; propagateComposedEvents: false }
@@ -254,8 +255,10 @@ ModuleChip {
text: "Volume Limits"
color: root.t.textDim
font.pixelSize: 10
font.bold: true
font.capitalization: Font.AllUppercase
Layout.fillWidth: true
renderType: Text.NativeRendering
}
LimitRow {
Layout.fillWidth: true
@@ -324,6 +327,8 @@ ModuleChip {
Layout.alignment: Qt.AlignVCenter
Layout.preferredWidth: Cfg.Config.volumeIconSize + 4
horizontalAlignment: Text.AlignHCenter
renderType: Text.NativeRendering
font.bold: true
}
Text {
text: vs.label
@@ -331,6 +336,7 @@ ModuleChip {
font.pixelSize: 13
font.bold: true
Layout.fillWidth: true
renderType: Text.NativeRendering
}
Text {
text: vs.muted ? "muted" : vs.volume + "%"
@@ -339,6 +345,7 @@ ModuleChip {
font.bold: !vs.muted
horizontalAlignment: Text.AlignHCenter
Layout.preferredWidth: 44
renderType: Text.NativeRendering
}
Rectangle {
@@ -351,6 +358,8 @@ ModuleChip {
text: vs.muted ? "󰖁" : "󰕾"
color: vs.muted ? vs.accentColor : vs.dimColor
font.pixelSize: 11
font.bold: true
renderType: Text.NativeRendering
}
HoverHandler { id: muteHover; cursorShape: Qt.PointingHandCursor }
TapHandler { onTapped: vs.muteToggled() }
@@ -403,13 +412,15 @@ ModuleChip {
RowLayout {
Layout.fillWidth: true
spacing: 6
Text { text: "󰒓"; color: vs.dimColor; font.pixelSize: 11 }
Text { text: "󰒓"; color: vs.dimColor; font.pixelSize: 11; font.bold: true; renderType: Text.NativeRendering }
Text {
text: vs.deviceName
color: vs.textColor
font.pixelSize: 11
font.bold: true
elide: Text.ElideRight
Layout.fillWidth: true
renderType: Text.NativeRendering
}
Rectangle {
@@ -422,6 +433,8 @@ ModuleChip {
text: vs.pickerOpen ? "󰅃" : "󰅀"
color: vs.pickerOpen ? vs.accentColor : vs.dimColor
font.pixelSize: 10
font.bold: true
renderType: Text.NativeRendering
}
HoverHandler { id: chevHover; cursorShape: Qt.PointingHandCursor }
TapHandler { onTapped: vs.pickerOpen = !vs.pickerOpen }
@@ -470,8 +483,9 @@ ModuleChip {
Text {
text: modelData.description || modelData.nickName || modelData.name
color: isActive ? vs.accentColor : vs.textColor
font.pixelSize: 11; font.bold: isActive
font.pixelSize: 11; font.bold: true
elide: Text.ElideRight; Layout.fillWidth: true
renderType: Text.NativeRendering
}
}
HoverHandler { id: rowHover; cursorShape: Qt.PointingHandCursor }
@@ -499,12 +513,14 @@ ModuleChip {
signal decrement()
signal increment()
Text { text: lr.icon; color: lr.iconColor; font.pixelSize: 13 }
Text { text: lr.icon; color: lr.iconColor; font.pixelSize: 13; font.bold: true; renderType: Text.NativeRendering }
Text {
text: lr.labelText
color: lr.textColor
font.pixelSize: 11
font.bold: true
Layout.fillWidth: true
renderType: Text.NativeRendering
}
Rectangle {
@@ -516,6 +532,8 @@ ModuleChip {
anchors.centerIn: parent; text: ""
color: lr.value <= lr.minValue ? lr.dimColor : lr.textColor
font.pixelSize: 14
font.bold: true
renderType: Text.NativeRendering
}
HoverHandler { id: decHover; cursorShape: Qt.PointingHandCursor }
TapHandler { onTapped: { if (lr.value > lr.minValue) lr.decrement() } }
@@ -526,6 +544,7 @@ ModuleChip {
font.pixelSize: 12; font.bold: true
horizontalAlignment: Text.AlignHCenter
Layout.preferredWidth: 44
renderType: Text.NativeRendering
}
Rectangle {
@@ -537,6 +556,8 @@ ModuleChip {
anchors.centerIn: parent; text: "+"
color: lr.value >= lr.maxValue ? lr.dimColor : lr.textColor
font.pixelSize: 14
font.bold: true
renderType: Text.NativeRendering
}
HoverHandler { id: incHover; cursorShape: Qt.PointingHandCursor }
TapHandler { onTapped: { if (lr.value < lr.maxValue) lr.increment() } }