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