Repository navigation
Qualify shell palette references for Qt 6.12 - #64
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (76)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughQML palette references now use the ChangesPalette alias qualification
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to 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)✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
Bugbot couldn't run - usage limit reachedBugbot 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) |
|
@coderabbitai review |
✅ Action performedReview finished.
|
This morning's Qt 6.12 upgrade (
qt6-declarative6.11.2 to 6.12.0, quickshell 0.3.2) added aColorsingleton toQtQuick. It shadowsqs.CommonsColorno matter the import order, so every unqualifiedColor.*palette lookup in the shell resolves toundefined.On this machine that showed up as:
surface #f7000000).ipc shell finishThemeIntro failed: Property 'loadColors' of object QQuickColor is not a function.Unable to assign [undefined] to QColorwarnings.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:shell/plugins/lock/Service.qmlandshell/plugins/polkit/PolkitAgent.qml, against the fork's face-card changes. I kept the fork's side of each hunk.import qs.Commons as Commons, useCommons.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.qmlandshell/plugins/polkit/PolkitAgent.qml.Color.reference is left inshell/**/*.qml; only comments mention the name.Verification:
QtQuick'sColorwins over a local singleton in both import orders.TypeErrors are gone. The polkit prompt and the face overlay render on the theme's colours again../test/shellwas run. The 12 failing test files fail identically on plainquattro: missingomarchy-pkgscheckout, 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
quattrowould 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
Colorin QML now resolves to Qt Quick’sColortype instead of the theme palette singleton, which broke theming (loadColors/loadShell), polkit/lock/face UI, and floodedundefined→QColorwarnings.This PR adds
import qs.Commons as Commonsacross shell UI, commons helpers (Border,Style), plugins, andshell.qml, and renames palette access toCommons.Color(includingConnections.targetand 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
Colortype, preserving intended theme colors across the interface.