Skip to content

Qualify shell palette references for Qt 6.12 - #64

Merged
cursor[bot] merged 1 commit into
quattrofrom
cursor/qt612-palette-fix-78a2
Oct 10, 2026
Merged

cursor[bot] merged 1 commit into
quattrofrom
cursor/qt612-palette-fix-78a2

Conversation

@mark-groves

@mark-groves mark-groves commented Oct 8, 2026 •

Copy link
Copy Markdown
Owner

This morning's Qt 6.12 upgrade (qt6-declarative 6.11.2 to 6.12.0, quickshell 0.3.2) added a Color singleton to QtQuick. It shadows qs.Commons Color no matter the import order, so every unqualified Color.* palette lookup in the shell resolves to undefined.

On this machine that showed up as:

  • The polkit prompt covering the whole screen in black.
  • The sudo face overlay card painting on black (surface #f7000000).
  • ipc shell finishThemeIntro failed: Property 'loadColors' of object QQuickColor is not a function.
  • A flood of Unable to assign [undefined] to QColor warnings.

Upstream fixed this yesterday in omacom/omarchy@b83d3df0 ("Qualify shell palette references for Qt 6.12", omacom#14553). This PR cherry-picks it onto quattro:

  • The cherry-pick conflicted in shell/plugins/lock/Service.qml and shell/plugins/polkit/PolkitAgent.qml, against the fork's face-card changes. I kept the fork's side of each hunk.
  • I then applied upstream's rule (import qs.Commons as Commons, use Commons.Color) to the fork-only files the upstream commit couldn't know about: shell/Ui/FaceChromeCanvas.qml, shell/plugins/face-overlay/FaceOverlay.qml, shell/plugins/lock/LockView.qml and shell/plugins/polkit/PolkitAgent.qml.
  • After this, no unqualified Color. reference is left in shell/**/*.qml; only comments mention the name.

Verification:

  • A one-file probe on this machine confirms QtQuick's Color wins over a local singleton in both import orders.
  • After restarting the shell on this branch, the palette TypeErrors are gone. The polkit prompt and the face overlay render on the theme's colours again.
  • ./test/shell was run. The 12 failing test files fail identically on plain quattro: missing omarchy-pkgs checkout, no X display for the canvas harness, and other environment-only failures.

The face card dark-glass PR is stacked on this branch. A normal upstream merge into quattro would also bring the upstream half of this in.


Note

Medium Risk
Wide mechanical QML rename with low logic change, but it touches every themed surface and theme hot-reload; a missed Color. reference would silently break styling again on Qt 6.12.

Overview
Qt 6.12 compatibility: unqualified Color in QML now resolves to Qt Quick’s Color type instead of the theme palette singleton, which broke theming (loadColors/loadShell), polkit/lock/face UI, and flooded undefined → QColor warnings.

This PR adds import qs.Commons as Commons across shell UI, commons helpers (Border, Style), plugins, and shell.qml, and renames palette access to Commons.Color (including Connections.target and theme reload paths). Docs (omarchy-shell.md, theming.md, shell-dev.md) now require the same pattern for first- and third-party QML. Shell tests and fixtures were updated to match.

Reviewed by Cursor Bugbot for commit 4c8664b. Configure here.

Summary by CodeRabbit

  • Bug Fixes
    • Fixed shell and plugin palette references that could conflict with Qt 6.12’s Color type, preserving intended theme colors across the interface.
    • Corrected the error color shown by the authentication prompt’s default icon.
  • Documentation
    • Updated theming guidance and examples to show the qualified palette references needed for shell and plugin QML.

@coderabbitai

coderabbitai Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f60e2bb6-4109-48fd-9119-1a54c7228746
📥 Commits

Reviewing files that changed from the base of the PR and between 01efd38 and 4c8664b.

📒 Files selected for processing (76)
  • agents/skills/shell-dev.md
  • docs/omarchy-shell.md
  • docs/theming.md
  • shell/Commons/Border.qml
  • shell/Commons/Style.qml
  • shell/Ui/Button.qml
  • shell/Ui/ButtonGroup.qml
  • shell/Ui/ConfirmDialog.qml
  • shell/Ui/CursorSurface.qml
  • shell/Ui/Dropdown.qml
  • shell/Ui/FaceChromeCanvas.qml
  • shell/Ui/KeyboardPanel.qml
  • shell/Ui/MultiSelect.qml
  • shell/Ui/NumberField.qml
  • shell/Ui/OpticalGlyph.qml
  • shell/Ui/Panel.qml
  • shell/Ui/PanelActionButton.qml
  • shell/Ui/PanelHero.qml
  • shell/Ui/PanelSectionHeader.qml
  • shell/Ui/PanelSeparator.qml
  • shell/Ui/PanelSlider.qml
  • shell/Ui/PanelToolTip.qml
  • shell/Ui/PopupCard.qml
  • shell/Ui/SearchableDropdown.qml
  • shell/Ui/SpeedTestOverlay.qml
  • shell/Ui/TextField.qml
  • shell/Ui/Toggle.qml
  • shell/Ui/ToggleSwitch.qml
  • shell/Ui/WidgetButton.qml
  • shell/plugins/agents/Panel.qml
  • shell/plugins/background/Background.qml
  • shell/plugins/bar/Bar.qml
  • shell/plugins/bar/indicators/PasswordlessSudo.qml
  • shell/plugins/bar/widgets/ActiveWindow.qml
  • shell/plugins/bar/widgets/Tray.qml
  • shell/plugins/clipboard/Clipboard.qml
  • shell/plugins/dev-gallery/GalleryPanel.qml
  • shell/plugins/emojis/Emojis.qml
  • shell/plugins/face-overlay/FaceOverlay.qml
  • shell/plugins/image-picker/ImagePicker.qml
  • shell/plugins/lock/LockView.qml
  • shell/plugins/lock/Service.qml
  • shell/plugins/menu/Menu.qml
  • shell/plugins/notifications/components/NotificationCard.qml
  • shell/plugins/osd/Osd.qml
  • shell/plugins/panels/audio/Panel.qml
  • shell/plugins/panels/bluetooth/Panel.qml
  • shell/plugins/panels/clock/Panel.qml
  • shell/plugins/panels/dropbox/DropboxIcon.qml
  • shell/plugins/panels/dropbox/Panel.qml
  • shell/plugins/panels/elsewhen/ArcText.qml
  • shell/plugins/panels/elsewhen/CityRow.qml
  • shell/plugins/panels/elsewhen/CitySearch.qml
  • shell/plugins/panels/elsewhen/DaylightStrip.qml
  • shell/plugins/panels/elsewhen/Globe.qml
  • shell/plugins/panels/elsewhen/GlobeFooter.qml
  • shell/plugins/panels/elsewhen/HeroTitle.qml
  • shell/plugins/panels/elsewhen/MiniGlobe.qml
  • shell/plugins/panels/elsewhen/MoonDot.qml
  • shell/plugins/panels/elsewhen/Panel.qml
  • shell/plugins/panels/monitor/Panel.qml
  • shell/plugins/panels/network/Panel.qml
  • shell/plugins/panels/power/Panel.qml
  • shell/plugins/panels/tailscale/Panel.qml
  • shell/plugins/panels/tailscale/TailscaleIcon.qml
  • shell/plugins/panels/weather/Panel.qml
  • shell/plugins/polkit/PolkitAgent.qml
  • shell/plugins/reminders/ReminderFlow.qml
  • shell/plugins/services/media/BarWidget.qml
  • shell/services/BackgroundIntro.qml
  • shell/shell.qml
  • test/shell.d/bar-test.sh
  • test/shell.d/fixtures/background-pending-theme/shell.qml
  • test/shell.d/fixtures/network-captive-portal/shell.qml
  • test/shell.d/fixtures/network-owe-transition/shell.qml
  • test/shell.d/passwordless-sudo-indicator-test.sh

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

QML palette references now use the Commons.Color alias across shared shell code, UI components, and plugins. Documentation, tests, and fixtures reflect the qualified references. The polkit default-chrome glyph also uses the text-error color for its error state.

Changes

Palette alias qualification

Layer / File(s) Summary
Document palette alias usage
agents/skills/shell-dev.md, docs/omarchy-shell.md, docs/theming.md
Documentation explains the Commons alias for qs.Commons, the Commons.Color palette path, and the Qt 6.12 Color name conflict.
Update shared color helpers and theme loading
shell/Commons/*, shell/shell.qml, shell/services/BackgroundIntro.qml, shell/plugins/background/Background.qml
Shared helpers and theme-loading code use Commons.Color for palette access and shell-value loading.
Qualify built-in UI palette references
shell/Ui/*
UI components use Commons.Color for palette defaults and lookups. Existing selection and rendering logic remains unchanged.
Qualify plugin references and checks
shell/plugins/*, test/shell.d/*
Plugins, fixtures, and test assertions use qualified palette references. The polkit default-chrome glyph’s error state now uses the polkit text-error color.

Priority: ➖ Normal

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Bug fix

Suggested reviewers: dhh

Merge Risk: ⚪ Minimal · up to 4c866

The palette references are qualified across the modified QML, with no remaining unqualified lookups found in the changed files. No material merge risk is evident.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: qualifying shell palette references to address Qt 6.12 name resolution.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cursor

cursor Bot commented Oct 8, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: 5c6c3dc2-7c29-4bba-b72e-bc623d031e27)

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@cursor
cursor Bot merged commit 4b58ef1 into quattro Oct 10, 2026
3 checks passed
@mark-groves
mark-groves deleted the cursor/qt612-palette-fix-78a2 branch October 17, 2026 23:22
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.

2 participants