Skip to content

Commit

Permalink
add dice app to app launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
yusufmte committed Sep 11, 2022
1 parent 12a565a commit b37781a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/displayapp/Apps.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ namespace Pinetime {
Metronome,
Motion,
Steps,
Dice,
Weather,
PassKey,
QuickSettings,
Expand Down
4 changes: 4 additions & 0 deletions src/displayapp/DisplayApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "displayapp/screens/FlashLight.h"
#include "displayapp/screens/BatteryInfo.h"
#include "displayapp/screens/Steps.h"
#include "displayapp/screens/Dice.h"
#include "displayapp/screens/PassKey.h"
#include "displayapp/screens/Error.h"

Expand Down Expand Up @@ -476,6 +477,9 @@ void DisplayApp::LoadApp(Apps app, DisplayApp::FullRefreshDirections direction)
case Apps::Steps:
currentScreen = std::make_unique<Screens::Steps>(this, motionController, settingsController);
break;
case Apps::Dice:
currentScreen = std::make_unique<Screens::Dice>(this, dateTimeController);
break;
}
currentApp = app;
}
Expand Down
2 changes: 2 additions & 0 deletions src/displayapp/screens/ApplicationList.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ namespace Pinetime {
{Symbols::chartLine, Apps::Motion},
{Symbols::drum, Apps::Metronome},
{Symbols::map, Apps::Navigation},

{Symbols::dice, Apps::Dice},
}};
ScreenList<nScreens> screens;
};
Expand Down

0 comments on commit b37781a

Please sign in to comment.