mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-22 17:39:21 +00:00
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:
@@ -83,16 +83,16 @@ class SpectrumPainterView : public View {
|
||||
std::array<View*, 2> input_views{{&input_image, &input_text}};
|
||||
|
||||
TabView tab_view{
|
||||
{"Image", Color::white(), input_views[0]},
|
||||
{"Text", Color::white(), input_views[1]}};
|
||||
{"Image", Theme::getInstance()->bg_darkest->foreground, input_views[0]},
|
||||
{"Text", Theme::getInstance()->bg_darkest->foreground, input_views[1]}};
|
||||
|
||||
static constexpr int32_t footer_location = 15 * 16 + 8;
|
||||
ProgressBar progressbar{
|
||||
{4, footer_location - 16, 240 - 8, 16}};
|
||||
|
||||
Labels labels{
|
||||
{{10 * 8, footer_location + 1 * 16}, "GAIN A:", Color::light_grey()},
|
||||
{{1 * 8, footer_location + 2 * 16}, "BW: Du: P:", Color::light_grey()},
|
||||
{{10 * 8, footer_location + 1 * 16}, "GAIN A:", Theme::getInstance()->fg_light->foreground},
|
||||
{{1 * 8, footer_location + 2 * 16}, "BW: Du: P:", Theme::getInstance()->fg_light->foreground},
|
||||
};
|
||||
|
||||
TxFrequencyField field_frequency{
|
||||
@@ -122,8 +122,8 @@ class SpectrumPainterView : public View {
|
||||
ImageButton button_play{
|
||||
{28 * 8, footer_location + 1 * 16, 2 * 8, 1 * 16},
|
||||
&bitmap_play,
|
||||
Color::green(),
|
||||
Color::black()};
|
||||
Theme::getInstance()->fg_green->foreground,
|
||||
Theme::getInstance()->fg_green->background};
|
||||
|
||||
OptionsField option_bandwidth{
|
||||
{4 * 8, footer_location + 2 * 16},
|
||||
|
Reference in New Issue
Block a user