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
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
SLOT_COUNT_PER_PAGEset to8, removed the old extra slots and adjusted grid/placement and page math inRaptorLauncher_V0.9/launcher_ui.cpp.drawHomeNavigationButtons()usesFlecheandEngrenagesprites and updated touch handling forBTN_PREV,BTN_NEXT, and centeredBTN_SETTINGSinlauncher_ui.cpp.displayDrawSmallTextTransparent,displayFillRoundRect,displayDrawRoundRect, anddisplayDrawRGB565SpriteKeywere added toRaptorLauncher_V0.9/display_manager.h/.cpp(also added#include <pgmspace.h>for sprite reads).SystemSettingsand implemented inRaptorLauncher_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 andhomeLabelColor()implemented inlauncher_ui.cpp.ICON_RADIUS = 6), transparent small labels, optional?badge (controlled byhome_show_info_badge), and usedhome_boot_image_msto control title/boot image delay.CarteSD/settings.jsonwith the new keys and_comment_*keys documenting the options.Testing
CarteSD/settings.jsonwithpython -m json.tooland the file parsed successfully.Codex Task