1 +#
Nuguland Power Popup Redesign 5 +Replace the current equal-weight power popup with a clear two-zone control surface:
7 +1. current power state, only when useful;
8 +2. safe session actions;
9 +3. destructive session actions isolated behind confirmation.
11 +The popup should feel calm, brutal, compact, and obvious. No debug labels. No keyboard-help strip.
15 +Use the accepted `two-zone` layout.
17 +###
Battery-present devices 19 +Show a main battery hero only when the machine has a real display/laptop battery.
21 +- Circular percentage figure.
22 +- State text beside it: `charging`, `discharging`, `full`, etc.
23 +- Secondary meta: time estimate and battery health when available.
24 +- Color follows the existing battery role: accent, warning, error.
26 +External battery devices are not part of the hero. They appear as smaller chips below it.
28 +###
No-main-battery devices 30 +Skip the battery hero entirely.
32 +- Do not show a fake `0% unknown` card on desktops.
33 +- If external battery devices exist, show compact chips.
34 +- If no battery data exists, start directly with session actions.
38 +Safe actions stay one-click and visually grouped:
40 +- `lock` is primary/default.
41 +- `suspend`, `monitor-off`, and `monitor-on` are secondary.
43 +Destructive actions live in a separate danger region:
49 +No extra labels like `safe`, `danger`, `confirmation required`, `Enter locks`, or `Esc closes` in the default state.
51 +###
Confirmation state 53 +Confirmation UI must use the same redesign language.
55 +When a destructive action is pending:
57 +- Keep the same popup shape.
58 +- Replace the danger region with a focused confirmation row/card.
59 +- Show the action name prominently.
60 +- Provide `confirm` and `cancel` buttons.
61 +- Use warning/error styling, not a separate old strip.
62 +- Enter confirms; Escape cancels, but do not explain that on screen.
66 +- Figure-ground: battery hero only when it is real; otherwise actions become the figure.
67 +- Proximity: safe actions and destructive actions are separated by region.
68 +- Similarity: safe buttons look alike; destructive buttons share danger styling.
69 +- Common region: destructive actions share one danger container.
70 +- Prägnanz: remove helper labels and footer instructions.
72 +##
Implementation notes 74 +- Preserve existing `Power.qml` service action routing.
75 +- Prefer changing `PowerPanel.qml` only.
76 +- Add tiny pure helper logic only if needed to identify a real main battery.
77 +- External devices stay driven by `panelState.externalDevices`.
78 +- Keep existing confirmation behavior: destructive actions require two steps.
82 +Run the existing quickshell checks for power shaping. If QML lint/check is available through repo tasks, run the smallest relevant task.