1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-07 22:18:30 -04:00

feat(Battery): add horizontal battery pill style option in widget settings

This commit is contained in:
purian23
2026-07-04 18:41:52 -04:00
parent ea0c235d6e
commit c0e7c1b2b4
6 changed files with 287 additions and 111 deletions
+6
View File
@@ -32,6 +32,8 @@ Singleton {
showBatteryPercentOnlyOnBattery: false,
showBatteryTime: false,
showBatteryTimeOnlyOnBattery: false,
batteryPillStyle: false,
batteryPillPercentSign: false,
showPrinterIcon: false,
showScreenSharingIcon: true
};
@@ -95,6 +97,10 @@ Singleton {
item.showBatteryTime = order[i].showBatteryTime;
if (isObj && order[i].showBatteryTimeOnlyOnBattery !== undefined)
item.showBatteryTimeOnlyOnBattery = order[i].showBatteryTimeOnlyOnBattery;
if (isObj && order[i].batteryPillStyle !== undefined)
item.batteryPillStyle = order[i].batteryPillStyle;
if (isObj && order[i].batteryPillPercentSign !== undefined)
item.batteryPillPercentSign = order[i].batteryPillPercentSign;
if (isObj && order[i].showPrinterIcon !== undefined)
item.showPrinterIcon = order[i].showPrinterIcon;
if (isObj && order[i].showScreenSharingIcon !== undefined)
@@ -102,6 +102,8 @@ var SPEC = {
showBatteryPercentOnlyOnBattery: { def: false },
showBatteryTime: { def: false },
showBatteryTimeOnlyOnBattery: { def: false },
batteryPillStyle: { def: false },
batteryPillPercentSign: { def: false },
showControlCenterButton: { def: true },
showCapsLockIndicator: { def: true },