1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

hide brightness slider opt

This commit is contained in:
bbedward
2025-09-06 10:12:39 -04:00
parent f7dfd31256
commit 072cbf284e
3 changed files with 20 additions and 1 deletions

View File

@@ -527,12 +527,13 @@ DankPopout {
spacing: Theme.spacingM
AudioSliderRow {
width: (parent.width - Theme.spacingM) / 2
width: SettingsData.hideBrightnessSlider ? parent.width - Theme.spacingM : (parent.width - Theme.spacingM) / 2
}
Item {
width: (parent.width - Theme.spacingM) / 2
height: parent.height
visible: !SettingsData.hideBrightnessSlider
BrightnessSliderRow {
width: parent.width

View File

@@ -771,6 +771,16 @@ Item {
}
}
DankToggle {
width: parent.width
text: "Hide Brightness Slider"
description: "Hide the brightness slider in Control Center and make audio slider full width"
checked: SettingsData.hideBrightnessSlider
onToggled: checked => {
SettingsData.setHideBrightnessSlider(checked)
}
}
Rectangle {
width: parent.width
height: 1