Skip to content

fix(frame): make connected mode honor the settings it overrides - #3665

Merged
purian23 merged 5 commits into
duxlabs-dev:masterfrom
Conava:frame-mode-behavior
Oct 10, 2026
Merged

purian23 merged 5 commits into
duxlabs-dev:masterfrom
Conava:frame-mode-behavior

Conversation

@Conava

@Conava Conava commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Description

This PR makes connected frame mode honor the settings it overrides, and lets the frame paint the notepad slideout.

In connected mode several surfaces ignore or contradict what Settings shows. Frame → Blur turns blur off for the whole shell (including the Settings window, polkit dialogs, menus and OSDs) while Background blur still reads on. The notepad slideout and notification popups paint their own fills on top of or next to the frame instead of being part of it. Bars on displays without a frame lose their shadow, border and corner styling, and Settings hides those rows. Separately, some rows are hidden in modes where they still apply, or shown where they don't.

  • Blur: WindowBlur now defaults to Background blur. Only surfaces painted with the frame color (connected popouts, slideouts, Control Center) follow Frame → Blur, and surfaces the frame owns are still blurred by the frame
  • Notepad slideout: on screens where the frame owns connected chrome, the slideout claims a frame surface, so the frame paints it flush with the cutout, with fillets, and follows the slide. This needs a sixth slot in connected_arc.frag (slot 5), since slots 0-3 can all be taken at once (popout, modal, notification, dock). On other connected screens it uses the frame color instead of the notepad transparency
  • Notification popups: the card surface between the frame body and the card is transparent when the frame paints the popup, leaving the frame fill plus the card, the same two layers as outside frame mode
  • Bar styling per display: shadow, border, square and goth corners and edge attach are stripped and backed up only for bars that cover a frame display, and restored when a bar no longer does. This is re-checked when screens, frame displays or the display name mode change. Existing settings correct themselves on load, so there's no migration
  • Popup gaps: Auto popup gaps and Gap size are shown in separate frame mode, where they still move popouts. They're hidden only in connected mode, where the gap is zeroed
  • Launcher: the Default action picker is shown in connected mode, offering Full and Island. Spotlight is hidden there, since it already opened the full launcher in that mode
  • Frame shadow: follows Shadows → Apply to → Bars

No new strings. The "Connected Frame Mode uses the connected launcher for default launcher shortcuts." note is removed and has no other users.

A few things worth flagging:

  • The frame draws one shadow around the bar and every surface attached to it, so turning off Apply to → Bars also removes it from attached popouts, modals and notifications, even with Popouts or Modals on. Gating each slot separately would need shader work.
  • With barElevationEnabled saved as false (the v6 migration does this for bars without a shadow), the frame now has no shadow in connected mode.
  • connected_arc.frag.qsb is rebuilt with qsb --glsl "100 es,120,150" --hlsl 50 --msl 12 (qsb 6.11.2). qsb --dump lists the same six variants as before, and rebuilding from the committed .frag reproduces the file byte for byte.
  • The notepad's transparency and edge gap no longer apply to the slideout in connected mode, and a dock on the same edge is covered while it's open. Retracting the dock through ConnectedSurfaceLease (retractsDock) would be the natural follow-up if you'd prefer that.
  • LauncherTab, DBarTab and BarSelectionState are also edited by fix(settings): show what frame mode controls #3654. The two branches merge without conflicts.

Validation

  • Tested by hand on Hyprland in connected mode, separate mode and with the frame off: blur with Frame → Blur and Background blur on and off, the notepad slideout opening and closing with the frame's fill and fillets, notification popups, the popup gap rows, the launcher picker in each mode, and the frame shadow with Apply to → Bars
  • New quickshell/tests/frame-bar-styles.test.mjs runs the real SettingsData functions: only bars on frame displays are stripped, bars leaving a frame display get their styling back, adding or committing a bar onto a frame display backs it up first, old settings with every bar stripped correct themselves without a further write, and an empty screen list leaves styles and backups alone. Every case fails against upstream/master
  • make lint-qml, make build, python3 quickshell/tests/run-qml.py logic qt lock, node --test quickshell/tests/*.test.mjs, settings search index checked for freshness, prek run on the changed files. Skipped the qml-tests hook, which launches niri and can't run on this Hyprland machine

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

Screenshots / video

Settings Changes
screenshot_2026-10-02_22-29-18

Notepad slideout frame integration
screenshot_2026-10-02_22-30-02

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(launcher): note that connected Frame mode doesn't offer Spotlight dux-docs#155

Several frame-mode behaviors contradicted what the settings UI shows:

- Frame -> Blur gated blur for every shell surface in connected mode,
  including the Settings window, polkit, context menus, OSDs and toasts.
  WindowBlur now defaults to Background blur; only surfaces painted
  with the frame color (connected popouts, slideouts, Control Center)
  follow Frame -> Blur, and frame-owned surfaces are blurred by the
  frame as before.
- The notepad slideout painted its own fill at the notepad
  transparency. On screens where the frame owns connected chrome it now
  claims a frame surface (new connected_arc slot 5), so the frame paints
  it flush with the cutout, with fillets, and follows the slide.
- Notification popups painted a card surface on top of the frame body,
  stacking fills. That layer is transparent when the frame paints it.
- Connected mode stripped shadow, border and corner styling from every
  bar, including bars on displays without a frame, and hid the rows.
  Styling is now stripped and restored per bar based on whether it
  covers a frame display, re-checked on screen, frame display and
  display-name-mode changes.
- Auto popup gaps and Gap size were hidden in separate mode although
  they still apply there; they now hide only in connected mode.
- The launcher style picker was hidden in connected mode while Island
  still overrode the connected launcher. Connected mode now always uses
  the connected launcher; the picker shows Full, disabled, with a note
  linking to the Bar layout picker.
- The frame shadow ignored Shadows -> Apply to -> Bars.
Copilot AI balanced review requested due to automatic review settings October 2, 2026 20:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Comment thread quickshell/Common/SettingsData.qml Resolved
@purian23

purian23 commented Oct 4, 2026

Copy link
Copy Markdown
Member

I'm still looking this over as well, one of the screenshot statements is technically no longer true now that the island can be placed as a widget in any bar. As a result, users can use the island or the frame launcher.

image

Conava added 2 commits October 7, 2026 19:09
Carry the slideout and floating window changes over to DSlideout and
DFloatingWindow after the Dank* rename, and take master's transparent
notification card, which supersedes the connected-mode-only version.
- Skip bar style reconciliation while the screen list is empty, so a
  hotplug doesn't restore and re-strip every bar.
- Replace the 16 copies of the connector blur anchor and cutout in
  FrameWindow with a ConnectorBlurRegion inline component.
- Let connected mode use the island launcher again now that the island
  can sit in any bar. The picker offers Full and Island there and hides
  Spotlight, which opens the full launcher in that mode anyway; the note
  and the SettingsControlledBy bar target are dropped.
@Conava

Conava commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the reviews. Merged current master and addressed the comments:

  • Empty screen guard: added to _reconcileConnectedFrameBarStyles, with a test that an empty screen list leaves bar styles and backups untouched.
  • Duplicated Regions: the connector anchor plus its subtracted cutout is now a ConnectorBlurRegion inline component in FrameWindow.qml, next to DockBlurRegion. All 16 copies use it (near and far connectors for popout, modal, notification, dock and the new slideout), which takes about 290 lines out of the file.
  • Launcher in connected mode: dropped the "Only Full launcher" note and the forced Full. The picker now offers Full and Island in connected mode and hides Spotlight, which opens the full launcher there anyway. Island routing is back to master's behavior. The description is updated to match, and the docs PR sentence too.

@purian23
purian23 merged commit 0444835 into duxlabs-dev:master Oct 10, 2026
2 checks passed
@Conava
Conava deleted the frame-mode-behavior branch October 10, 2026 09:05
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.

4 participants