Repository navigation
Conversation
Qt 6.12 adds a QtQuick `Color` type. A file that imports both QtQuick and qs.Commons then resolves a bare `Color` to Qt's type, which has none of the Omarchy theme properties, so those colours come back undefined. Import qs.Commons under an alias and reference the singleton through it, the same fix Omarchy applied to its own shell. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Qt 6.12 adds a
Colortype to QtQuick. In a file that imports bothQtQuickandqs.Commons, a bareColornow resolves to Qt's type, not Omarchy's theme singleton, so references likeColor.accentcome back undefined and the panel loses its theme colours.This imports
qs.Commonsunder an alias in the nine QML files that use the singleton and references it asCommons.Color. It is the same change Omarchy made to its own shell in omacom/omarchy#14553. Nothing else changes.Security and privacy
No change.
Verification
uv run ruff format --check .uv run ruff check .uv run mypy src testsuv run pytestuv run pyscn check --max-complexity 12 --max-cycles 0 srcThe Python checks were not run: the diff touches QML only. The patched plugin has been running on Omarchy 4.5.0 with Qt 6.12.0.
Code review
Reviewer type: separate author self-review
Findings
No findings. The diff adds
import qs.Commons as Commonsto nine QML files and qualifies their existingColor.references; no logic changes.Accepted warnings
None.
🤖 Generated with Claude Code