Skip to content

Qualify the Color singleton as Commons.Color for Qt 6.12 - #2

Open
bahoerres wants to merge 1 commit into
atascg01:mainfrom
bahoerres:qt612-commons-color
Open

bahoerres wants to merge 1 commit into
atascg01:mainfrom
bahoerres:qt612-commons-color

Conversation

@bahoerres

Copy link
Copy Markdown

Qt 6.12 adds a Color type to QtQuick. Panel.qml imports both QtQuick and qs.Commons, so a bare Color now resolves to Qt's type, not Omarchy's theme singleton, and references like Color.popups.background come back undefined: the keycaps lose their theme colours.

This imports qs.Commons under an alias and references the singleton as Commons.Color. It is the same change Omarchy made to its own shell in omacom/omarchy#14553. Nothing else changes.

Tested on Omarchy 4.5.0 with Qt 6.12.0 and Hyprland 0.56.2; the JavaScript and Lua tests pass.

🤖 Generated with Claude Code

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 the keycaps lose their colours.
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>
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.

1 participant