omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Qt 6.12 Color singleton collision breaks shell theme colors, bar, and Super+Space menu

Open 1313hati opened this issue 1 month ago • 5 comments

System details

  • Omarchy: 4.0.0.r6807.g902fd8a-1
  • Kernel: 7.2.8-5-omarchy-bore
  • CPU: Intel Core i5-8250U
  • GPU: Intel UHD Graphics 620 (i915)
  • Quickshell before update: 0.3.1-1
  • Qt before update: qt6-base 6.11.2-3, qt6-declarative 6.11.2-2
  • Qt after update: qt6-base 6.12.0-2, qt6-declarative 6.12.0-1, qt6-svg 6.12.0-1, qt6-wayland 6.12.0-1

What happened

Immediately after the system update to Qt 6.12, Omarchy Shell stopped rendering correctly. Initially the top bar was effectively gone (only a black line), and Super+Space produced a black screen/menu. After rebuilding Quickshell against Qt 6.12 so the shell could start, the bar and menu still rendered black-on-black because all Omarchy theme color roles were undefined.

The active theme was Matte Black, whose generated shell palette was valid (bar.background = "#121212", bar.text = "#bebebe"). The problem happened before those values could be consumed and was not theme-specific configuration.

Representative shell log messages:

@plugins/bar/Bar.qml[75:3]: Unable to assign [undefined] to QColor
@plugins/bar/Bar.qml: TypeError: Cannot read property 'background' of undefined
@plugins/bar/Bar.qml: TypeError: Cannot read property 'text' of undefined
@Ui/PanelToolTip.qml: TypeError: Cannot read property 'text' of undefined
plugins/menu/Menu.qml: TypeError: Cannot read property 'background' of undefined
plugins/menu/Menu.qml: TypeError: Cannot read property 'selectedText' of undefined
ipc shell finishThemeIntro failed: TypeError: Property 'loadColors' of object QQuickColor(...) is not a function
plugins/background/Background.qml: TypeError: Property 'loadColors' of object QQuickColor(...) is not a function

Steps to reproduce

  1. Start with Omarchy Shell working on Qt 6.11.2 and Quickshell 0.3.1.
  2. Upgrade the Qt packages to 6.12.0 through the normal Omarchy/system update.
  3. Restart Omarchy Shell or log in again.
  4. Observe missing/black bar surfaces and an unusable black Super+Space menu.
  5. Inspect journalctl --user -t omarchy-shell; theme references such as Color.bar, Color.menu, and Color.loadColors() resolve incorrectly or are undefined.

Expected behavior

The bar, menus, lock screen, notifications, and other shell surfaces should continue loading their colors dynamically from the active Omarchy theme after a Qt update.

Diagnosis

Qt 6.12 introduced a Color QML singleton in QtQuick. Omarchy also imports its own qs.Commons singleton named Color and uses it unqualified throughout the shell. Under Qt 6.12, references are resolving to Qt's QQuickColor object instead of Omarchy's theme singleton. That object has Qt color utility methods but no Omarchy properties such as bar, menu, or loadColors, matching the errors above.

Qt documentation: https://doc.qt.io/qt-6.12/qml-qtquick-color.html

There is also a packaging transition issue: the existing Quickshell binary had been built against Qt 6.11.2, so it needed rebuilding for Qt 6.12 before the shell would reliably start. Rebuilding Quickshell alone did not fix the Color collision.

Confirmed workaround

Rolling the complete installed Qt set back to 6.11.2 together with the matching quickshell 0.3.1-1, moving the Qt 6.12-generated QML cache aside, and restarting Omarchy Shell restored the dynamic theme colors and Super+Space immediately. The restarted process has none of the QQuickColor, loadColors, or undefined-color errors.

Suggested fix

Rename the Omarchy singleton to a name that cannot collide (for example ThemeColors), or import qs.Commons under an alias and qualify its Color references. The package transition should also ensure Quickshell is rebuilt against Qt 6.12.

1313hati avatar Oct 08 '26 08:10 1313hati

duplicate of #14548

MPavleski avatar Oct 08 '26 09:10 MPavleski

Confirmed the Color collision on a live system, and verified the rename workaround: renamed the qs.Commons singleton Color -> ShellColor (file, qmldir entry, and all Color. references). After restarting the shell, the errors are gone and the bar, background, and menus render.

Also: the quickshell 0.3.1 source does not compile against Qt 6.12 (qmetatype.h: Meta Types must be fully defined), so "rebuild 0.3.1" isn't a working step. Upstream v0.3.2 builds cleanly against 6.12.

nightdevil00 avatar Oct 08 '26 09:10 nightdevil00

Confirming real-world impact on omarchy 4.0.4-1 + qt6-base 6.12.0-2 (Arch extra, no local modifications before breakage): after a routine pacman -Syu, every shell surface that reads theme colors renders unstyled/black — the Super+Space launcher opens as a solid black fullscreen layer (QML spam: Button.qml: Cannot read property 'background'/'text'/'border' of undefined), plugin panels likewise.

We applied PR #14511 locally (shell/ portion, 69 files) and everything renders correctly again — colors, launcher, lock screen, panels. The fix works; please prioritize merging and cutting a release, since every user who updates to Qt 6.12 from the repos hits this.

For completeness the breakage is two-layered on Arch right now: quickshell 0.3.1-1 in extra is also still built against Qt 6.11 (ABI warning + crashes), which needs a repo rebuild too.

jfdnet avatar Oct 08 '26 12:10 jfdnet

For anyone landing here: this is fixed on quattro by #14553 (merged today), which qualifies the qs.Commons palette references so Qt 6.12's Color no longer shadows them. Tracking continues in #14548.

The separate quickshell-built-against-6.11 problem is #14469. On x86_64 edge, the fixed build is also held up by the stale repo database in #14564.

jandrusk avatar Oct 08 '26 13:10 jandrusk

Closing as fixed by #14553 ("Fix shell palette collision with Qt 6.12"), merged into quattro today. Qt 6.12 adds a QtQuick Color singleton that shadows the shell's qs.Commons.Color, which is what left the palette undefined here. #14553 imports qs.Commons as Commons and qualifies every palette reference as Commons.Color, so the collision is gone, and the fix ships with the next release. Thanks for the report and the root-cause work. If anything here still happens on a build that includes #14553, say so and we'll reopen. (Checked by Claude Opus 5.5 against the #14553 diff; no second review.)

omarchybot avatar Oct 08 '26 15:10 omarchybot