Theme system (#2164)

* Themes instead of Styles
* Colors changed to theme colors
* Reworked style management
* Theme settings app
* warn, menu dual set
* Added Aqua style
This commit is contained in:
Totoo
2024-05-27 21:02:52 +02:00
committed by GitHub
parent a8203a6372
commit ced8012783
143 changed files with 1566 additions and 1154 deletions

View File

@@ -113,21 +113,21 @@ class RecordView : public View {
TrimProgressUI trim_ui{};
Rectangle rect_background{
Color::black()};
Theme::getInstance()->bg_darkest->background};
/*ImageButton button_pitch_rssi {
{ 2, 0 * 16, 3 * 8, 1 * 16 },
&bitmap_rssipwm,
Color::orange(),
Color::black()
Theme::getInstance()->fg_orange->foreground,
Theme::getInstance()->fg_orange->background
};*/
ImageButton button_record{
//{ 4 * 8, 0 * 16, 2 * 8, 1 * 16 },
{0 * 8, 0 * 16, 2 * 8, 1 * 16},
&bitmap_record,
Color::red(),
Color::black()};
Theme::getInstance()->fg_red->foreground,
Theme::getInstance()->fg_red->background};
Text text_record_filename{
{7 * 8, 0 * 16, 8 * 8, 16},
@@ -147,8 +147,8 @@ class RecordView : public View {
Image gps_icon{
{2 * 8 + 1, 0 * 16, 2 * 8, 1 * 16},
&bitmap_target,
Color::white(),
Color::black()};
Theme::getInstance()->bg_darkest->foreground,
Theme::getInstance()->bg_darkest->background};
std::unique_ptr<CaptureThread> capture_thread{};