42 Commits

Author SHA1 Message Date
Henrik Rydgård
ee6234ecb6 I18N: Switch to getting categories by index instead of by string lookup
Also gets rid of the shared_ptr usage, and generally makes things nicer.

Needed for later config refactorings, good to get in early.
2023-04-07 10:35:01 +02:00
Henrik Rydgård
c27689910e Break out ScrollView from ViewGroup.h, and PopupScreens from UIScreen.h 2023-01-11 10:56:31 +01:00
Henrik Rydgård
30c591e813 Fix smooth touchpad scrolling on Windows
Forgot that I had half-implemented it but not finished it up..
2023-01-01 22:23:14 +01:00
Henrik Rydgård
630b7830fa Improve background drag behavior on display layout screen
If you moved into and mouse-up-ed over one of the menus while dragging
the background, it stopped registering movement and "up events" which
felt really awkward.

This is not super pretty, better would be a win32-SetCapture-like
mechanism but works okay.
2022-12-13 00:27:22 +01:00
Unknown W. Brackets
9cfcbc46e6 Global: Cleanup initialization/pointer checks.
Cleaning up a lot of cases of uninitialized data, unchecked return values
for failures, and similar.
2022-12-10 21:13:36 -08:00
Unknown W. Brackets
a7b7bf7826 Global: Set many read-only params as const.
This makes what they do and which args to use clearer, if nothing else.
2022-12-10 21:13:36 -08:00
Henrik Rydgård
3e7f7ad8d7 Add CSS-style padding support to LinearLayout. Use to improve the look 2022-12-08 00:01:46 +01:00
Henrik Rydgård
42b74c6a9a Add background to the scroll views. Not really pretty but more readable 2022-12-07 23:12:09 +01:00
Henrik Rydgård
39b627c0c1 Fix layout issues, misc cleanup and comments 2022-12-07 10:27:02 +01:00
Henrik Rydgård
aed5d76fbc Make the post shader list more editable 2022-12-07 10:27:02 +01:00
Henrik Rydgård
82680633e7 More usability tweaks 2022-12-07 10:27:02 +01:00
Henrik Rydgård
b938992da4 Add a new centering capability to AnchorLayout 2022-12-03 19:13:21 +01:00
Henrik Rydgård
25e8f8385e Redo the control UI screen layout, slightly update the look 2022-11-30 10:56:29 +01:00
Henrik Rydgård
20a337f25b Initialization cleanup (no effect) 2022-11-30 10:15:36 +01:00
Henrik Rydgård
0ff5e0a955 Add checks preventing a number of "possible" divisions by 0 in layout 2022-11-30 10:15:30 +01:00
Henrik Rydgård
0a3d78221e Fix drag-background-through-buttons problem by adding "touch exclusive" mode to viewgroups.
Not using universally because I don't want to debug all the issues...
2022-11-27 16:16:18 +01:00
Lubos
011592754f OpenXR - Use mouse control only 2022-11-17 12:19:17 +01:00
Unknown W. Brackets
c20bcc1f08 UI: Avoid enum/float comparisons. 2022-11-12 12:30:04 -08:00
iota97
561870dc25 Merge item and button style, remove hightlighed and few other fixes 2022-02-14 13:57:22 +01:00
Unknown W. Brackets
49c64e12d1 UI: Add a way to disable tabs in tab strips. 2021-10-19 10:01:52 -07:00
Unknown W. Brackets
931ba43216 UI: Remove scroll to top on size change.
It wasn't actually used anywhere, and I don't see a reason for it now.
2021-09-27 23:39:33 -07:00
Unknown W. Brackets
374569ce7e UI: Keep scroll position on async load.
For the saved scroll position in the game list.
2021-09-27 23:37:31 -07:00
Unknown W. Brackets
fc78b408b2 UI: Have scroll views directly remember their pos.
Kinda like checkboxes, cleaner this way.
2021-09-27 23:25:41 -07:00
iota97
c94e9ad73c Support ScrollView for focus position 2021-09-10 02:06:51 +02:00
Unknown W. Brackets
e9ebd86439 UI: Fix scrollview focus scroll before relayout.
Need to use the position of the bounds as of last layout, not the new
desired position.
2021-08-29 17:35:58 -07:00