omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Qt 6.12: built-in `QtQuick.Color` shadows `qs.Commons` Color singleton — all shell panels render black

Open garrett-fox opened this issue 1 month ago • 1 comments

System details

Apple MacBook Air (M1, 2020), Asahi aarch64 (edge channel), Omarchy 4.0.3rc4-1, qt6-base / qt6-declarative 6.12.0, quickshell 0.3.2

What's wrong?

After omarchy update pulled in Qt 6.12.0 (from 6.11.2), every shell panel renders black: SUPER+SPACE (launcher) and SUPER+K (keybindings) show an all-black overlay; ESC dismisses it. The bar, lock screen and polkit dialog are affected too.

Cause: Qt 6.12 adds a built-in Color type to QtQuick (/usr/lib/qt6/qml/QtQuick/plugins.qmltypes: exports: ["QtQuick/Color 6.12"]). It shadows the qs.Commons singleton Color (shell/Commons/qmldir: singleton Color 1.0 Color.qml) in every file that does import QtQuick + import qs.Commons. So Color.<token> resolves to QQuickColor and every theme color is undefined.

The shell log shows:

WARN scene: @shell.qml[884:-1]: TypeError: Property 'loadColors' of object QQuickColor(0x...) is not a function
WARN scene: @plugins/bar/Bar.qml[71:-1]: TypeError: Cannot read property 'background' of undefined
WARN scene: @Ui/Button.qml[37:3]: Unable to assign [undefined] to QColor
... (hundreds more, across Bar, LockView, PolkitAgent, PopupCard, KeyboardPanel, etc.)

omarchy theme refresh and omarchy restart shell don't help. shell/Commons/qmldir on master (and in the 4.0.4-2 package) still declares singleton Color, so the problem is still there upstream.

Steps to reproduce:

  1. Upgrade to qt6-base / qt6-declarative 6.12.0
  2. Restart the shell (or reboot)
  3. Press SUPER+SPACE: black screen instead of the launcher

Possible fix: rename the singleton (e.g. Colors or Palette) or import qs.Commons under a namespace (import qs.Commons as C) so it isn't shadowed by QtQuick.Color.

garrett-fox avatar Oct 15 '26 06:10 garrett-fox

Thanks for the clear diagnosis. This is the same report as #15454, which is older and still open: Qt 6.12 adds a Color type to QtQuick that shadows the shell's qs.Commons Color singleton, so every theme colour comes back undefined and the launcher, keybindings panel, bar and lock screen draw black. Same cause, same symptom, same fix, so I'm closing this one in favour of #15454 to keep the reports together.

What was checked: the fix is #14553, merged to quattro on 2026-10-08. It keeps the Color singleton in shell/Commons/qmldir and imports qs.Commons as Commons instead, qualifying every palette read as Commons.Color, so the qmldir line you saw on master is expected and is not the bug. Reading the shell source at each tag, v4.0.4 has 231 bare Color. reads and none qualified; v4.0.5 and v4.0.6 have none bare and 231 qualified, and quattro today has none bare. The backport shipped in v4.0.5, so omarchy update to v4.0.5 or later should bring the colours back on Qt 6.12. Since you're on Asahi aarch64, whether a fixed package reaches that channel yet is tracked in #16082, which reports the same break on aarch64 and notes that 4.5.0rc1 on edge already carries the fix. Nothing was run on a test machine; the check was reading the released source and its history.

The classification was done by Claude Opus 5.5 and Codex Medium separately, and they disagreed (a bug, against not actionable because it is already fixed), so no label was added. Codex Medium was also asked separately whether this and #15454 are the same report before it was closed; its independence from this triage isn't guaranteed. If the shell is still black on v4.0.5 or later, reopen this with the output of pacman -Q omarchy quickshell qt6-base qt6-declarative and the shell's TypeError lines from the journal.

omarchybot avatar Oct 22 '26 23:10 omarchybot