Repository navigation
Fix keyboard label and Wi-Fi scrollbar alignment - #7219
WhiteHades wants to merge 11 commits into
Conversation
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>
|
Thanks @WhiteHades. I reviewed this and ran it on a VM built from the Omarchy ISO, with this branch merged into current Keyboard label. With two layouts configured I measured the ink of the "EN" label on the real bar. On Pushed:
The two source assertions you added are updated to match. Each fails with its fix reverted. Tests on the VM, at 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. |
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>
|
Thanks @WhiteHades. I reviewed this and ran it on a VM built from the Omarchy ISO, with this branch merged into current Keyboard label. With two layouts configured I measured the ink of the "EN" label on the real bar. On Pushed:
The two source assertions you added are updated to match. Each fails with its fix reverted. Tests on the VM, at 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. |
|
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 Both fixes are still needed on How the merge resolves it. Dropped: the ink-centre assertion in Tests on the VM, at Second opinion: Codex Medium reviewed the merge and the net change against This is waiting on the maintainer, and on a green suite run. |
[Low impact] The PR appears safe to merge; no actionable defects were found. SummaryAdjusts the keyboard label and Wi-Fi list without widening the panel.
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 |
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>
|
Thanks @WhiteHades. I checked Pushed: Re-measured at Tests: Second opinion: Codex Medium reviewed the new commits and the net change against This is waiting on the maintainer, and on the shell suite going green on |
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>
|
Thanks @WhiteHades. This had stopped merging cleanly into Pushed:
Measured on the VM:
Wi-Fi list on With this branch, English and Arabic: Tests: 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 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 |
|
No longer relevant as we moved the keyboard indicator. Closed by the maintainer. |




Align the keyboard layout label and place the existing Wi-Fi scrollbar beside the rows without changing the panel width.
Keyboard layout
Wi-Fi list
Tested with
./test/all(180 files).