mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-14 09:25:30 -04:00
Frequency manager empty file bugfix
This commit is contained in:
parent
c8e71bcdee
commit
0642d633c3
15 changed files with 133 additions and 54 deletions
|
@ -68,7 +68,14 @@ namespace ui {
|
|||
/* SystemStatusView ******************************************************/
|
||||
|
||||
SystemStatusView::SystemStatusView() {
|
||||
static constexpr Style style_systemstatus {
|
||||
.font = font::fixed_8x16,
|
||||
.background = Color::dark_grey(),
|
||||
.foreground = Color::white(),
|
||||
};
|
||||
|
||||
add_children({
|
||||
&backdrop,
|
||||
&button_back,
|
||||
&title,
|
||||
&button_stealth,
|
||||
|
@ -78,6 +85,8 @@ SystemStatusView::SystemStatusView() {
|
|||
&sd_card_status_view,
|
||||
});
|
||||
|
||||
title.set_style(&style_systemstatus);
|
||||
|
||||
if (!portapack::persistent_memory::ui_config_textentry())
|
||||
button_textentry.set_bitmap(&bitmap_keyboard);
|
||||
else
|
||||
|
@ -86,7 +95,7 @@ SystemStatusView::SystemStatusView() {
|
|||
if (portapack::persistent_memory::stealth_mode())
|
||||
button_stealth.set_foreground(ui::Color::green());
|
||||
|
||||
button_back.on_select = [this](Button&){
|
||||
button_back.on_select = [this](ImageButton&){
|
||||
if (this->on_back)
|
||||
this->on_back();
|
||||
};
|
||||
|
@ -110,7 +119,7 @@ SystemStatusView::SystemStatusView() {
|
|||
}
|
||||
|
||||
void SystemStatusView::set_back_enabled(bool new_value) {
|
||||
//button_back.set_text(new_value ? back_text_enabled : back_text_disabled);
|
||||
button_back.set_foreground(new_value ? Color::white() : Color::dark_grey());
|
||||
button_back.set_focusable(new_value);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue