Repository navigation
Qualify the shell palette as Commons.Color for Qt 6.12 - #15
Open
eliasfaltin wants to merge 1 commit into
Open
eliasfaltin wants to merge 1 commit into
eliasfaltin wants to merge 1 commit into
Conversation
Qt 6.12 adds a Color type to QtQuick. It shadows the shell's Color singleton from qs.Commons, so every unqualified Color.<prop> read returns undefined and the panel and roaming pet lose their colors. Import qs.Commons as Commons and read the palette as Commons.Color, the same fix Omarchy applied in omacom/omarchy#14553. The plain qs.Commons import stays for Style.
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 adds a
Colortype to the QtQuick module. It shadows the shell'sColorpalette singleton fromqs.Commons. Every unqualifiedColor.<prop>read now returnsundefined, so the panel and the roaming pet render with no theme colors. The shell log shows lines like these:Fix
import qs.Commons as CommonstoPanel.qmlandRoamWindow.qml.Color.xtoCommons.Color.x.qs.Commonsimport, becausePanel.qmlstill usesStyle.This matches Omarchy's own fix in omacom/omarchy#14553. The change also works on older Qt versions, because a qualified module import works on any Qt version.
Verification
grepfinds no unqualifiedColorreferences left in the plugin's QML files.qmllint6.12.0 parses both files with no syntax errors.