diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-03-26 03:11:04 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-03-26 03:25:17 (GMT) |
| commit | 8b7bbf4b84a008e42a0ebba8af316690af696d5b (patch) | |
| tree | 21bcfb4f4da4b3f6b3ebb21d6dd85f080f8cecd3 /src/displayapp/screens/ApplicationList.cpp | |
| parent | 1589e31b71b0f45eebd6fb95b53248a156821abb (diff) | |
compactify app list
Diffstat (limited to 'src/displayapp/screens/ApplicationList.cpp')
| -rw-r--r-- | src/displayapp/screens/ApplicationList.cpp | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/src/displayapp/screens/ApplicationList.cpp b/src/displayapp/screens/ApplicationList.cpp index a34a255..b7498aa 100644 --- a/src/displayapp/screens/ApplicationList.cpp +++ b/src/displayapp/screens/ApplicationList.cpp @@ -21,11 +21,7 @@ ApplicationList::ApplicationList(Pinetime::Applications::DisplayApp* app, { [this]() -> std::unique_ptr<Screen> { return CreateScreen1(); - }, - [this]() -> std::unique_ptr<Screen> { - return CreateScreen2(); - }, - //[this]() -> std::unique_ptr<Screen> { return CreateScreen3(); } + } }, Screens::ScreenListModes::UpDown} { } @@ -42,27 +38,9 @@ std::unique_ptr<Screen> ApplicationList::CreateScreen1() { std::array<Screens::Tile::Applications, 6> applications {{ {Symbols::shoe, Apps::Steps}, {Symbols::heartBeat, Apps::HeartRate}, - }}; - - return std::make_unique<Screens::Tile>(0, 2, app, settingsController, batteryController, dateTimeController, applications); -} - -std::unique_ptr<Screen> ApplicationList::CreateScreen2() { - std::array<Screens::Tile::Applications, 6> applications {{ - {Symbols::chartLine, Apps::Motion}, {Symbols::clock, Apps::Alarm}, }}; - return std::make_unique<Screens::Tile>(1, 2, app, settingsController, batteryController, dateTimeController, applications); + return std::make_unique<Screens::Tile>(0, 1, app, settingsController, batteryController, dateTimeController, applications); } -/*std::unique_ptr<Screen> ApplicationList::CreateScreen3() { - std::array<Screens::Tile::Applications, 6> applications { - {{"A", Apps::Meter}, - {"C", Apps::Clock}, - {"F", Apps::Brightness} - } - }; - - return std::make_unique<Screens::Tile>(2, 3, app, settingsController, batteryController, dateTimeController, applications); -}*/ |
