Commit Graph
14 Commits
Author SHA1 Message Date
Henrik RydgårdandClaude Opus 5.5 58fa522d48 UI: Limit the width of dialog screens, and keep content off the edges of large screens
Dialog screens (tabbed, two-pane, simple and the others built on
UIBaseDialogScreen) center their content at up to 1400 wide, instead of
stretching settings rows and buttons across very wide windows.

On large screens, those screens and the main screen also get an inset on all
sides, since controls right at the edge are hard to see there. It grows with
the screen's smaller dimension, from nothing at 600 to the full inset at
1000, and is always full on TVs. The game, popups, and the screens that
position things to match the game's screen (display layout, touch control
layout and tests, custom button and visual mapping) are left as they were.

The root's bounds are computed by UIScreen::GetContentBounds, since
UI::Margins can't hold widths this large.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-24 16:12:01 +02:00
Henrik RydgårdandClaude Opus 5.5 75b0fbe30c CustomButtonMapping: Keep unsaved button choices when the views are recreated
The checkbox array was reloaded from the config on every view creation,
but only saved when a popup closed or the screen finished. Rotating the
device reverted the choices. Also stop leaking a handler per button on
each rebuild.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-22 10:55:31 +02:00
Henrik Rydgård e1ee966767 Fix some more minor inset-related layout issues 2026-03-15 15:21:28 +01:00
Henrik Rydgård 59ad5b4be4 More UI refactor, fixes to control customization screens 2025-11-25 19:27:57 +01:00
Henrik Rydgård 063c7d4f7e Get separate touch screen config for portrait working 2025-11-05 21:01:37 +01:00
Henrik Rydgård 7896845e0c Rename "Custom key setting" to "Custom touch button setup" 2025-10-29 09:25:28 +01:00
Henrik Rydgård a4f588adfb Minor cleanup 2025-10-29 08:39:59 +01:00
Henrik Rydgård 2b9f2672bb UI screens header cleanup 2025-10-29 00:15:41 +01:00
Henrik Rydgård 7ffd72b32e Rename some screen classes 2025-10-29 00:02:43 +01:00
Henrik Rydgård 58456ae950 Remove the UI::EventReturn return values. Makes editing the UI nicer. 2025-09-15 11:09:00 -06:00
Henrik Rydgård e4a14330e0 Correct comment, rename array 2025-08-28 10:24:30 +02:00
Henrik Rydgård e078f61bad Rename class CustomKey to CustomButton 2023-05-08 10:13:52 +02:00
Henrik Rydgård dcab34670f Finish renaming the screen. 2023-03-26 11:22:54 +02:00
Henrik Rydgård 5c36aec484 More renaming 2023-03-26 11:21:34 +02:00