Repository navigation
fix(ui): qualify the palette as Commons.Color under Qt 6.12 - #276
Conversation
Qt 6.12 adds a Color singleton to QtQuick that shadows the one in qs.Commons, so the palette read undefined and text drew black on black. The nine files that read it now import qs.Commons as Commons.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
⛔ Files ignored due to path filters (1)
📒 Files selected for processing (12)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe change qualifies ChangesColor Namespace Qualification
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to Palette accesses now explicitly target Commons.Color across the changed QML files, while existing Style and Border access remains intact. No actionable merge-blocking regression is established. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)✨ Finishing Touches🧪 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 |
|
Confirmed on Flea 0.3.8 ( The active theme is stock. Its Qualifying |
Qt 6.12's QtQuick Color singleton shadows qs.Commons' Color, as PR #276 fixed in ui/ and shelf/. The commons-color gate keeps every tree on Commons.Color, including optional and subscript reads.
|
Merged in v0.3.9: under Qt 6.12, QtQuick's Color type hid the Omarchy palette, and this PR qualifies it as Commons.Color (7b76605). Thanks @jfg96! https://github.com/thisisgm/flea/releases/tag/v0.3.9 |
On Qt 6.12 the main window is unusable: its text draws black on black.
qt6-declarative 6.12 adds a
Colorsingleton toQtQuick. Where a file imports bothQtQuickandqs.Commonsunqualified, that singleton shadowsqs.Commons'Color, so the palette reads undefined: the window draws text black on black and only control frames show. Omarchy hit the same thing in its shell and fixed it the same way (omacom/omarchy#14553, omacom/omarchy#14626).The nine files that read the palette (
ui/Theme.qmland eightshelf/files) now importqs.Commons as Commonsbeside the existing plain import, which still suppliesStyleandBorder, and sayCommons.Color. Comments are unchanged.Coloris the only nameqs.Commonsexports that any installed QML module also exports.The extra import line moves three recorded ceilings by one (
ui/Theme.qml434,shelf/Panel.qml431,shelf/ShelfCard.qml444), noted in AGENTS.md.tests/staticgates-unqualified.tsvmoves theui/Theme.qmlrows below the import down one line in both profiles and namesCommonswhere it namedColor.tests/js/themes.jspins the newContrast.ensureRatio(Commons.Color.urgent, …)text.Validation on Qt 6.12.0 with the quickshell-present profile:
tests/staticgates.pyalready fails on main with 24 staleColorallowances inui/Theme.qml, because qmllint now resolvesColorto QtQuick's singleton. With it,STATICGATES PASS gates=7.tools/flea-file-budgetpasses.check()passes:cargo test --locked(1,570 tests),./tests/js.sh(11,267 checks plus Edmonton and DST) and./tests/keymap-gen.sh.tests/shellload.shpasses (5 checks).ui/andshelf/were installed over flea-bin 0.3.8 and the window draws its theme again.I could not check the quickshell-missing profile rows locally.
Summary by CodeRabbit