Skip to content

fix(island): default reservation follows the pill below the 40px strip - #4038

Merged
purian23 merged 1 commit into
duxlabs-dev:masterfrom
KadirJeager:fix/island-reserve-follows-pill
Oct 31, 2026
Merged

purian23 merged 1 commit into
duxlabs-dev:masterfrom
KadirJeager:fix/island-reserve-follows-pill

Conversation

@KadirJeager

Copy link
Copy Markdown
Contributor

Description

islandMetrics says the default reservation follows the pill, but it reserves max(strip, gap + compact), where the strip is the 40px default of islandReserveThickness. When the pill is shorter than 40px, the reservation stays at 40px and leaves a gap between the pill and docked or maximized windows. The pill is shorter than 40px in notch mode (no outer gap, so the default 38px pill reserves 40px) or when the compact thickness is reduced. On a 32px notched pill the gap is 8px.

With the default islandReserveThickness, the island now reserves gap + compact, the pill itself. The painted band keeps its 40px minimum, and an explicit islandReserveThickness is still reserved as set. With the default settings (38px pill, 4px gap = 42px) nothing changes.

tests/layout-resolver.test.mjs: the notch case now expects the pill height, and a case with a 32px notched pill is added. The two failing tests in tests/ (audio profile list/set) fail on master as well.

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

None found.

Screenshots / video

None; the change only moves where docked and maximized windows start (hyprctl monitors reserved top: 40 before, 32 after on a 32px notched pill, Hyprland 0.57).

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 (no strings)
  • Go changes: ran make fmt, added/updated tests, make test passes, and go mod tidy is clean (no Go changes)
  • QML changes: ran make lint-qml with no new warnings (JS only)
  • I have opened a corresponding pull request in dux-docs to document any new behaviors (no new behavior to document)

🤖 Generated with Claude Code

islandMetrics documents that the default reservation follows the pill, but it
reserved max(strip, gap + compact). With the notch (gap 0) or a compact pill
under 40px the reservation stayed at 40px, leaving a gap between the pill and
docked/maximized windows (e.g. 8px for a 32px notched pill). Reserve gap +
compact when islandReserveThickness is left at its default; the painted band
keeps the 40px minimum and an explicit value is still reserved as set.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 30, 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 insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@github-actions github-actions Bot added fix ui Quickshell UI under quickshell/ labels Oct 30, 2026
@purian23

Copy link
Copy Markdown
Member

/claude review

@claude

claude Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Claude review

No issues found.
Checked: islandMetrics reserve change against its consumers (ShellLayout → resolveScreen stacking/frame reservation via min(thickness, islandReserve), DBarBody.surfaceExclusiveZone), satellite depth staying within gap + pillFace, density presets (compact/dense now reserve 38/36 instead of 40, consistent with the intent), and the updated resolver tests. Model: claude-opus-5-5.

@purian23
purian23 merged commit 84d496f into duxlabs-dev:master Oct 31, 2026
3 checks passed
dux-ci Bot pushed a commit that referenced this pull request Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix ui Quickshell UI under quickshell/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants