forked from Shinonome/dots-hyprland
sidebar: android-style quick toggles & sliders (#2217)
Co-Authored-By: Vague Syntax <173799252+vaguesyntax@users.noreply.github.com>
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user