1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-06-18 09:05:24 -04:00

feat: add battery settings tab and update battery widget interactions (#2634)

* feat: add battery settings tab and update battery widget interactions

* fix: import Quickshell.Io in BatteryTab.qml to fix Process type compilation error

* feat: move battery tab under media player and add notify when charge limit reached option

* chore: change default notification settings to false

* feat: move battery tab under Power & Security section in settings

* feat: add notification type button selection for battery alerts
This commit is contained in:
Huỳnh Thiện Lộc
2026-06-18 07:29:23 +07:00
committed by GitHub
parent d5ac0c9aa0
commit 480ffa4ac2
7 changed files with 409 additions and 21 deletions
@@ -686,5 +686,20 @@ FocusScope {
Qt.callLater(() => item.forceActiveFocus());
}
}
Loader {
id: batteryLoader
anchors.fill: parent
active: root.currentIndex === 37
visible: active
focus: active
sourceComponent: BatteryTab {}
onActiveChanged: {
if (active && item)
Qt.callLater(() => item.forceActiveFocus());
}
}
}
}
@@ -377,6 +377,12 @@ Rectangle {
"text": I18n.tr("Power & Sleep"),
"icon": "power_settings_new",
"tabIndex": 21
},
{
"id": "battery",
"text": I18n.tr("Battery"),
"icon": "battery_charging_full",
"tabIndex": 37
}
]
},