Skip to content

Fix keyboard label and Wi-Fi scrollbar alignment - #7219

Closed
WhiteHades wants to merge 11 commits into
omacom:quattrofrom
WhiteHades:fix/bar-language-network-layout
Closed

WhiteHades wants to merge 11 commits into
omacom:quattrofrom
WhiteHades:fix/bar-language-network-layout

Conversation

@WhiteHades

@WhiteHades WhiteHades commented Aug 17, 2026 •

Copy link
Copy Markdown

Align the keyboard layout label and place the existing Wi-Fi scrollbar beside the rows without changing the panel width.

Keyboard layout

Before After
Keyboard layout before Keyboard layout after

Wi-Fi list

Before After
Wi-Fi scrollbar before Wi-Fi scrollbar after

Tested with ./test/all (180 files).

Copilot AI balanced review requested due to automatic review settings August 17, 2026 04:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI review requested due to automatic review settings August 17, 2026 05:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@omarchybot omarchybot added the bug Something isn't working label Sep 27, 2026
omarchybot and others added 3 commits September 28, 2026 06:12
An as-needed ScrollBar stays visible, with a transparent thumb, when the list fits, so gating the gutter on its visibility narrowed every row by the bar's width even with nothing to scroll, leaving the rows 10px short of the separator and DNS row above them. Gate it on the list being interactive, which the ListView already sets exactly when its content overflows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Style.space(1) also carries the independent [spacing] scale, so a theme that doubles spacing while keeping the font doubled the correction too and pushed the label a pixel below centre. Scale it by the font alone, which is what the one-pixel glyph offset follows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Codex Medium <noreply@openai.com>
Style.fontScale follows the base font size, but a theme can pin the caption token while raising the base size, which doubled the correction for glyphs that had not changed and put the label a pixel below centre. The one-pixel offset was measured on the stock 10px caption, so scale it from the caption size itself.

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

Copy link
Copy Markdown
Collaborator

Thanks @WhiteHades. I reviewed this and ran it on a VM built from the Omarchy ISO, with this branch merged into current quattro. The keyboard fix is real and does what it says. I pushed three small commits on top, and it is now waiting on the maintainer.

Keyboard label. With two layouts configured I measured the ink of the "EN" label on the real bar. On quattro it has 8px of clearance above and 10px below, so it sits a pixel high. With this branch it is 9/9, and with the offset line removed it goes back to 8/10.

Pushed:

  • d730a173: in Qt 6.11 an AsNeeded scrollbar stays visible when the list fits; only its thumb is transparent. So networkScrollBar.visible narrowed every Wi-Fi row by 10px even with nothing to scroll, leaving the rows short of the separator and DNS row above them. On the VM a fixture list reported visible: true at size: 1.00 with three rows. The gutter is now gated on ListView.view.interactive, which the list already sets exactly when its content overflows. Rows are full width when they fit and leave room for the bar when they scroll.
  • 5f5434cc and a5c73a59: Style.space(1) also carries the theme's independent [spacing] scale, so doubling spacing doubled the correction and put the label a pixel below centre. The offset is now Math.max(1, Math.round(Style.font.caption / 10)), keyed to the caption it corrects. That is 1px on the stock 10px caption, the same as before, and it also holds when a theme pins the caption while raising the base font size.

The two source assertions you added are updated to match. Each fails with its fix reverted.

Tests on the VM, at a5c73a59: ./test/cli and the full shell suite (2229 passed, 0 failed). The Wi-Fi panel itself was not drawn, because the VM has no Wi-Fi radio; that change was checked with the fixture above.

Second opinion: Codex Medium reviewed it three times. It also reported the scrollbar gutter. I had already measured that, and its independence from this review is not guaranteed, so treat that as agreement rather than a separate confirmation. It also raised the spacing-scale and pinned-caption cases, which the last two commits fix. Its final round on this head found nothing to act on.

@omarchybot omarchybot added ready Good to merge and removed ready Good to merge labels Sep 28, 2026
@omarchybot omarchybot removed ready Good to merge verified Omarchy Triage has verified that this issue is ready for final review labels Oct 4, 2026
quattro now centres every bar label on its figure height (27a3fef), on the same anchor this branch offsets. On the real bar that leaves the clock and workspace digits centred (8px above, 9 below) but the two-letter caption still one pixel high (8 above, 10 below); the keyboard label's own pixel, added to the centring offset, brings it to 9/9 and moves no other label. So both stay: centring for every label, the keyboard's correction on top.

The ink-centre assertion this branch added to bar-icon-geometry-test.sh is dropped. Its TextMetrics model calls quattro's one-pixel-high label centred (-0.41) and the visually centred result off (+0.59), so it would pass on the bug and fail on the fix. The source assertions in keyboard-layout-test.sh still pin the correction.

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 7, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Thanks @WhiteHades. I reviewed this and ran it on a VM built from the Omarchy ISO, with this branch merged into current quattro. The keyboard fix is real and does what it says. I pushed three small commits on top, and it is now waiting on the maintainer.

Keyboard label. With two layouts configured I measured the ink of the "EN" label on the real bar. On quattro it has 8px of clearance above and 10px below, so it sits a pixel high. With this branch it is 9/9, and with the offset line removed it goes back to 8/10.

Pushed:

  • d730a173: in Qt 6.11 an AsNeeded scrollbar stays visible when the list fits; only its thumb is transparent. So networkScrollBar.visible narrowed every Wi-Fi row by 10px even with nothing to scroll, leaving the rows short of the separator and DNS row above them. On the VM a fixture list reported visible: true at size: 1.00 with three rows. The gutter is now gated on ListView.view.interactive, which the list already sets exactly when its content overflows. Rows are full width when they fit and leave room for the bar when they scroll.
  • 5f5434cc and a5c73a59: Style.space(1) also carries the theme's independent [spacing] scale, so doubling spacing doubled the correction and put the label a pixel below centre. The offset is now Math.max(1, Math.round(Style.font.caption / 10)), keyed to the caption it corrects. That is 1px on the stock 10px caption, the same as before, and it also holds when a theme pins the caption while raising the base font size.

The two source assertions you added are updated to match. Each fails with its fix reverted.

Tests on the VM, at a5c73a59: ./test/cli and the full shell suite (2229 passed, 0 failed). The Wi-Fi panel itself was not drawn, because the VM has no Wi-Fi radio; that change was checked with the fixture above.

Second opinion: Codex Medium reviewed it three times. It also reported the scrollbar gutter. I had already measured that, and its independence from this review is not guaranteed, so treat that as agreement rather than a separate confirmation. It also raised the spacing-scale and pinned-caption cases, which the last two commits fix. Its final round on this head found nothing to act on.

@omarchybot

Copy link
Copy Markdown
Collaborator

The comment just above this one repeats my review from 28 September by mistake. This one describes what happened today.

This stopped merging cleanly after quattro gained figure-height centring for every bar label in 27a3fef, on the same anchors.verticalCenterOffset line this branch changes. I merged quattro into the branch (09b706b2) and it merges cleanly again.

Both fixes are still needed on quattro. I measured the "EN" label on the real bar of a VM built from the Omarchy ISO, with two layouts configured. On quattro as it is now, the clock and workspace digits sit centred (8px of clearance above, 9 below), but EN is still a pixel high at 8/10. With this branch it is 9/9, and every other label stays where it was. With the keyboard offset removed it goes back to 8/10. Adding the pixel to every label instead would push the clock a pixel low, so the correction stays on the keyboard label alone.

How the merge resolves it. WidgetButton keeps quattro's centring and adds labelVerticalOffset on top: root.labelVerticalOffset + (<quattro's expression>). The offset defaults to 0, so only the keyboard label moves. The Wi-Fi change merged without conflict. It narrows the rows only while the list overflows, so the scrollbar no longer draws over them, and they stay full width when everything fits.

Dropped: the ink-centre assertion in test/shell.d/bar-icon-geometry-test.sh. With quattro's centring in place, its font-metrics model calls the one-pixel-high label centred (−0.41px) and the visually centred one off (+0.59px). It would pass on the bug and fail on the fix. The source assertions in keyboard-layout-test.sh still pin the correction, and they fail with it reverted.

Tests on the VM, at 09b706b2: ./test/cli passed. The full shell suite had 4513 passing and 4 failing: ascii-test, branding-about-animation-test, default-agent-test and passwordless-grant-lifecycle-test. Those four fail the same way on plain quattro on the same VM, so they are not from this branch, but the suite was not green. As before, the Wi-Fi panel was not drawn because the VM has no Wi-Fi radio.

Second opinion: Codex Medium reviewed the merge and the net change against quattro and found no defects. It agreed that combining the two offsets loses nothing from quattro, and that dropping the assertion is justified. Its independence from this review is not guaranteed, so treat that as agreement rather than separate confirmation. It also corrected how I first framed the Wi-Fi change, and the description above reflects that.

This is waiting on the maintainer, and on a green suite run.

@omarchybot omarchybot added verified Omarchy Triage has verified that this issue is ready for final review and removed verified Omarchy Triage has verified that this issue is ready for final review labels Oct 7, 2026
@greptile-apps

greptile-apps Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

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

Summary

Adjusts the keyboard label and Wi-Fi list without widening the panel.

  • The keyboard layout label lines up with the middle of horizontal bars.
  • Wi-Fi rows leave room for the scrollbar only when the list scrolls.

The earlier unnumbered test comment was resolved without an explanatory reply. That test is not part of the current PR.

Reviews (4) · Last reviewed commit: "Keep the Wi-Fi scrollbar gutter on the s..." · Reviewed by Greptile

Comment thread test/shell.d/network-test.sh Resolved
@omarchybot omarchybot removed the verified Omarchy Triage has verified that this issue is ready for final review label Oct 7, 2026
The quattro merge dropped it, leaving it the one file this branch changes for no reason.

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 7, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Thanks @WhiteHades. I checked f183d91b. The tightened assertion matches the list's own width: parent.width and stops at the scrollbar's brace, so a row's width can no longer satisfy it. On a VM, with networkList narrowed to parent.width - 10, network-test.sh now fails on that assertion. The earlier pattern let that change pass.

Pushed: 1f7b6683 restores the executable bit on test/shell.d/keyboard-layout-test.sh. My quattro merge had dropped it, and it was the only change to that file's mode on the branch.

Re-measured at 1f7b6683, on a VM built from the Omarchy ISO, with two layouts configured. The "EN" label's ink sits 8px above and 10px below on quattro, 9/9 with this branch, and 8/10 again with the keyboard offset removed. The clock and workspace digits are identical in all three.

Tests: ./test/cli passed. In the shell suite, 303 of 307 files passed. ascii-test, branding-about-animation-test, default-agent-test and passwordless-grant-lifecycle-test failed, and each fails with the same assertion on plain quattro on the same VM. They are not from this branch, but the suite is not green.

Second opinion: Codex Medium reviewed the new commits and the net change against quattro and found no defects. It noted that the width assertion still depends on property order and would miss a subtraction moved to the next line. Neither is a realistic way for this to regress, so the assertion stays as you wrote it.

This is waiting on the maintainer, and on the shell suite going green on quattro.

@omarchybot omarchybot removed the verified Omarchy Triage has verified that this issue is ready for final review label Oct 31, 2026
omarchybot and others added 2 commits October 31, 2026 20:43
quattro removed tests that only read QML source (omacom#16334) and its AGENTS.md now rules them out, so the network and keyboard layout test files take quattro's side; the alignment changes themselves merge cleanly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Right-to-left languages mirror the panel, which moves the attached scrollbar to the list's left edge, but a vertical ListView places every row at x=0. Narrowing the row itself left the gap on the right and the rows still under the scrollbar. The row now stays full width and its contents are anchored left and narrowed, so mirroring moves the gap with the scrollbar.

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

Copy link
Copy Markdown
Collaborator

Thanks @WhiteHades. This had stopped merging cleanly into quattro, so I brought it up to date and checked it again on a VM built from the Omarchy ISO.

Pushed:

  • e8a7be5e merges quattro. The shell changes merged without conflict. The regex assertions this branch added to network-test.sh and keyboard-layout-test.sh are gone: quattro removed tests that only read QML source in Remove tests that only read source text #16334, and its AGENTS.md now rules them out. Both files now match quattro.
  • 84051541 puts the Wi-Fi gutter on the scrollbar's side in right-to-left languages. Arabic, Hebrew, Persian and Urdu mirror the panel, which moves the scrollbar to the left edge. A vertical list still places each row at x=0, though, so a narrowed row left the gap on the right and the scrollbar over the rows. Now the row stays full width and its contents are anchored left and narrowed, so mirroring moves the gap with the scrollbar.

Measured on the VM:

  • Keyboard label, with two layouts so "EN" shows. Its ink sits 8px above and 10px below on quattro, and 9/9 with this branch. Removing the offset puts it back to 8/10. The clock and workspace digits are identical in all three.
  • Wi-Fi list, with 16 simulated networks and the list scrolled by wheel so the scrollbar is drawn. On quattro the scrollbar covers the rows in both English and Arabic. With this branch it sits in its own gap in both. With 3 networks the list doesn't scroll and the rows keep their full width.

Wi-Fi list on quattro, English and Arabic:

Before, English: the scrollbar overlaps the right edge of the Wi-Fi rows
Before, Arabic: the scrollbar overlaps the left edge of the Wi-Fi rows

With this branch, English and Arabic:

After, English: the rows stop short of the scrollbar on the right
After, Arabic: the rows stop short of the scrollbar on the left

Tests: ./test/cli passed. In the shell suite, 403 of 408 files passed. agent-account-exec, ascii, branding-about-animation, first-run and runtime-smoke failed, and each fails the same way on plain quattro on the same VM. They are not from this branch, but the suite is not green. After the RTL commit, network-test and i18n-test passed.

Second opinion: Codex Medium and muse-wonder (via pi, thinking high) reviewed the merge and the net change. Codex found the right-to-left gutter problem, which the VM confirmed and 84051541 fixes. Both then reviewed that commit and found nothing further. muse-wonder found no defects in the rest. Both noted that the keyboard offset is calibrated to the stock 10px caption and has only been measured there.

This is waiting on the maintainer. One open question is whether to keep a per-widget offset on the keyboard label or correct the figure centring in WidgetButton itself. The other is the shell suite going green on quattro.

@omarchybot omarchybot removed the verified Omarchy Triage has verified that this issue is ready for final review label Oct 31, 2026
@omarchybot omarchybot closed this Oct 31, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

No longer relevant as we moved the keyboard indicator.

Closed by the maintainer.

@WhiteHades
WhiteHades deleted the fix/bar-language-network-layout branch November 3, 2026 18:34
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.

3 participants