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

meta: large-scale refactor progress

This commit is contained in:
bbedward
2025-07-17 15:21:37 -04:00
parent 77cc9c288b
commit 7a40156893
24 changed files with 663 additions and 590 deletions

View File

@@ -8,9 +8,11 @@ import qs.Services
import Quickshell.Services.UPower
PanelWindow {
id: batteryControlPopup
id: root
property bool batteryPopupVisible: false
visible: root.batteryPopupVisible
visible: batteryPopupVisible
implicitWidth: 400
implicitHeight: 300
@@ -32,7 +34,7 @@ PanelWindow {
MouseArea {
anchors.fill: parent
onClicked: {
root.batteryPopupVisible = false
batteryPopupVisible = false
}
}
@@ -46,8 +48,8 @@ PanelWindow {
border.color: Qt.rgba(Theme.outline.r, Theme.outline.g, Theme.outline.b, 0.08)
border.width: 1
opacity: root.batteryPopupVisible ? 1.0 : 0.0
scale: root.batteryPopupVisible ? 1.0 : 0.85
opacity: batteryPopupVisible ? 1.0 : 0.0
scale: batteryPopupVisible ? 1.0 : 0.85
// Prevent click-through to background
MouseArea {
@@ -114,7 +116,7 @@ PanelWindow {
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
onClicked: {
root.batteryPopupVisible = false
batteryPopupVisible = false
}
}
}