Settings: Rounded borders slider.

This commit is contained in:
quadbyte 2025-08-17 14:29:18 -04:00
parent 405c8717b9
commit ba1c30ef54
5 changed files with 52 additions and 9 deletions

View file

@ -109,6 +109,7 @@ ColumnLayout {
NText {
text: Math.floor(AudioService.volume * 100) + "%"
Layout.alignment: Qt.AlignVCenter
Layout.leftMargin: Style.marginSmall * scaling
color: Color.mOnSurface
}
}
@ -121,7 +122,7 @@ ColumnLayout {
Layout.topMargin: Style.marginMedium * scaling
NToggle {
label: "Mute AudioService"
label: "Mute Audio Output"
description: "Mute or unmute the default audio output"
checked: AudioService.muted
onToggled: checked => {

View file

@ -118,6 +118,45 @@ ColumnLayout {
Settings.data.dock.autoHide = checked
}
}
ColumnLayout {
spacing: Style.marginTiniest * scaling
Layout.fillWidth: true
NText {
text: "Border radius"
font.pointSize: Style.fontSizeLarge * scaling
font.weight: Style.fontWeightBold
color: Color.mOnSurface
}
NText {
text: "Adjust the rounded border of all UI elements"
font.pointSize: Style.fontSizeSmall * scaling
color: Color.mOnSurfaceVariant
wrapMode: Text.WordWrap
Layout.fillWidth: true
}
RowLayout {
NSlider {
Layout.fillWidth: true
from: 0
to: 1
stepSize: 0.01
value: Settings.data.general.radiusRatio
onMoved: Settings.data.general.radiusRatio = value
cutoutColor: Color.mSurface
}
NText {
text: Math.floor(Settings.data.general.radiusRatio * 100) + "%"
Layout.alignment: Qt.AlignVCenter
Layout.leftMargin: Style.marginSmall * scaling
color: Color.mOnSurface
}
}
}
}
}
}