Skip to content

Tint symbolic tray icons with the bar text color - #19257

Open
stevederico wants to merge 2 commits into
omacom:quattrofrom
stevederico:fix/19214-tray-symbolic-bar-text
Open

stevederico wants to merge 2 commits into
omacom:quattrofrom
stevederico:fix/19214-tray-symbolic-bar-text

Conversation

@stevederico

Copy link
Copy Markdown
Contributor

Fixes #19214

On a transparent bar, symbolic tray icons were painted with the theme text color (bar.foreground) while every other bar widget follows bar.barForeground, the contrast color omarchy-bar-text-color picks for the wallpaper. Over a light wallpaper the bar text turns dark but the tray icons stayed light and hard to see.

TrayIcon now tints with bar.barForeground. The tray menu keeps root.foreground, since it has its own opaque background. On an opaque bar the two colors are the same, so nothing changes there.

Tests: tray-test, tray-menu-test, bar-text-color-test and bar-widget-contract-test pass.

@greptile-apps

greptile-apps Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This PR appears safe to merge.

Summary

Symbolic tray icons follow the bar’s text color, while icons in the management popup keep the theme’s text color.

  • Tray icons match the text color of the surface they appear on.

Reviews (2) · Last reviewed commit: "Tint manage-popup tray icons with the po..." · Reviewed by Greptile

Comment thread shell/plugins/bar/widgets/Tray.qml Resolved
@omarchybot omarchybot added the bug Something isn't working label Nov 17, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Codex (GPT-6; reasoning effort not exposed) checked e294504 on an ISO worker. With a dark theme, light wallpaper and a synthetic StatusNotifier item using the stock audio-volume-high-symbolic icon, the base component kept the light theme tint; this head used the dark bar text color. Restoring the base component reproduced the mismatch. The management popup kept its light icon on its dark background, and the opaque bar retained the theme tint. No code defect found in this review.

The CLI suite passed all 136 checks. The tray model, tray menu, symbolic icon pixel, bar text color and widget contract tests passed after installing the worker's missing Node dependency. No commits were pushed.

The Opus 5.5 High review command was interrupted before recording a completed review; its draft is not counted as a completed second opinion. This remains with the maintainer for that review and the overlapping tint work in #13580.

Before: the symbolic speaker stays light against the light wallpaper while the chevron is dark; synthetic tray item on the worker

After: the same symbolic speaker follows the dark bar text color; synthetic tray item on the worker

Management popup at the PR head: its speaker and text retain the light theme color on the popup's dark background

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.

Tray: symbolic tray icons ignore the transparent bar's text color

2 participants