1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-25 05:52:50 -05:00

Add battery charge limit (#1151)

This commit is contained in:
Aaron Tulino
2025-12-25 10:09:09 -07:00
committed by GitHub
parent 6b6f51cd1f
commit adf92cbc46
6 changed files with 51 additions and 3 deletions

View File

@@ -503,6 +503,24 @@ Item {
}
}
}
SettingsCard {
width: parent.width
iconName: "tune"
title: I18n.tr("Advanced")
collapsible: true
expanded: false
SettingsSliderRow {
text: I18n.tr("Battery Charge Limit")
description: I18n.tr("Note: this only changes the percentage, it does not actually limit charging.")
value: SettingsData.batteryChargeLimit
minimum: 50
maximum: 100
defaultValue: 100
onSliderValueChanged: newValue => SettingsData.set("batteryChargeLimit", newValue)
}
}
}
}
}