aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/screens/ApplicationList.cpp
diff options
context:
space:
mode:
authorJF002 <JF002@users.noreply.github.com>2021-03-20 11:27:16 +0100
committerGitHub <noreply@github.com>2021-03-20 11:27:16 +0100
commit9e9bb2085e70a9c8b8c2e74f6027f5392e366158 (patch)
tree0549cf49f95f6142af862063f46750ea994a8941 /src/displayapp/screens/ApplicationList.cpp
parentada942535718d48eec37cca4f50d678e7201dc67 (diff)
parent282e34dca14ddc799b9511643e50a4f9023003ed (diff)
Merge pull request #217 from joaquimorg/MultiFaceClock
Multi face support, analog clock, 12/24 config
Diffstat (limited to 'src/displayapp/screens/ApplicationList.cpp')
-rw-r--r--src/displayapp/screens/ApplicationList.cpp17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/displayapp/screens/ApplicationList.cpp b/src/displayapp/screens/ApplicationList.cpp
index 531636eb..0f3286df 100644
--- a/src/displayapp/screens/ApplicationList.cpp
+++ b/src/displayapp/screens/ApplicationList.cpp
@@ -8,13 +8,18 @@
using namespace Pinetime::Applications::Screens;
-ApplicationList::ApplicationList(Pinetime::Applications::DisplayApp *app) :
+ApplicationList::ApplicationList(Pinetime::Applications::DisplayApp *app,
+ Pinetime::Controllers::Settings &settingsController) :
Screen(app),
- screens{app, {
+ settingsController{settingsController},
+ screens{app,
+ settingsController.GetAppMenu(),
+ {
[this]() -> std::unique_ptr<Screen> { return CreateScreen1(); },
[this]() -> std::unique_ptr<Screen> { return CreateScreen2(); },
//[this]() -> std::unique_ptr<Screen> { return CreateScreen3(); }
- }
+ },
+ Screens::ScreenListModes::UpDown
} {}
@@ -51,7 +56,7 @@ std::unique_ptr<Screen> ApplicationList::CreateScreen1() {
};
- return std::unique_ptr<Screen>(new Screens::Tile(app, applications));
+ return std::unique_ptr<Screen>(new Screens::Tile(0, app, settingsController, applications));
}
std::unique_ptr<Screen> ApplicationList::CreateScreen2() {
@@ -65,7 +70,7 @@ std::unique_ptr<Screen> ApplicationList::CreateScreen2() {
}
};
- return std::unique_ptr<Screen>(new Screens::Tile(app, applications));
+ return std::unique_ptr<Screen>(new Screens::Tile(1, app, settingsController, applications));
}
std::unique_ptr<Screen> ApplicationList::CreateScreen3() {
@@ -79,6 +84,6 @@ std::unique_ptr<Screen> ApplicationList::CreateScreen3() {
}
};
- return std::unique_ptr<Screen>(new Screens::Tile(app, applications));
+ return std::unique_ptr<Screen>(new Screens::Tile(2, app, settingsController, applications));
}