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

Add volume and brightness percentages (#1148)

This commit is contained in:
Aaron Tulino
2025-12-25 10:07:29 -07:00
committed by GitHub
parent df6c60213f
commit 6b6f51cd1f
8 changed files with 193 additions and 12 deletions

View File

@@ -108,9 +108,12 @@ Singleton {
property bool controlCenterShowNetworkIcon: true
property bool controlCenterShowBluetoothIcon: true
property bool controlCenterShowAudioIcon: true
property bool controlCenterShowAudioPercent: true
property bool controlCenterShowVpnIcon: true
property bool controlCenterShowBrightnessIcon: false
property bool controlCenterShowBrightnessPercent: false
property bool controlCenterShowMicIcon: false
property bool controlCenterShowMicPercent: true
property bool controlCenterShowBatteryIcon: false
property bool controlCenterShowPrinterIcon: false
property bool showPrivacyButton: true

View File

@@ -21,9 +21,12 @@ Singleton {
showNetworkIcon: true,
showBluetoothIcon: true,
showAudioIcon: true,
showAudioPercent: true,
showVpnIcon: true,
showBrightnessIcon: false,
showBrightnessPercent: false,
showMicIcon: false,
showMicPercent: true,
showBatteryIcon: false,
showPrinterIcon: false
};
@@ -65,12 +68,18 @@ Singleton {
item.showBluetoothIcon = order[i].showBluetoothIcon;
if (isObj && order[i].showAudioIcon !== undefined)
item.showAudioIcon = order[i].showAudioIcon;
if (isObj && order[i].showAudioPercent !== undefined)
item.showAudioPercent = order[i].showAudioPercent;
if (isObj && order[i].showVpnIcon !== undefined)
item.showVpnIcon = order[i].showVpnIcon;
if (isObj && order[i].showBrightnessIcon !== undefined)
item.showBrightnessIcon = order[i].showBrightnessIcon;
if (isObj && order[i].showBrightnessPercent !== undefined)
item.showBrightnessPercent = order[i].showBrightnessPercent;
if (isObj && order[i].showMicIcon !== undefined)
item.showMicIcon = order[i].showMicIcon;
if (isObj && order[i].showMicPercent !== undefined)
item.showMicPercent = order[i].showMicPercent;
if (isObj && order[i].showBatteryIcon !== undefined)
item.showBatteryIcon = order[i].showBatteryIcon;
if (isObj && order[i].showPrinterIcon !== undefined)

View File

@@ -54,9 +54,12 @@ var SPEC = {
controlCenterShowNetworkIcon: { def: true },
controlCenterShowBluetoothIcon: { def: true },
controlCenterShowAudioIcon: { def: true },
controlCenterShowAudioPercent: { def: false },
controlCenterShowVpnIcon: { def: true },
controlCenterShowBrightnessIcon: { def: false },
controlCenterShowBrightnessPercent: { def: false },
controlCenterShowMicIcon: { def: false },
controlCenterShowMicPercent: { def: false },
controlCenterShowBatteryIcon: { def: false },
controlCenterShowPrinterIcon: { def: false },