Skip to content

feat(v0.9): Home UI — 8 icons/page, pagination, centered settings button and configurable label colors#30

Open
Inter-Raptor wants to merge 3 commits into
mainfrom
codex/modify-launcher-icon-layout-and-settings
Open

feat(v0.9): Home UI — 8 icons/page, pagination, centered settings button and configurable label colors#30
Inter-Raptor wants to merge 3 commits into
mainfrom
codex/modify-launcher-icon-layout-and-settings

Conversation

@Inter-Raptor
Copy link
Copy Markdown
Owner

Motivation

  • Reduce the number of app icons shown per page from 10 to 8 and add page navigation controls so the launcher is easier to use on smaller screens.
  • Provide a centered settings button with an gear sprite and translated label, and make home labels styling configurable (color, custom hex) and visually consistent with game icon labels.
  • Add UI polish: rounded icon frames, transparent labels, optional info-badge and configurable boot/title image display time.

Description

  • Changed home layout capacity: SLOT_COUNT_PER_PAGE set to 8, removed the old extra slots and adjusted grid/placement and page math in RaptorLauncher_V0.9/launcher_ui.cpp.
  • Added navigation arrows and a centered settings footer: new drawHomeNavigationButtons() uses Fleche and Engrenage sprites and updated touch handling for BTN_PREV, BTN_NEXT, and centered BTN_SETTINGS in launcher_ui.cpp.
  • Added display helpers to support the new visuals: displayDrawSmallTextTransparent, displayFillRoundRect, displayDrawRoundRect, and displayDrawRGB565SpriteKey were added to RaptorLauncher_V0.9/display_manager.h/.cpp (also added #include <pgmspace.h> for sprite reads).
  • Configurable home label and behaviour: new settings added to SystemSettings and implemented in RaptorLauncher_V0.9/settings_manager.{h,cpp} (home_text_color_mode, home_text_color_hex, home_show_info_badge, home_boot_image_ms) with defaults, load/save and serial logging; label color parsing and homeLabelColor() implemented in launcher_ui.cpp.
  • Applied UI changes on home screen: rounded icon frames (ICON_RADIUS = 6), transparent small labels, optional ? badge (controlled by home_show_info_badge), and used home_boot_image_ms to control title/boot image delay.
  • Updated SD settings file CarteSD/settings.json with the new keys and _comment_* keys documenting the options.

Testing

  • Validated JSON syntax for CarteSD/settings.json with python -m json.tool and the file parsed successfully.
  • No automated firmware build or runtime hardware tests were run in this environment (toolchain/flash not invoked).

Codex Task

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant