Skip to content

Fix Omarchy theme loading when Qt shadows Color - #285

Closed
zigmoo wants to merge 1 commit into
thisisgm:mainfrom
zigmoo:fix/qualify-omarchy-color
Closed

zigmoo wants to merge 1 commit into
thisisgm:mainfrom
zigmoo:fix/qualify-omarchy-color

Conversation

@zigmoo

@zigmoo zigmoo commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

On Qt 6.12.0 with Quickshell 0.3.2, Flea renders black text on black backgrounds because the unqualified Color name in Theme.qml resolves to QQuickColor rather than the Omarchy Commons singleton. Logs report loadColors/loadShell are not functions, undefined QColor assignments, and the IPC palette reports a black foreground despite a valid orange foreground in the OS theme.

Import qs.Commons with the Omarchy namespace and qualify the color singleton references. Update the existing theme source check for that namespace and increase the recorded Theme.qml line ceiling by the one added import.

Validation: the palette suite passes 17 checks and the theme suite passes 372 checks; file-budget and git diff --check pass. Live launches with both installed 0.3.7 UI and current upstream UI load the AmberConsole palette successfully: themeLoaded=true, foreground=#ff6b08, background=#100600. The original UI reports themeLoaded=false and foreground=#000000. The user confirmed the visual repair. No palette colors were changed.

@coderabbitai

coderabbitai Bot commented Oct 10, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Why:
Qt resolves the unqualified Color name to QQuickColor and leaves theme roles black

Evidence:
Palette 17 checks and themes 372 checks pass; file budget and diff checks pass; live IPC reports the expected foreground and background; user confirmed the visual repair

composition_ref: $DIL_ROOT/memory/_shared/compositions/drafts/20261010_082825_132381_thisisgm_flea_github.md

— Z & Pedro
DIL session: 2d7911a1-968d-4e35-85f1-26a692aff30f
2026-10-10 08:29 CDT
@zigmoo
zigmoo force-pushed the fix/qualify-omarchy-color branch from 079f062 to 0bcd5a5 Compare October 10, 2026 13:33
@thisisgm

Copy link
Copy Markdown
Owner

Qt 6.12's QtQuick Color type shadowed the Omarchy palette in Theme.qml and the shelf; #276 fixes the same clash by reading the palette as Commons.Color, is merged, and ships in Flea 0.3.9 within a day, with credit to this PR. Thanks @zigmoo!

@thisisgm

Copy link
Copy Markdown
Owner

Fixed in v0.3.9: under Qt 6.12, QtQuick's Color type hid the Omarchy palette and every view drew black; Flea now reads it as Commons.Color (daf1ffa). Thanks @zigmoo! https://github.com/thisisgm/flea/releases/tag/v0.3.9

@thisisgm thisisgm closed this Oct 11, 2026
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.

2 participants