omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Shell menus and popups render solid black on Qt 6.12: QtQuick's new `Color` singleton shadows `qs.Commons.Color`

Open dietrich opened this issue 1 month ago • 4 comments

What happened

On a fresh install, Super+Space (and every other Omarchy menu or popup) covers the screen with solid black. The menu is there and takes keyboard focus, but nothing in it is drawn. The bar, notifications and tooltips also lose their theme colors.

Expected

The menu shows up with the current theme's colors.

Cause

Qt 6.12 adds a built-in singleton named Color to the QtQuick module:

# /usr/lib/qt6/qml/QtQuick/plugins.qmltypes
name: "QQuickColor"
exports: ["QtQuick/Color 6.12"]
isSingleton: true

The Omarchy shell has its own singleton with the same name (singleton Color 1.0 Color.qml in shell/Commons/qmldir). Under Qt 6.12, an unqualified Color resolves to Qt's QQuickColor, not the Omarchy one, regardless of import order. So Color.menu, Color.shellValues, Color.popups and the rest are all undefined, and every color binding falls back to its default value.

Shell log (qs log), repeated hundreds of times:

WARN scene: @Ui/Button.qml[57:-1]: TypeError: Cannot read property 'background' of undefined
WARN scene: @Ui/PanelToolTip.qml[22:-1]: TypeError: Cannot read property 'background' of undefined
WARN scene: @Commons/Border.qml[25:-1]: TypeError: Cannot read property 'menu.border-alpha' of undefined
WARN scene: @plugins/bar/Bar.qml[1332:-1]: TypeError: Cannot read property 'background' of undefined
WARN scene: .../plugins/background/Background.qml[78:-1]: TypeError: Property 'loadColors' of object QQuickColor(0x...) is not a function

Minimal reproduction (Qt 6.12, outside Omarchy)

Mod/qmldir:

module Mod
singleton Color 1.0 Color.qml

Mod/Color.qml:

pragma Singleton
import QtQuick
QtObject { property string mine: "omarchy" }

shell.qml:

import "Mod"
import QtQuick
import Quickshell
import "Mod" as M
ShellRoot {
  Component.onCompleted: console.warn("Color=", Color, Color.mine, "| M.Color=", M.Color, M.Color.mine)
}

Output from quickshell -p shell.qml:

Color= QQuickColor(0x...) undefined | M.Color= Color_QMLTYPE_0(0x...) omarchy

The plain name resolves to Qt's singleton even though Mod is imported first. A qualified import resolves to Omarchy's.

Possible fixes

  • Rename the singleton (for example ThemeColor) and update its references. That's about 257 Color. references across 54 files under shell/.
  • Or import Commons under a namespace (import qs.Commons as C, then C.Color).
  • Or pin import QtQuick 6.11 (or lower) in the affected files, so Qt's Color (added in 6.12) isn't imported.

How Qt 6.12 got installed

The installer installed quickshell-git (built against Qt 6.11.2), then upgraded Qt from 6.11.2 to 6.12.0 in the same run. Pacman printed:

COMPATIBILITY WARNING: Quickshell was built against Qt 6.11.2 but the system has updated to Qt 6.12.0 without rebuilding the package.

Replacing it with extra/quickshell 0.3.2-1 (built against Qt 6.12) clears the compatibility warning, but the black menus remain. That points to the name clash, not the Quickshell build. Rebuilding quickshell-git from the AUR on aarch64 also failed at CMake configure: Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY ...), even though libglvnd 1.7.0 is installed. That may be worth a look separately.

System

  • Hardware: Apple MacBook Pro (16-inch, M1 Max, 2021), MacBookPro18,2 (Asahi, dual boot with macOS)
  • Omarchy: 4.0.4-mac.1 (package omarchy-dev 4.0.4.r7099.gb8ed395-1)
  • Kernel: 7.1.12-2-7-ARCH (aarch64)
  • Hyprland: 0.56.2
  • qt6-base 6.12.0-3, qt6-declarative 6.12.0-2
  • quickshell 0.3.2-1 (extra), previously quickshell-git 0.3.0.r20.g28771c7-2
  • Displays: built-in eDP-1 (scale 2), plus HDMI and USB-C externals (not related; the bug reproduces on the built-in display)

Steps to reproduce

  1. Install Omarchy on a system where Qt 6.12 ends up installed.
  2. Press Super+Space.
  3. The screen turns solid black. Escape closes it.

dietrich avatar Oct 23 '26 05:10 dietrich

This looks like the Qt 6.12 Color clash from #14946: Qt 6.12's new Color type hides the shell's own Color, so palette reads come back empty. It's fixed by #14553, which shipped in 4.0.5 (and 4.0.6). Your build may not carry that fix yet; if it still happens on 4.0.5 or later, please post pacman -Q omarchy quickshell qt6-base qt6-declarative.

paulogeyer avatar Oct 23 '26 13:10 paulogeyer

Thanks for the quick pointer to #14946 and #14553, that matches what I'm seeing.

I can't test the fix yet: this is the Apple Silicon (Mac) edition, which is still on 4.0.4-mac.1, and omarchy update reports it as up to date, so 4.0.5 hasn't reached the Mac channel. I'll update and report back once it's available. Current versions in case they're useful:

omarchy-dev 4.0.4.r7099.gb8ed395-1
quickshell 0.3.2-1
qt6-base 6.12.0-3
qt6-declarative 6.12.0-2

dietrich avatar Oct 23 '26 19:10 dietrich

Update from the Apple Silicon side: I can confirm #14553 fixes this on the Mac edition.

The Mac package channel is still on 4.0.4-mac.1 (no Mac release since 2026-09-24, and omarchy update reports up to date), so I reproduced the change locally instead of waiting. The PR's diff doesn't apply cleanly to the 4.0.4 shell (older code), but the fix is just the two mechanical edits, so I applied those with sed to the installed shell: add import qs.Commons as Commons and replace bare Color. with Commons.Color. in every QML file under shell/ that reads the palette. That touched 54 files here (the PR touches 66 on main).

Result on Qt 6.12 with that change:

  • the TypeError: Cannot read property 'background' of undefined / Unable to assign [undefined] to QColor spam in the shell log goes from dozens per start to zero
  • the bar, notifications and the Super+Space menu render with the theme colors again

Versions:

omarchy-dev 4.0.4.r7099.gb8ed395-1
quickshell 0.3.2-1
qt6-base 6.12.0-3
qt6-declarative 6.12.0-2

So nothing more needed on the fix itself; the Mac channel just needs to pick up 4.0.5+. Happy to close this as a duplicate of #14946 if you prefer, or leave it open until the Mac release lands.

dietrich avatar Oct 31 '26 02:10 dietrich

I read the report, all follow-ups, #14946 and the merged palette change in #14553. Your October 31 follow-up reports that applying the namespace change restored the menus and cleared the palette errors on 4.0.4-mac.1; the remaining concern you raised is delivery through the Mac package channel.

This review was by GPT-6 in Codex (reasoning effort not exposed). The classification reviewer, deepseek-v4p1-flash, returned no classification, so classification remains unsettled. No runtime tests or second diagnostic review ran. The issue stays open without new labels, awaiting maintainer follow-up.

omarchybot avatar Nov 18 '26 16:11 omarchybot