Skip to content

Use popup text color for network panel popup content - #12809

Open
sanjyay wants to merge 6 commits into
omacom:quattrofrom
sanjyay:fix/issue-12732-network-popup-colors
Open

sanjyay wants to merge 6 commits into
omacom:quattrofrom
sanjyay:fix/issue-12732-network-popup-colors

Conversation

@sanjyay

@sanjyay sanjyay commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Fixes #12732

Problem

In shell/plugins/panels/network/Panel.qml, elements rendered inside the popup card (hero labels, header buttons, band selection, DNS pills, network rows, passphrase prompt, and info labels) used root.bar.foreground instead of Color.popups.text. On themes where the bar and popup backgrounds contrast (e.g., Familiar theme with a dark bar / light popup), this caused low contrast or white-on-white text inside the popup. Furthermore, hoverFill and selectedFill derived from bar.foreground.

Solution

  • Added readonly property color popupForeground: Color.popups.text and readonly property color urgent: bar ? bar.urgent : Color.urgent.
  • Derived hoverFill and selectedFill from popupForeground and Color.accent.
  • Replaced references to root.bar.foreground with root.popupForeground across the popup card elements, keeping bar widget components intact.
  • Verified in isolated OMAVM: ./test/shell.d/network-test.sh passed 102/102, ./test/cli passed 100%, and visually confirmed live network panel rendering via screenshot.

@llstrk

llstrk commented Sep 23, 2026

Copy link
Copy Markdown

Verified (source review): No actionable defect found in the scoped review of d19530e0. Network popup labels, controls and credential fields now use Color.popups.text, matching the popup card's Color.popups.background; the bar icon keeps its bar palette.

Color input Baseline This PR
Ordinary popup content bar.foreground popupForeground = Color.popups.text
Row hover/selection helpers Bar foreground argument Popup foreground argument
Bar icon Bar palette Unchanged

The fill helpers still honor explicit theme state-color overrides, so the changed argument does not guarantee different hover/selection colors for every theme. Urgent indicators remain unchanged.


Review information

Test scope: Source inspection of the diff, popup surface, palette and affected shared controls. No runtime tests or visual rendering were performed; Familiar's rendered contrast and live networking were not verified.

Community review: Independent automated community review, unaffiliated with the Omarchy team, intended to help prepare PRs for their review.

Automated AI review: Astra Medium initial inspection, independent Opus 5.5 High and GPT 6 Sol Xhigh technical reviews, followed by Astra synthesis and verification of claims against the inspected source.

@omarchybot omarchybot added bug Something isn't working verified Omarchy Triage has verified that this issue is ready for final review labels Sep 27, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Reviewed at d19530e0 and verified on a worker built from the Omarchy ISO. The fix works and I found nothing to change.

Reproduction. I set a user shell.toml with bar text #ff00ff and popup text #00b000 on a #f5f5f5 popup background, then opened the network panel over IPC. On quattro (8f324c90), the popup's labels, header, DNS pills and speed-test button are drawn in the bar's magenta (1232 pixels inside the card, none in the popup colour). That is the white-on-white from #12732. On this head they are drawn in the popup's green (697 pixels, no magenta), and the bar's own icons keep the bar colour. The worker had wired Ethernet only, so the Wi-Fi rows, band pills and passphrase prompt were checked by reading the code rather than by seeing them. They take the same one-for-one substitution.

Tests on the worker. ./test/cli passed. network-test.sh (104), network-captive-portal-test.sh (69), network-password-test.sh, network-qr-test.sh and network-manager-transition-test.sh all passed.

Review. The diff is proportionate: one file, and every remaining bar.* reference inside the popup is bar.urgent (failure, captive portal and packet-loss states), which leaving alone is a reasonable scope line. The shared controls it passes the colour to (Button, ToggleSwitch, TextField, PanelSectionHeader, PanelSeparator, CursorSurface) take foreground as a plain property and derive nothing from the bar. One small note: the description says it adds an urgent property, but the final diff doesn't, which looks right. Only the description is out of date.

Second opinion. None. The configured reviewer (Codex Medium) answered a ping but refused this review because its daily budget was spent, so this is one model's review (Claude Opus 5.5). It will be reviewed again before it is marked ready.

Waiting on the maintainer, and on that second review. Nothing is needed from you. The same bar.foreground-inside-a-popup pattern is in the bluetooth, audio, monitor, weather and power panels, which is worth a follow-up but is outside this pull request's scope.

@omarchybot omarchybot removed the verified Omarchy Triage has verified that this issue is ready for final review label Oct 8, 2026
Resolves the conflict with omacom#14553, which qualified palette references as Commons.Color for Qt 6.12: the popup foreground, hover and selected fills and the band pill border now read Commons.Color like the rest of the file.

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
@greptile-apps

greptile-apps Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge; no actionable issues were found.RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no actionable issues were found.

Summary

The network popup now uses Commons.Color.popups.text instead of the bar’s text color.

  • Network popup content now follows the popup’s own color palette.

No actionable issues were found. Runtime tests and visual capture were not performed during this review.

Reviews (3) · Last reviewed commit: "Merge branch 'quattro' of https://github..." · Reviewed by Greptile

@omarchybot omarchybot added the ready Good to merge label Oct 8, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

This branch had stopped merging cleanly after #14553 changed quattro to write palette references as Commons.Color for Qt 6.12, so I merged quattro into it (d65f246). The conflict was the three lines declaring popupForeground, hoverFill and selectedFill, plus the band pill's border. The resolution keeps your version and writes Color. as Commons.Color., as agents/skills/shell-dev.md now asks. Nothing from either side was dropped, and nothing quattro added to this file since your branch (the OWE transition handling, the no-animations mode, the shell socket) draws popup content in a bar colour.

Verified again on a worker built from the Omarchy ISO, with bar text #ff00ff and popup text #00b000 on a #f5f5f5 popup. On quattro (b83d3df0) the network popup draws 1623 pixels in the bar's magenta and none in the popup green. That is the bug from #12732. On the merged head it draws no magenta in the card, the text is popup green, and the bar icons keep the bar colour. quattro's file is the merged head with your change reverted, so that run is also the revert check. ./test/cli passed, and so did all six network shell tests: network-test.sh (115), network-captive-portal-test.sh (69), network-manager-transition-test.sh, network-owe-transition-test.sh, network-password-test.sh and network-qr-test.sh.

Second opinion. Codex Medium reviewed the merged result. It looked at the conflict resolution, whether quattro's newer code was covered, whether anything on the bar itself picked up the popup colour, and the dropped bar ? guard, and found nothing. It ran after my own review and agreed with it, so its independence isn't guaranteed. This is the second review my last comment said was still owed.

Nothing is needed from you. This now waits on the maintainer.

@omarchybot omarchybot removed ready Good to merge verified Omarchy Triage has verified that this issue is ready for final review labels Oct 14, 2026
Resolves the conflict with omacom#15326, which moved the network panel's strings to Commons.I18n: each conflicting line keeps quattro's translated text and this branch's popup foreground.

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

Copy link
Copy Markdown
Collaborator

This branch had stopped merging cleanly again, this time after #15326 moved the network panel's strings to Commons.I18n, so I merged quattro into it (7b17c42). All eight conflicts were lines where quattro translated the text and this branch changed the colour on the line beside it. Each one keeps quattro's translated string and your root.popupForeground. Against quattro, the file now differs only by your change: the popupForeground declaration and every bar.foreground in the popup replaced, nothing else. The header-action changes from #8787 and the lazy panel content from #15044 came through untouched.

Verified again on a worker built from the Omarchy ISO, with bar text #ff00ff and popup text #00b000 on a #f5f5f5 popup. On quattro (84cfb939) the network popup draws 194 pixels in the bar's magenta and none in the popup green, which is the bug from #12732. On the merged head it draws no magenta in the card and 170 pixels of popup green, and the bar icons keep the bar colour. quattro's file is the merged head with your change reverted, so that run is also the revert check. ./test/cli passed, and so did all seven network shell tests: network-test.sh (115), network-captive-portal-test.sh (69), network-qr-test.sh, network-password-test.sh, network-wifi-connected-test.sh, network-manager-transition-test.sh and network-owe-transition-test.sh. CI (i18n-check) is green.

Second opinion. Codex Medium reviewed the merged result. It checked that the resolution is exactly your change on top of current quattro, that nothing new in the file draws popup content in a bar colour, and that dropping the bar ? guard on the hover and selected fills is safe now that the panel builds its content lazily. It found nothing. It ran after my own review and agreed with it, so its independence isn't guaranteed.

Nothing is needed from you. This waits on the maintainer.

@omarchybot omarchybot removed ready Good to merge verified Omarchy Triage has verified that this issue is ready for final review labels Oct 22, 2026
@omarchybot omarchybot added verified Omarchy Triage has verified that this issue is ready for final review ready Good to merge labels Oct 22, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

This branch had stopped merging cleanly again, after #16186 reworked the captive-portal sign-in and the ping readout in the network panel, so I merged quattro into it (51c2bb7). There were three conflicts. quattro removed the captive-portal help text that this branch had recoloured, so it stays removed. quattro also added a root.hasInternetPing guard to the Ping and Packet Loss colours, and those now keep that guard with your root.popupForeground in place of root.bar.foreground. Against quattro, the file now differs only by your change: the popupForeground declaration, the hover and selected fills derived from it, and every bar.foreground in the popup replaced. Nothing quattro added draws popup content in a bar colour.

Verified again on a worker built from the Omarchy ISO, with bar text #ff00ff and popup text #00b000 on a #f5f5f5 popup. On quattro (c872d57c), the network popup card draws 1101 pixels in the bar's magenta and none in the popup green. That is the bug from #12732. On the merged head it draws no magenta and 599 pixels of popup green, and the bar keeps its magenta icons in both. quattro's file is the merged head with your change reverted, so that run is also the revert check. ./test/cli passed, and so did all eight network shell tests, including network-test.sh (122) and network-captive-portal-test.sh (71). CI is green.

Second opinion. Codex Medium and muse-spark-1.3-contributor (via pi, thinking high) reviewed the merged result. They checked that it is exactly your change on top of current quattro, that #16186's code came through intact, and that nothing on the bar picks up the popup colour. Neither found anything. Both ran after my own review and agreed with it, so their independence isn't guaranteed.

Nothing is needed from you. This waits on the maintainer.

@omarchybot omarchybot removed verified Omarchy Triage has verified that this issue is ready for final review ready Good to merge labels Oct 22, 2026
@omarchybot omarchybot added verified Omarchy Triage has verified that this issue is ready for final review ready Good to merge labels Dec 2, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

On an Omarchy ISO worker, I reproduced #12732 on quattro and again with the network panel change reverted. At 5506f578, the Ethernet popup header drew in the configured dark green against the light card. The network bar icon used the near-white bar color in all three runs. ./test/cli and all eight network shell test files passed.

Before on quattro, near-white network header on a light popup
After at 5506f578, dark green network header on the same popup background

GPT-6 High in Codex reviewed the diff. Opus 5.5 High and muse-wonder via pi, thinking high, agreed and found no actionable defects. Their agreement has limited assurance of independence.

This is with the maintainer.

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

Labels

bug Something isn't working ready Good to merge verified Omarchy Triage has verified that this issue is ready for final review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Quattro: Network popup uses bar text colours, causing white-on-white content

3 participants