mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-20 15:01:29 +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:
@@ -51,9 +51,9 @@ namespace ui {
|
||||
shared_memory.application_queue.push(message);
|
||||
|
||||
if( !pitch_rssi_enabled ) {
|
||||
button_pitch_rssi.set_foreground(Color::orange());
|
||||
button_pitch_rssi.set_foreground(Theme::getInstance()->fg_orange->foreground);
|
||||
} else {
|
||||
button_pitch_rssi.set_foreground(Color::green());
|
||||
button_pitch_rssi.set_foreground(Theme::getInstance()->fg_green->foreground);
|
||||
}
|
||||
}*/
|
||||
|
||||
@@ -113,9 +113,9 @@ uint32_t RecordView::set_sampling_rate(uint32_t new_sampling_rate) {
|
||||
// Change the "REC" icon background to yellow when the selected rate exceeds hardware limits.
|
||||
// Above this threshold, samples will be dropped resulting incomplete capture files.
|
||||
if (new_sampling_rate > 1'250'000) {
|
||||
button_record.set_background(ui::Color::yellow());
|
||||
button_record.set_background(Theme::getInstance()->fg_yellow->foreground);
|
||||
} else {
|
||||
button_record.set_background(ui::Color::black());
|
||||
button_record.set_background(Theme::getInstance()->fg_yellow->background);
|
||||
}
|
||||
|
||||
if (sampling_rate != new_sampling_rate) {
|
||||
|
Reference in New Issue
Block a user