-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Problem
Goal: the 12 themes move out of
screen_themes.confon flash and live inthemes/*/theme.confon SD.
Estimated effort: 2 days
Proposed Solution
- Create
Service/storage_api/include/tos_theme.h - Create
Service/storage_api/tos_theme.c - Implement
theme.confparser (sections[meta],[colors],[protocol_colors]) - Implement
0xRRGGBBhex →lv_color_tconversion - Implement color application to global
lv_style_t - Implement
tos_theme_set_active_protocol(protocol)to swapborder_accentfor the protocol color - Implement fallback: if
theme.confon SD fails, readscreen_themes.conffrom flash - Convert all 12 existing themes from
screen_themes.confto thetheme.conffolder format:-
themes/default/theme.conf -
themes/matrix/theme.conf -
themes/cyber_blue/theme.conf -
themes/blood/theme.conf -
themes/toxic/theme.conf -
themes/ghost/theme.conf -
themes/neon_pink/theme.conf -
themes/amber/theme.conf -
themes/terminal/theme.conf -
themes/ice/theme.conf -
themes/deep_purple/theme.conf -
themes/midnight/theme.conf
-
- Add the 7
protocol_*tokens to eachtheme.conf(can useborder_accentvalue as initial default) - Implement automatic migration in
first_boot_setup(): ifthemes/is empty, copy the 12 themes from flash to SD - Test:
ls /sdcard/themes/returns 12 directories - Test: manually change theme in
config/screen.confand reboot — screens reflect the new colors
Use Case
No response
Alternatives Considered
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
In progress