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:
@@ -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 },
|
||||
|
||||
|
||||
Reference in New Issue
Block a user