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

Revert "Always use power menu modal"

This reverts commit 55d06a43f8.

mm, not sure how I feel about it
This commit is contained in:
bbedward
2025-10-03 17:14:08 -04:00
parent 55d06a43f8
commit 5a5c860cef
4 changed files with 118 additions and 15 deletions

View File

@@ -6,9 +6,10 @@ import qs.Widgets
Rectangle {
id: root
property bool powerOptionsExpanded: false
property bool editMode: false
signal powerButtonClicked()
signal powerActionRequested(string action, string title, string message)
signal lockRequested()
signal editModeToggled()
@@ -82,11 +83,13 @@ Rectangle {
DankActionButton {
buttonSize: 36
iconName: "power_settings_new"
iconName: root.powerOptionsExpanded ? "expand_less" : "power_settings_new"
iconSize: Theme.iconSize - 4
iconColor: Theme.surfaceText
iconColor: root.powerOptionsExpanded ? Theme.primary : Theme.surfaceText
backgroundColor: "transparent"
onClicked: root.powerButtonClicked()
onClicked: {
root.powerOptionsExpanded = !root.powerOptionsExpanded
}
}
DankActionButton {