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

@@ -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) {