Repository navigation
Qualify the shell palette as Commons.Color for Qt 6.12 - #42
Merged
Merged
Conversation
Qt 6.12 adds a Color singleton to QtQuick, and an unqualified Color now resolves to it instead of qs.Commons' palette. Every palette lookup in the icon, panel and radar came back undefined, so they drew with no theme colours and filled the shell log with TypeErrors. Import qs.Commons under an alias and name the palette through it, the change Omarchy made in its own shell (omacom/omarchy#14553) and asks of plugins. The aliased import resolves the same way on Qt 6.11.
Revoxandco
pushed a commit
to Revoxandco/omdrop-plugin
that referenced
this pull request
Oct 18, 2026
manifest.json and VERSION_FALLBACK move to 0.16.0. Since 0.15.1: radio backends other than omdrop-awdl (netmojo-systems#25), the captured media capabilities and IsAirDropable (netmojo-systems#20), a scoped Upload wait (netmojo-systems#33), the Qt 6.12 palette fix (netmojo-systems#42), and hardware-neutral docs and marketplace name (netmojo-systems#43). The driver pin stays at omdrop-awdl 0.9.1, the latest release.
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
Colorsingleton to QtQuick. With both QtQuick andqs.Commonsimported, a bareColornow resolves to Qt's type rather than the shell palette. Every palette lookup in omdrop returns undefined: the icon, panel and radar draw without theme colours, and the shell logs a TypeError for each binding.This is the change Omarchy made to its own shell in omacom/omarchy#14553, which its notes ask third-party plugins to copy. Each affected file imports
qs.Commons as Commonsand names the paletteCommons.Color. The unqualified import stays forStyle.OmdropIcon.qmlPanel.qmlRadar.qmlNo bare
Color.references remain. The aliased import resolves identically on Qt 6.11, so older Omarchy builds are unaffected.Testing
On an Omarchy 4.0.2 shell (backported #14553), Qt 6.12.0 and quickshell 0.3.2, the patched plugin loaded with no palette errors in the shell log. The bar icon and the open panel drew in theme colours, and three AirDrop transfers were received while it was loaded.
Backward compatibility was checked with a minimal
qs.Commonsmodule (aColorand aStylesingleton) and a test file importing it both plain and aliased, as these files do:Commons.Color.foregroundColor.foregroundundefinedThe qualified form works on both versions; the bare form breaks only on 6.12.