Repository navigation
Improve settings translations, sidebar focus, and window sizing - #20
Abdullah-Masood-05 merged 2 commits into
Conversation
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.
|
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:
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. |
…w on small screens
|
Both are in, thanks — pushed as 9fcdfda.
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. |
1ea523b
into
Abdullah-Masood-05:prs/2.3.2
|
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. |
Summary
This PR fixes the remaining presentation issues in the settings app:
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.
Window size
Before: the sidebar was clipped at the previous default size. After: the additional height/width leaves the full navigation visible at 1200x820.
What's New translations
The four translated versions were checked separately, including their longer labels and wrapping:
Verification
x64-release-prebuiltCMake preset during verification.settings_tests.exe: 264 test cases passed, 0 failed, 14,667 assertions passed (one optional suite skipped)..popreview 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.