mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
0f28fefc82
* Consolidate styles into a Styles class and clean up code * Format * Add style_bg_dark_grey for nav bar * Fix bugs found in PR * Rename styles * Add bg_white style --------- Co-authored-by: kallanreed <kallanreed@outlook.com> Co-authored-by: gullradriel <3157857+gullradriel@users.noreply.github.com>
38 lines
791 B
C++
38 lines
791 B
C++
#ifndef __UI_ABOUT_SIMPLE_H__
|
|
#define __UI_ABOUT_SIMPLE_H__
|
|
|
|
#include "ui_widget.hpp"
|
|
#include "ui_navigation.hpp"
|
|
|
|
#include <cstdint>
|
|
|
|
namespace ui {
|
|
class AboutView : public View {
|
|
public:
|
|
AboutView(NavigationView& nav);
|
|
void focus() override;
|
|
std::string title() const override { return "About"; };
|
|
int32_t timer{180};
|
|
short frame{0};
|
|
|
|
private:
|
|
void update();
|
|
|
|
Console console{
|
|
{0, 10, 240, 240}};
|
|
|
|
Button button_ok{
|
|
{240 / 3, 270, 240 / 3, 24},
|
|
"OK",
|
|
};
|
|
|
|
MessageHandlerRegistration message_handler_update{
|
|
Message::ID::DisplayFrameSync,
|
|
[this](const Message* const) {
|
|
this->update();
|
|
}};
|
|
};
|
|
} // namespace ui
|
|
|
|
#endif /*__UI_ABOUT_SIMPLE_H__*/
|