Repository navigation
Qualify the palette as Commons.Color for Qt 6.12 - #1
Open
Harlock123 wants to merge 1 commit into
Open
Harlock123 wants to merge 1 commit into
Harlock123 wants to merge 1 commit into
Conversation
Qt 6.12's QtQuick exports its own Color type, which shadows the shell's qs.Commons Color singleton, so bare Color.x resolves to undefined and the plugin loses its theme colours. Import qs.Commons as Commons and use Commons.Color, as Omarchy does since omacom/omarchy#14553. Co-Authored-By: Claude Opus 5.5 <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.
Qt 6.12 added a QtQuick
Colortype that shadows the shell'sqs.CommonsColorsingleton. With the unqualified import, everyColor.foreground,Color.popups.textand so on resolves toundefinedon Qt 6.12, so the plugin draws without theme colours, and the shell log fills withTypeError: Cannot read property ... of undefined.This imports
qs.Commons as Commonsalongside the existing import and qualifies palette references asCommons.Color.x, as Omarchy itself does since omacom/omarchy#14553.Style,UtilandBorderkeep their unqualified names. On older Qt this changes nothing, sinceCommons.Coloris the same singleton.Tested on Omarchy with Qt 6.12.0 and Quickshell 0.3.2 (aarch64): after the change, the plugin renders with theme colours and logs no undefined-property errors.
🤖 Generated with Claude Code