mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-04 21:29:36 -04:00
Set Navigation title with View.title() if not empty.
This commit is contained in:
parent
dc42525dcb
commit
7fe8288737
2 changed files with 19 additions and 7 deletions
|
@ -44,16 +44,19 @@ public:
|
|||
SystemStatusView();
|
||||
|
||||
void set_back_visible(bool new_value);
|
||||
void set_title(const std::string new_value);
|
||||
|
||||
private:
|
||||
static constexpr auto default_title = "PortaPack";
|
||||
|
||||
Button button_back {
|
||||
{ 0 * 8, 0 * 16, 3 * 8, 16 },
|
||||
" < ",
|
||||
};
|
||||
|
||||
Text portapack {
|
||||
{ 3 * 8, 0, 9 * 8, 1 * 16 },
|
||||
"PortaPack",
|
||||
Text title {
|
||||
{ 3 * 8, 0, 16 * 8, 1 * 16 },
|
||||
default_title,
|
||||
};
|
||||
|
||||
SDCardStatusView sd_card_status_view;
|
||||
|
@ -61,7 +64,7 @@ private:
|
|||
|
||||
class NavigationView : public View {
|
||||
public:
|
||||
std::function<void(void)> on_view_changed;
|
||||
std::function<void(const View&)> on_view_changed;
|
||||
|
||||
NavigationView() { }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue