Add theming #28

Open
opened 2023-01-11 14:43:31 +01:00 by CommanderRedYT · 0 comments
CommanderRedYT commented 2023-01-11 14:43:31 +01:00 (Migrated from github.com)
  • Create a file theme.h that loads different subfiles (src/themes/foo.h) depending on selection through sdkconfig
  • Every type should be a namespace, for example colors::Topbar::Text.
  • Add enums for spacing (bit like CSS), with for example Left, Center or Right for Titles on menus.
  • Add base colors like in Bootstrap

First step would be themes that are compiled into the firmware, next step could be runtime themes, each calling a function.

This could be realized by every theme being a class that extends a abstract base class theme, having all the necessary colors etc.

- [ ] Create a file theme.h that loads different subfiles (src/themes/foo.h) depending on selection through sdkconfig - [ ] Every type should be a namespace, for example **colors::Topbar::Text**. - [ ] Add enums for spacing (bit like CSS), with for example Left, Center or Right for Titles on menus. - [ ] Add base colors like in Bootstrap First step would be themes that are compiled into the firmware, next step could be runtime themes, each calling a function. This could be realized by every theme being a class that extends a abstract base class theme, having all the necessary colors etc.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: feedc0de/esp-gui-lib#28
No description provided.