Skip to content

Improve settings translations, sidebar focus, and window sizing - #20

Merged
Abdullah-Masood-05 merged 2 commits into
Abdullah-Masood-05:prs/2.3.2from
zhonglixun:fix/settings-ui-polish
Nov 27, 2026
Merged

Abdullah-Masood-05 merged 2 commits into
Abdullah-Masood-05:prs/2.3.2from
zhonglixun:fix/settings-ui-polish

Conversation

@zhonglixun

@zhonglixun zhonglixun commented Nov 25, 2026 •

Copy link
Copy Markdown

Summary

This PR fixes the remaining presentation issues in the settings app:

  • completes the What's New page translations for Simplified Chinese, Traditional Chinese, Spanish, and Arabic;
  • removes the black focus rectangle that appeared after clicking a sidebar item, while keeping the keyboard focus indicator;
  • raises the fresh-install window size from 1120x760 to 1200x820 so the complete sidebar fits comfortably;
  • adds a Reset window size and position action in Preferences for users who want to opt into the new layout.

The new default is only used when the app has no saved placement. Existing window sizes and positions are left untouched, and no reset happens automatically after an update.

Screenshots

Sidebar pointer focus

Before: clicking a sidebar item drew an unnecessary black rectangle.

Sidebar focus before and after

Window size

Before: the sidebar was clipped at the previous default size. After: the additional height/width leaves the full navigation visible at 1200x820.

Window size before and after

What's New translations

The four translated versions were checked separately, including their longer labels and wrapping:

What's New in four languages

Verification

  • Built the settings app with the repository's x64-release-prebuilt CMake preset during verification.
  • Ran settings_tests.exe: 264 test cases passed, 0 failed, 14,667 assertions passed (one optional suite skipped).
  • Checked the What's New and Preferences pages in English, Simplified Chinese, Traditional Chinese, Spanish, and Arabic.
  • Checked that the sidebar is fully visible at 1200x820 without horizontal clipping.
  • Checked pointer selection and keyboard focus separately.
  • Checked that the reset action applies a centered 1200x820 client area on the current monitor.
  • After the final translation wording and default-size adjustments, I verified them in the running UI using the runtime .po preview and a live resize; I did not repeat the full C++ rebuild for those final text/constant changes.

Note

I noticed these were UI presentation issues rather than problems with Shell's underlying functionality, so I used AI assistance for the implementation. I verified the visible behavior and the test suite, but I did not perform a detailed line-by-line code review.

Complete the What's New translations, suppress the pointer-only sidebar focus ring, use a roomier default window size, and add an opt-in reset action in Preferences. Existing saved window placement is left untouched.
@zhonglixun zhonglixun changed the title Polish settings UI translations and window defaults Improve settings translations, sidebar focus, and window sizing Nov 25, 2026
@Abdullah-Masood-05

Copy link
Copy Markdown
Owner

Thanks for this, @zhonglixun, and for the screenshots and the note about how it was made. I went through it, and the translations, the new default size and the Reset action all look right. Existing users keep their saved size, and Reset uses the monitor the window is on and its DPI.

One thing to fix before merging:

  • Tab no longer shows the focus ring in the sidebar. keyboard-focus in sidebar.slint starts as false, and only the arrow, Home and End keys set it to true. If you Tab into the sidebar, the scope gets focus, but no ring shows until you press an arrow key. Before this PR, Tab showed it. Could you set it on focus from the keyboard as well? For example, start it as true, set it to false only on click, and set it back to true on any key press in the scope. If the Slint version here reports the focus reason, that's even cleaner.

A smaller one, optional: on a 1366x768 screen, 820 px is taller than the work area on first launch. Reset already clamps to the monitor, so the same clamp on first launch would cover it.

The plan: I'll do my best to release a beta with this PR and #19 merged on Friday night. If nobody reports bugs by Sunday, the new stable goes out Sunday night. So please push the focus fix before Friday night if you can.

@Abdullah-Masood-05 Abdullah-Masood-05 self-assigned this Nov 26, 2026
@zhonglixun

Copy link
Copy Markdown
Author

Both are in, thanks — pushed as 9fcdfda.

keyboard-focus now starts as true, so Tab into the sidebar shows the ring again. A click clears it while still focusing the scope (the arrow keys keep working), any key press in the scope sets it back, and it resets when focus leaves, so Tab in after a click still shows the ring.

First launch with no saved placement now goes through the same work-area clamp Reset uses, so 820 px shrinks on a 1366x768 screen. It only moves the window when the default doesn't fit, and it still writes nothing to the registry.

I didn't do a full rebuild for this push (I compiled the Slint file and the two C++ files, that's all), so CI is the real check.

@Abdullah-Masood-05
Abdullah-Masood-05 changed the base branch from main to prs/2.3.2 November 27, 2026 13:52
@Abdullah-Masood-05
Abdullah-Masood-05 merged commit 1ea523b into Abdullah-Masood-05:prs/2.3.2 Nov 27, 2026
6 checks passed
@Abdullah-Masood-05

Copy link
Copy Markdown
Owner

Merged, thank you @zhonglixun! The translations, the focus fix and the Reset button are all nice improvements, and thanks for fixing the Tab focus ring so quickly.

It's in the 2.3.2 beta (v2.3.2-beta.1), which is building now and should be out in about 20 minutes. If nothing turns up during the beta, it goes into the stable release on Sunday night.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants