aboutsummaryrefslogtreecommitdiffstats
path: root/mail-overview/MailPanel.qml
AgeCommit message (Collapse)AuthorFilesLines
9 hoursfeat(mail-overview): the drawerDanilo M.1-1/+212
Builds the panel body on the house idiom the other two components already use: a fullscreen transparent PanelWindow holding a dim backdrop, with the real content as a Rectangle anchored inside it. The idiom is worth the seemingly oversized window because it hands us two behaviours for free. Click-outside-to-close is just a MouseArea filling the backdrop, and the drawer only needs its own MouseArea to swallow clicks so they do not fall through. Escape works because the window actually covers the screen and can take exclusive keyboard focus. exclusionMode is Normal here, unlike the Ignore the other two components set. Waybar claims an exclusive zone at the top of this screen, and the mail icon lives in it, so respecting that zone positions the drawer immediately below the bar without this file hardcoding, or even knowing, the bar's height. It also means the backdrop begins below waybar, so the bar itself does not dim while its own drawer is open, which reads correctly: the icon you clicked stays lit. Focus sits on an inner Item with focus: true, not on the window. Setting WlrLayershell.keyboardFocus is necessary but not sufficient, because key events in QML are delivered to a focused item and never to a window, so Keys.onEscapePressed on the PanelWindow would never fire. This cost time in the vm-manager panel and the same shape is used here deliberately. Thread rows are deliberately read-only, with no click handler. qtmaildir takes no arguments, so there is no way to ask it to open a particular thread and a clickable row would promise navigation it cannot deliver. The rows are a preview; the button opens the client at its own idea of where to start. show() refreshes before opening rather than relying on a timer. The panel is opened rarely and the shell is autostarted for the whole session, so the counts are almost always stale by the time anyone looks at them, and a refresh on open is both cheaper and fresher than polling. Also removes the temporary console probe from shell.qml, which existed only to verify the account model parsed and counted correctly. The drawer now displays the same data, so the probe has no job left. Dropping it also drops the QtQuick import, which nothing else in that file needed. Button.qml is an unmodified copy of vm-manager's. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WWL8JYHu7yhAdtx5pU9PMU
9 hoursfeat(mail-overview): component skeleton with the keepalive windowDanilo M.1-0/+41
Nothing is drawn yet. This commit exists on its own because the thing most likely to be wrong at this stage is invisible: a config whose only window is hidden exits straight after logging Configuration Loaded, reporting no error, and the symptom is a keybind that appears to do nothing. Theme.qml is a verbatim copy of the one in appearance. It is a fallback for before the generated palette is read, not a palette to grow; deduplicating the four copies is a separate change. Not yet run: the user runs the shell themselves, so loading and IPC are verified in their session rather than here. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WWL8JYHu7yhAdtx5pU9PMU