Repository navigation
notifications: add block, mute and clear header buttons - #4427
faryvojnik wants to merge 3 commits into
Conversation
3aa49e2 to
7fdd888
Compare
Replace the text Clear/Dismiss button with header icon buttons: Block (two-click), Mute (duration menu, DND allow), Clear and Close. Each header action writes its own rule; the ignore action is shown as Block, with Blocked apps next to Muted apps in settings.
7fdd888 to
510dbd9
Compare
|
I dont really like how this looks tbh |
|
Same for me, don't favor the looks here. These aren't primary actions at all, so they shouldn't all be here at the same priority. Also, I would very much appreciate you writing PR descriptions yourself as the contribution guidelines of dux shell require. It makes conversations feel a lot more meaningful and AI descriptions also are too detailed most of the time. |
|
Thanks, fair point, the header got too busy. Why I started this: "Clear" (popup) and "Dismiss" (center) look like the same Proposal, similar to Windows/macOS: on hover the header shows only "⋯" and X. Would that work for you? |
|
Thanks for the feedback. I reworked it: the header now only has "⋯" and X, and everything else is in one menu (also on right-click), including mute for 1h / 4h / forever / a custom time. Description and screenshots are updated. Does this look better? |
Description
Replaces the text "Clear" / "Dismiss" button with a "⋯" menu in the card header (also opened by right-click): Mute popups (1 hour / 4 hours / forever / custom), Block app, Clear from history, Allow during Do Not Disturb, Set notification rules, Copy. X closes and keeps the notification in history.
Today "Clear" (popup) also deletes from history while "Dismiss" (center) does not, and blocking an app needs the rule editor.
ignoreaction is shown as "Block".Tested on NixOS/niri;
make test-qmlpasses.Type of change
Related issues
None
Screenshots / video
Before: text Clear / Dismiss button. After: "⋯" menu in a popup, and a notification center card.
Checklist
I18n.tr()with translator context, reusing existing terms where possiblemake fmt, added/updated tests,make testpasses, andgo mod tidyis cleanmake lint-qmlwith no new warnings