Commit Graph

42 Commits

Author SHA1 Message Date
Henrik Rydgård ed25b5e991 Add convenient UI on the pause screen for changing/locking the screen orientation 2025-11-26 11:14:37 +01:00
Henrik Rydgård 3116eba395 More UI work (#21035)
* Improve a couple of on-screen buttons (menu, fastforward)

* Fix the new continue button, oops

* Add some missing translations

* Split a translation string to make portrait look better

* More GameScreen redesign

* Don't accidentally go into game-specific mode

* Fix layout issue with popupscreens, fix context menu positioning

* One more icon
2025-11-24 20:33:13 +01:00
Henrik Rydgård 25edcaa81c Some improvements to the pause screen. Add shortcut to touch control layout 2025-11-24 01:19:32 +01:00
Henrik Rydgård 1a35049483 Popup menu fix, inset fix on pause screen 2025-11-22 15:51:44 +01:00
Henrik Rydgård c4c29ab6b3 Fix issue with UI atlas being generated unnecessarily on mobile 2025-11-22 10:29:21 +01:00
Henrik Rydgård d1f6da81cb Add stb_rect_pack library, use it to pack our atlases way faster 2025-11-15 15:26:06 +01:00
Henrik Rydgård 915a88df60 AtlasGen: Separate pack and resolve steps 2025-11-15 15:26:06 +01:00
Henrik Rydgård 55d53bd29a Handle devices with really extreme DPIs. Fixes #21001
I thought I did this already but apparently not, or it got lost in a
branch.
2025-11-15 15:26:06 +01:00
Henrik Rydgård 278a913a6a Add an icon to the homebrew store button 2025-11-09 09:27:37 +01:00
Henrik Rydgård 2fce2da709 Apply the font system rework to Android as well 2025-11-09 08:52:21 +01:00
Henrik Rydgård 57d64eaf60 New icons for the tools and system tabs 2025-11-06 23:44:55 +01:00
Henrik Rydgård 56d3dae334 Avoid regenerating the UI Atlas if unnecessary (faster resize) 2025-11-06 23:44:55 +01:00
Henrik Rydgård 48ba3d99d3 GameSettingsScreen: Add tab icons. In portrait mode, use only icons on the tabs. 2025-11-05 15:29:34 +01:00
Henrik Rydgård 67010ff2af Split the display layout config between landscape and portrait orientations 2025-11-05 12:49:51 +01:00
Henrik Rydgård 9ed3fc0eaa Some work on the credits screen, main screen 2025-10-28 11:27:31 +01:00
Henrik Rydgård b1d14d8221 More upload UI polish 2025-10-27 12:20:24 +01:00
Henrik Rydgård c686d48268 Add prototype Upload screen and a couple new icons. Some refactoring. 2025-10-27 12:20:20 +01:00
Henrik Rydgård 9d0dfea04f Split gear.png into two new svg icons, a small (for indicators) and a large one (for buttons) 2025-10-23 14:12:58 +02:00
Henrik Rydgård 7b743071d2 Prepare for adding more sensible back buttons to TabbedDialogScreen portrait mode 2025-10-23 12:46:07 +02:00
Henrik Rydgård b45d07d6cb Break out TabHolder from Common/UI/ViewGroup.cpp. A few new atlas images 2025-10-23 11:19:20 +02:00
Henrik Rydgård 0770bc6cd6 Parallelize some of the processing of UI atlas images 2025-10-21 12:11:23 +02:00
Henrik Rydgård e5f52854d8 Atlas SVG: Add 1px transparent border to images without shadows, to ensure consistent filtering 2025-10-16 16:45:59 +02:00
Henrik Rydgård 3736702f93 Use the correct blending operator when compositing the drop shadow 2025-10-16 11:07:05 +02:00
Henrik Rydgård c08e48bf82 Only shadow the UI images that are used for line-art in-game buttons. 2025-10-16 11:07:05 +02:00
Henrik Rydgård f0b5209908 Convert all UI atlas images to premultiplied alpha format 2025-10-16 11:07:05 +02:00
Henrik Rydgård 26a9b5d95f Replaces '+'/'-' with pin/unpin icons. Thanks Nabn00b.
This doesn't yet use the new pinned-folder icon though. Might do that
later.
2025-10-07 15:51:13 -06:00
Henrik Rydgård 1efd0b95b8 Improve logging of UI atlas generation, don't generate debug png (oops) 2025-09-23 13:40:39 -06:00
Henrik Rydgård 27ed337d99 Move more pngs into the images.svg file 2025-09-22 15:24:10 -06:00
Henrik Rydgård c66a9301cc More buttons to SVG 2025-09-22 12:26:55 -06:00
Henrik Rydgård bcb97b1b1c Separate UNCHECKEDBOX from SQUARE. Move more images to SVG 2025-09-22 12:19:02 -06:00
Henrik Rydgård 8898854f57 Move more images into the svg 2025-09-20 11:10:42 -06:00
Henrik Rydgård 4a50174d14 Support dpi scaling in SVG atlas generation 2025-09-20 10:00:05 -06:00
Henrik Rydgård 0bb70de3f0 Correct the drop shadow 2025-09-19 11:23:48 -06:00
Henrik Rydgård e03de7b9da Add some quick and dirty drop shadow code. Now the generated images look good! 2025-09-19 10:57:29 -06:00
Henrik Rydgård 29f4435f55 Add SELECT and START to svg image 2025-09-19 10:31:51 -06:00
Henrik Rydgård 74874bb81e Test a multi-shape image 2025-09-19 10:31:51 -06:00
Henrik Rydgård 71c8f0a9bb Rename buttons.svg to images.svg 2025-09-19 10:31:51 -06:00
Henrik Rydgård 91f605c6d3 Proof-of-concept implementation of SVG for icons. Doesn't correctly use DPI yet. 2025-09-19 10:31:51 -06:00
Henrik Rydgård bceb989811 Remove ImageDesc from AtlasGen.cpp/h 2025-09-18 11:26:19 -06:00
Henrik Rydgård 7266595bc4 Make filename and I_ identifiers match 2025-09-18 11:15:50 -06:00
Henrik Rydgård ca2a7c93a0 Make ToAtlasImage a global function instead of a method on ImageDesc 2025-09-18 11:03:50 -06:00
Henrik Rydgård 63f9fb73be Split out the atlas code from Theme.cpp into UIAtlas.cpp 2025-09-18 10:54:48 -06:00