DeskControl/src/lib/screen/menu.cpp

26 lines
526 B
C++

#include "./menu.h"
#include "./home.h"
#include "include/metrics.h"
void MenuScreen::onShow()
{
this->display->setFont(Metrics::LargeFont);
this->display->setTextSize(Metrics::LargeFontTextSize);
this->display->fillScreen(Config::ColorHomeBackground);
this->drawLargeTextLineCentered("Menu", 0, Config::ColorMenuHeaderText, Config::ColorMenuHeaderBackground);
// TODO: implement MenuScreen
}
void MenuScreen::onButton(Button button)
{
this->screenManager->show<HomeScreen>();
}
void MenuScreen::onTick()
{
}