AudioCard: fix issue, change size of slider

This commit is contained in:
lysec
2025-10-10 14:59:12 +02:00
parent 7a403bbdde
commit 2f527dcf61
2 changed files with 24 additions and 41 deletions
+18 -40
View File
@@ -93,27 +93,16 @@ NBox {
}
// Output Volume Slider
RowLayout {
NValueSlider {
Layout.fillWidth: true
spacing: Style.marginXS * scaling
NSlider {
Layout.fillWidth: true
from: 0
to: Settings.data.audio.volumeOverdrive ? 1.5 : 1.0
value: localOutputVolume
stepSize: 0.01
onMoved: value => localOutputVolume = value
}
NText {
text: Math.round(AudioService.volume * 100) + "%"
pointSize: Style.fontSizeXS * scaling
color: Color.mOnSurfaceVariant
font.weight: Style.fontWeightMedium
verticalAlignment: Text.AlignVCenter
Layout.alignment: Qt.AlignVCenter
}
from: 0
to: Settings.data.audio.volumeOverdrive ? 1.5 : 1.0
value: localOutputVolume || 0
stepSize: 0.01
text: Math.round((AudioService.volume || 0) * 100) + "%"
textSize: Style.fontSizeXS * scaling
customHeightRatio: 0.6
onMoved: value => localOutputVolume = value
}
}
@@ -162,27 +151,16 @@ NBox {
}
// Input Volume Slider
RowLayout {
NValueSlider {
Layout.fillWidth: true
spacing: Style.marginXS * scaling
NSlider {
Layout.fillWidth: true
from: 0
to: Settings.data.audio.volumeOverdrive ? 1.5 : 1.0
value: localInputVolume
stepSize: 0.01
onMoved: value => AudioService.setInputVolume(value)
}
NText {
text: Math.round(AudioService.inputVolume * 100) + "%"
pointSize: Style.fontSizeXS * scaling
color: Color.mOnSurfaceVariant
font.weight: Style.fontWeightMedium
verticalAlignment: Text.AlignVCenter
Layout.alignment: Qt.AlignVCenter
}
from: 0
to: Settings.data.audio.volumeOverdrive ? 1.5 : 1.0
value: AudioService.inputVolume || 0
stepSize: 0.01
text: Math.round((AudioService.inputVolume || 0) * 100) + "%"
textSize: Style.fontSizeXS * scaling
customHeightRatio: 0.6
onMoved: value => AudioService.setInputVolume(value)
}
}
}