Skip to content

Qualify the shell palette as Commons.Color for Qt 6.12 - #42

Merged
brentkearney merged 1 commit into
mainfrom
fix/qt612-color
Oct 11, 2026
Merged

brentkearney merged 1 commit into
mainfrom
fix/qt612-color

Conversation

@brentkearney

@brentkearney brentkearney commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator

Qt 6.12 adds a Color singleton to QtQuick. With both QtQuick and qs.Commons imported, a bare Color now 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 Commons and names the palette Commons.Color. The unqualified import stays for Style.

File References
OmdropIcon.qml 1
Panel.qml 4
Radar.qml 2

No 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.Commons module (a Color and a Style singleton) and a test file importing it both plain and aliased, as these files do:

Qt Commons.Color.foreground bare Color.foreground
6.11.2 resolves resolves
6.12.0 resolves undefined

The qualified form works on both versions; the bare form breaks only on 6.12.

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.
@brentkearney
brentkearney merged commit aafa4cd into main Oct 11, 2026
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.
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