sidebar: android-style quick toggles & sliders (#2217)

Co-Authored-By: Vague Syntax <173799252+vaguesyntax@users.noreply.github.com>
This commit is contained in:
end-4
2025-10-18 19:07:10 +02:00
parent 77ae119d32
commit 5d1a9b1e9c
35 changed files with 1895 additions and 90 deletions
@@ -599,6 +599,86 @@ ContentPage {
}
}
ContentSubsection {
title: Translation.tr("Quick toggles")
ConfigSelectionArray {
Layout.fillWidth: false
currentValue: Config.options.sidebar.quickToggles.style
onSelected: newValue => {
Config.options.sidebar.quickToggles.style = newValue;
}
options: [
{
displayName: Translation.tr("Classic"),
icon: "password_2",
value: "classic"
},
{
displayName: Translation.tr("Android"),
icon: "action_key",
value: "android"
}
]
}
ConfigSpinBox {
enabled: Config.options.sidebar.quickToggles.style === "android"
icon: "splitscreen_left"
text: Translation.tr("Columns")
value: Config.options.sidebar.quickToggles.android.columns
from: 1
to: 8
stepSize: 1
onValueChanged: {
Config.options.sidebar.quickToggles.android.columns = value;
}
}
}
ContentSubsection {
title: Translation.tr("Sliders")
ConfigSwitch {
buttonIcon: "check"
text: Translation.tr("Enable")
checked: Config.options.sidebar.quickSliders.enable
onCheckedChanged: {
Config.options.sidebar.quickSliders.enable = checked;
}
}
ConfigSwitch {
buttonIcon: "brightness_6"
text: Translation.tr("Brightness")
enabled: Config.options.sidebar.quickSliders.enable
checked: Config.options.sidebar.quickSliders.showBrightness
onCheckedChanged: {
Config.options.sidebar.quickSliders.showBrightness = checked;
}
}
ConfigSwitch {
buttonIcon: "volume_up"
text: Translation.tr("Volume")
enabled: Config.options.sidebar.quickSliders.enable
checked: Config.options.sidebar.quickSliders.showVolume
onCheckedChanged: {
Config.options.sidebar.quickSliders.showVolume = checked;
}
}
ConfigSwitch {
buttonIcon: "mic"
text: Translation.tr("Microphone")
enabled: Config.options.sidebar.quickSliders.enable
checked: Config.options.sidebar.quickSliders.showMic
onCheckedChanged: {
Config.options.sidebar.quickSliders.showMic = checked;
}
}
}
ContentSubsection {
title: Translation.tr("Corner open")
tooltip: Translation.tr("Allows you to open sidebars by clicking or hovering screen corners regardless of bar position")