Skip to content

island: open media and the power menu in one step - #3756

Merged
purian23 merged 2 commits into
duxlabs-dev:masterfrom
Conava:island-fixes
Oct 12, 2026
Merged

purian23 merged 2 commits into
duxlabs-dev:masterfrom
Conava:island-fixes

Conversation

@Conava

@Conava Conava commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Description

This PR fixes a handful of rough edges in the Dank Island and lets the power menu open in it.

I switched to the island this week and really like it, but a few things kept getting in my way. I like having the full music player in the island but disliked the media bar of the island, so switching to that and then opening the music screen by clicking again was unintuitive to me.
Bugs I found: editing the dashboard left the overview blank until I reset it, adding widgets to the bar's center did nothing, and the island stayed open on top of the tray menu.

Changes:

  • Clicking media (the small visualizer bars) on the home face opens the player right away. Closing it goes back to the face it came from, so no more clicks needed to go back to home when closing the media menu of the island.
  • New opt-in setting "Switch to media when playback starts" (Automatically switch Dank Island to media when playback starts #3696), off by default, plus a Toggle Media entry in the keybind picker.
  • The power menu can open in the island, so Super+X and the dock's power button use it where the island owns shared shortcuts. It gets its own route row in the island settings, like clipboard.
  • The island collapses when another popout or menu opens on its screen, for example when hovering the tray.
  • The Widgets page hides the center section again on island bars and says the island takes its place. It has been shown since 014c69b, but every change to it was thrown away. Left and right get a similar note when they aren't shown.
  • Resizing or dragging a dashboard card no longer blanks the overview. The edited layout reached the dashboard as something that isn't a real array (on Qt 6.12 at least), so it read as empty until a reset. The other dashboard grids had the same problem and quietly fell back to their default layout.
  • The blur behind the island no longer pokes out at the rounded corners.

Notes:

  • purian23 mentioned on Automatically switch Dank Island to media when playback starts #3696 that staying on the current face is intended, so the one-click player changes that. It feels much more natural to me, but I'm happy to put the old behavior behind a setting if you prefer.
  • Lock in the island power menu goes through the same path as the island control center, so it also starts the video screensaver if that's enabled. The old popup locks right away. I can switch it if you'd rather keep them identical.
  • There's still a blurred rim around the island while it expands or collapses. I recorded it and went through it frame by frame. The corner bleed was on our side: Quickshell's blur region only takes whole pixels, so the island's fractional size got cut off, which this PR fixes by rounding inward. The rim during the animation isn't our fault.
    The blur region reaches the compositor a frame or two ahead of the island it belongs to, so for a moment it's bigger than what's drawn. Quickshell sends it before the render thread commits that frame, and Hyprland applies it before the frame's buffer is ready. That needs fixes in both, which I'll try to get to soon.
  • The media flow has no automated test, since tests can't load Modules/. I tested it by hand.
  • It adds 3 new strings for i18n.

Validation

  • Tested by hand on Hyprland.
  • New node test for the power menu routing, which fails on master.
  • make lint-qml, run-qml.py logic qt lock, the node tests and all prek hooks pass.

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that changes existing behavior)
  • Refactor / internal cleanup
  • Documentation
  • Other

Related issues

Closes #3696.

Screenshots / video

Checklist

  • My code follows the conventions in CONTRIBUTING.md
  • I have tested my changes locally
  • New user-facing strings are wrapped in I18n.tr() with translator context, reusing existing terms where possible
  • Go changes: ran make fmt, added/updated tests, make test passes, and go mod tidy is clean
  • QML changes: ran make lint-qml with no new warnings
  • I have opened a corresponding pull request in dlx-docs to document any new behaviors: docs(dms): list the clipboard and power menu island activities dux-docs#165

@apollo79

Copy link
Copy Markdown
Member

When the player now opens immediately on clicking the visualizer, does that mean there is no way to switch between the player face and the clock face using the mouse anymore?

@Conava

Conava commented Oct 11, 2026

Copy link
Copy Markdown
Contributor Author

Not with the mouse currently, no. That also fixes an issue I had that switching to the music face with mouse click then made the island bigger, resulting in my mouse hovering over the media and opening the island unintentionally.
I couldnt find a good solution to preserve this switch with the mouse, but I'm very open to implement it if you have an idea @apollo79

@apollo79

Copy link
Copy Markdown
Member

An idea I have is adding an action on right click to switch faces. This should then cancel the hover action of course.
This could also be expanded to actions on double / long click and customization for these if there is more actions that make sense. For example opening a specific dankdash tab on double click.

@Conava

Conava commented Oct 11, 2026

Copy link
Copy Markdown
Contributor Author

Actually a good idea, I like that. I'll either do it here tomorrow or as a follow up PR. Would definitely add customization for that too, this could be very useful when integrating more things into the island over time.

@apollo79

apollo79 commented Oct 11, 2026 •

Copy link
Copy Markdown
Member

Also swipe left / right / up (idk about bottom, that shuould probably just open the island) gestures for mobile

- Clicking media on the home face opens the player. Closing a sheet
  goes back to the face the user picked, and an opt-in setting
  switches to media when playback starts.
- The power menu can open in the island (Super+X, the dock button),
  with its own route row in the island settings.
- An island collapses when another popout opens on its screen.
- The widgets page hides the center section the island replaces.
- Dragging or resizing a dashboard card no longer blanks the overview:
  Qt hands the committed list over as a non-array, which read as empty.
- The island blur region stays inside the rounded fill.
@purian23

purian23 commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

Rebased onto master. The dash Array.from workaround was dropped, because master now hands grid commits over through a commitHandler callback instead of a signal (d8aca6a), which fixes the same blank-overview bug.
You can reset your local branch: git fetch && git reset --hard origin/island-fixes.

Otherwise, I like the updated options you chose, I'm on board! I think a right click like apollo mentioned would be cool here to quickly see the media compat again.

@purian23 purian23 changed the title island: open media and the power menu in one step, fix dash edits island: open media and the power menu in one step Oct 12, 2026
@purian23

Copy link
Copy Markdown
Member

/claude review

@claude

claude Bot commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Claude review

No issues found.
Checked: power menu routing through PopoutService/IPC and the new island PowerMenuExpanded face (signals, sessionStarted, sizing), media auto-switch/idleActivity/mediaReturnTimer flow in IslandController, popout/modal collapse bindings in IslandBarHost, blur region rounding, WidgetsTab island section notes, settings defaults and i18n. Model: claude-opus-5-5.

Opening the player with one click removed the only mouse path from
the home face to the media face. A right-click on the collapsed island
now swaps between the two while media is available.

The swap resizes the island under the pointer, so hover-open stays off
until the pointer leaves. Without a face to swap to, the press is not
accepted and reaches the bar's own right-click action as before.
@Conava

Conava commented Oct 12, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the rebase! I've reset my branch and dropped the dashboard fix.

I added the right-click: right-clicking the island now switches between the home and media faces while something is playing. Hover-open stays off until the mouse leaves the island, so the island doesn't open by itself right after it resizes under the pointer. Without media there's nothing to switch to, so the right-click still goes to the bar's own right-click action like before.

@apollo79 I kept it to the plain right-click here. Making the clicks configurable (double click, long press, opening a specific dash tab) and the swipe gestures sound great, but there's currently not many options and that would be a bigger addition to the settings I'd rather do separately once needed.

@purian23

Copy link
Copy Markdown
Member

/claude review

@claude

claude Bot commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Claude review

No issues found.
Checked: the new right-click face swap (acceptsClick/handleClick press rejection so the bar still gets right-clicks without media, mediaFaceToggleAvailable, toggleMediaFace via requestActivity/mediaPreferred, hoverHeld gating requestHoverExpand and its release in updatePointerInside) plus the new routing test; earlier power menu, media flow, collapse, blur and WidgetsTab changes re-skimmed. Model: claude-opus-5-5.

@purian23
purian23 merged commit 4a8f106 into duxlabs-dev:master Oct 12, 2026
2 checks passed
@Conava
Conava deleted the island-fixes branch October 12, 2026 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automatically switch Dank Island to media when playback starts

3 participants