From 4dd73d201b2eb36954a206ac03000a09a4bb0cda Mon Sep 17 00:00:00 2001 From: Gregory Fenton Date: Wed, 3 Jun 2020 12:38:05 +0100 Subject: [PATCH] Fix disappearing icons Icons disappear when they are rolled over using the jog wheel and the colour is set to ui::color::white() Fixed by changing the colours of the icons to something other than ui::color::white() --- firmware/application/apps/ui_debug.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/firmware/application/apps/ui_debug.cpp b/firmware/application/apps/ui_debug.cpp index d409cd295..25b9885ab 100644 --- a/firmware/application/apps/ui_debug.cpp +++ b/firmware/application/apps/ui_debug.cpp @@ -346,12 +346,12 @@ DebugPeripheralsMenuView::DebugPeripheralsMenuView(NavigationView& nav) { DebugMenuView::DebugMenuView(NavigationView& nav) { add_items({ //{ "..", ui::Color::light_grey(),&bitmap_icon_previous, [&nav](){ nav.pop(); } }, - { "Memory", ui::Color::white(), &bitmap_icon_soundboard, [&nav](){ nav.push(); } }, + { "Memory", ui::Color::green(), &bitmap_icon_soundboard, [&nav](){ nav.push(); } }, //{ "Radio State", ui::Color::white(), nullptr, [&nav](){ nav.push(); } }, - { "SD Card", ui::Color::white(), &bitmap_icon_file, [&nav](){ nav.push(); } }, - { "Peripherals", ui::Color::white(), &bitmap_icon_debug, [&nav](){ nav.push(); } }, - { "Temperature", ui::Color::white(), &bitmap_icon_transmit, [&nav](){ nav.push(); } }, - { "Controls", ui::Color::white(), &bitmap_icon_utilities, [&nav](){ nav.push(); } }, + { "SD Card", ui::Color::black(), &bitmap_icon_file, [&nav](){ nav.push(); } }, + { "Peripherals", ui::Color::green(), &bitmap_icon_debug, [&nav](){ nav.push(); } }, + { "Temperature", ui::Color::green(), &bitmap_icon_transmit, [&nav](){ nav.push(); } }, + { "Controls", ui::Color::black(), &bitmap_icon_utilities, [&nav](){ nav.push(); } }, }); set_max_rows(2); // allow wider buttons }