[escher] Rework of timers and bigger text in toolboxes

This commit is contained in:
Laury
2022-06-24 22:35:36 +02:00
parent 391fd5e243
commit 0b2a581177
74 changed files with 407 additions and 208 deletions

View File

@@ -18,15 +18,7 @@ App::App(Snapshot * snapshot) :
m_localizationController(&m_modalViewController, Metric::CommonTopMargin, LocalizationController::Mode::Language),
m_logoController()
{
}
int App::numberOfTimers() {
return firstResponder() == &m_logoController;
}
Timer * App::timerAtIndex(int i) {
assert(i == 0);
return &m_logoController;
AppsContainer::sharedAppsContainer()->addTimer(&m_logoController);
}
bool App::processEvent(Ion::Events::Event e) {

View File

@@ -15,9 +15,6 @@ public:
App * unpack(Container * container) override;
Descriptor * descriptor() override;
};
int numberOfTimers() override;
Timer * timerAtIndex(int i) override;
bool processEvent(Ion::Events::Event) override;
void didBecomeActive(Window * window) override;
private:

View File

@@ -17,6 +17,7 @@ LogoController::LogoController() :
bool LogoController::fire() {
Container::activeApp()->dismissModalViewController();
AppsContainer::sharedAppsContainer()->removeTimer(this);
return true;
}
@@ -41,7 +42,6 @@ void LogoController::viewWillAppear() {
if (!backlightInitialized) {
Ion::Backlight::init();
}
ViewController::viewWillAppear();
}
void LogoController::viewDidDisappear() {