Skip to content

Tint Cloudflare connected tray icon for light themes - #13580

Open
ryantm wants to merge 5 commits into
omacom:quattrofrom
ryantm:fix-cloudflare-light-tray
Open

ryantm wants to merge 5 commits into
omacom:quattrofrom
ryantm:fix-cloudflare-light-tray

Conversation

@ryantm

@ryantm ryantm commented Sep 28, 2026

Copy link
Copy Markdown

Summary

Cloudflare Zero Trust publishes its connected tray icon as zero-trust-connected. The installed SVG is solid white, but its name lacks the -symbolic suffix that Omarchy uses to tint monochrome icons. On a light bar, it is hard to see.

Tint that specific connected icon with the bar foreground, as Omarchy already does for symbolic icons. Keep Cloudflare's orange, warning, disconnected, and error status icons in their original colors.

Verification

  • bash test/shell.d/tray-test.sh
  • Ran the changed tray in a temporary copy of the live Omarchy shell and visually checked the Cloudflare icon on a light bar. Restored the normal shell afterward.

@ryantm

ryantm commented Sep 29, 2026

Copy link
Copy Markdown
Author

We submitted a request to Cloudflare Support asking the Linux client to ship a symbolic connected icon and publish it as zero-trust-connected-symbolic. That would let tray hosts recognize and recolor it without a Cloudflare-specific exception.

I still recommend merging this PR so Omarchy users get a readable, theme-aware icon while Cloudflare considers the request. If Cloudflare later ships the symbolic icon, we can remove this special case.

@omarchybot omarchybot added the bug Something isn't working label Oct 1, 2026
The adaptive bar foreground follows the wallpaper on a transparent bar, but the Tray icons popup keeps the theme background, so tinting its icons with it drew them dark on dark there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@omarchybot omarchybot added the verified Omarchy Triage has verified that this issue is ready for final review label Oct 3, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Reviewed and verified on a disposable Omarchy worker, with one fix pushed to the branch.

Reproduced. I used the white theme and registered a tray item that advertises zero-trust-connected with a solid-white SVG, alongside one advertising zero-trust-orange. On quattro the connected icon is invisible on the bar. On this branch it is tinted to the bar foreground, and the orange status icon keeps its colour. The probe imitates the icon name Cloudflare advertises rather than running the Cloudflare client itself.

Fixed: icons in the "Tray icons" popup. Switching the tint to bar.barForeground is right for the bar, because on a transparent bar that colour follows the wallpaper. The same TrayIcon is also drawn in the right-click "Tray icons" popup, which keeps the theme background. On a dark theme with a transparent bar over a light wallpaper, the tinted icons in that popup came out dark on dark and disappeared. That affects every -symbolic icon, not just Cloudflare's. d43b69b adds a tint property to TrayIcon that defaults to the bar's adaptive foreground, and sets it to the popup's text colour in the popup row. I checked on the worker that the popup icon is visible again and the bar icon is still tinted.

Tests, on the worker. test/shell.d/tray-test.sh passes 17 of 17. ./test/cli has one failure, vscode generated theme references current theme file, which fails identically on quattro. No CI has run on this pull request.

Second opinion. Codex Medium reviewed the head at d43b69b and found no defects. Its independence from this review is not guaranteed. It noted one limitation: an icon advertised as a full path ending in .svg would not match. The connected icon is advertised by name, and that is the case this fix handles.

This now waits on the maintainer.

@greptile-apps

greptile-apps Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issue was established.

Summary

The PR tints Cloudflare’s zero-trust-connected tray icon while leaving its other status icons in their original colors.

  • Uses the bar foreground for tray icons and the theme foreground for icons in the management popup.
  • Moves icon-tint selection into TrayModel.js and adds helper tests.

Reviews (3) · Last reviewed commit: "Merge quattro into fix-cloudflare-light-..." · Reviewed by Greptile

@omarchybot omarchybot removed the verified Omarchy Triage has verified that this issue is ready for final review label Oct 8, 2026
Resolve the conflict with omacom#14553 by keeping the new iconForeground property and qualifying its fallback as Commons.Color, as quattro now requires for Qt 6.12.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@omarchybot omarchybot added the verified Omarchy Triage has verified that this issue is ready for final review label Oct 8, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

This branch had started conflicting with quattro after #14553, which qualified palette references as Commons.Color for Qt 6.12. I merged quattro into it in 0833d6c. The only conflict was in Tray.qml: the new iconForeground property sat next to the line #14553 changed. The merge keeps iconForeground and qualifies its fallback as Commons.Color.foreground, as agents/skills/shell-dev.md now asks. Nothing else in the change needed to move.

Re-verified at 0833d6c on a disposable Omarchy worker. I used the white theme and pinned two tray items: one advertising zero-trust-connected with a solid-white SVG, and one advertising zero-trust-orange. On quattro the connected icon draws white on the white bar and is invisible. It is also invisible on this head with only the zero-trust-connected match removed from iconNeedsTint. On this head it is drawn in the bar foreground, and the orange icon keeps its colour in all three cases.

Tests, on the worker: tray-test.sh 17/17, color-reference-test.sh 24/24, bar-test.sh 90/90. ./test/cli passes.

Second opinion: Codex Medium reviewed the merged head and found no defects. It checked that the conflict resolution is complete and that no unqualified Color reference is left in Tray.qml. It agreed with this review, and its independence from it is not guaranteed.

No CI has run on this pull request, so it waits on that and then on the maintainer.

@omarchybot omarchybot removed the verified Omarchy Triage has verified that this issue is ready for final review label Oct 15, 2026
Resolve the conflict with omacom#15517 by exporting both iconNeedsTint and quattro's new shownSpan from TrayModel.js.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@omarchybot

Copy link
Copy Markdown
Collaborator

This branch was conflicting with quattro again after #15517 reworked the tray. I merged quattro into it in 74e8f7a. The only conflict was the module.exports list in TrayModel.js, which now exports both iconNeedsTint and quattro's new shownSpan. The rest of the change merged unchanged, and every place the tray draws an icon, drawer and pinned alike, still goes through TrayIcon.

The fix works for what it describes. On a disposable Omarchy worker with the white theme, I pinned a tray item that advertises zero-trust-connected with a solid-white SVG. On quattro it is invisible. On this head it is drawn in the bar foreground. With only the zero-trust-connected match removed from iconNeedsTint, it is invisible again. zero-trust-orange keeps its colour in every case.

It also adds a way for the Cloudflare icon to go blank. Before this change, Cloudflare's icons were never tinted. Now its icon switches between tinted and untinted every time it connects or disconnects. TrayIcon turns the image's layer on and off with tinted (Tray.qml:836), and the tray drops a recoloured icon once that layer has been turned off and on again. That is the bug in #9543 and #7288. On the worker, I started the item as zero-trust-connected, switched it to zero-trust-orange and then back, the way a disconnect and reconnect would. The connected icon then draws nothing, and its slot stays empty until the shell restarts. This happens on white and on tokyo-night. On tokyo-night, quattro shows the white connected icon throughout the same sequence, so for dark-theme users this is a regression. Setting layer.enabled: true, the one-line change in #15240, fixes it: the same cycle then draws every state correctly. #7290 fixes the same bug a different way.

Tests, on the worker, at 74e8f7a: tray-test.sh 30/30, tray-menu-test.sh, bar-test.sh 258/258, color-reference-test.sh 24/24, bar-widget-contract-test.sh, and ./test/cli all pass. tray-test.sh checks only which icon names get tinted, so it cannot catch the blank icon.

Second opinion: Codex Medium reviewed the merged head. It found the merge resolution complete and no tray rendering path the change misses. I asked it about the layer toggle directly, and it agreed this exposes Cloudflare to the blank-icon bug, including on dark themes. That is agreement with a question I put to it, and its independence from this review is not guaranteed.

I have not copied #15240's line into this branch, because choosing between #15240 and #7290 is the maintainer's call. This waits on the maintainer: once either of those lands, this change is clean.

@omarchybot

Copy link
Copy Markdown
Collaborator

Codex High investigated the failed Check translation structure run at 74e8f7a. GitHub records a failure but provides no jobs, check runs or retrievable log, so its cause remains undiagnosed.

On a disposable Omarchy worker, the structural test stopped at locale generation with the same permission error on this head and its merge base. The old test calls the worker's newer installed locale helper, whose command it does not stub. Current quattro passes on that worker, and this head's embedded-English scan passes. Those results do not establish what failed in GitHub CI. I did not repeat the visual checks or run the full suite.

Opus 5.5 High and muse-wonder via pi, thinking high reviewed the diff and available evidence and found no additional defect explaining an i18n failure. They agreed that the CI record does not justify a branch change; independence from this review is not guaranteed. Nothing was pushed or rerun in GitHub CI.

This still waits on the maintainer for the undiagnosed CI failure and the previously reported blank-icon regression. #15240 has closed without merging; #7290 remains open. Neither verified nor ready is set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants