Add start of music appliction
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#include <DisplayApp/Screens/Gauge.h>
|
||||
#include <DisplayApp/Screens/Brightness.h>
|
||||
#include <DisplayApp/Screens/ScreenList.h>
|
||||
#include <DisplayApp/Screens/Music.h>
|
||||
#include <Components/Ble/NotificationManager.h>
|
||||
#include <DisplayApp/Screens/FirmwareUpdate.h>
|
||||
#include "../SystemTask/SystemTask.h"
|
||||
@@ -189,6 +190,7 @@ void DisplayApp::RunningState() {
|
||||
case Apps::Meter: currentScreen.reset(new Screens::Meter(this)); break;
|
||||
case Apps::Gauge: currentScreen.reset(new Screens::Gauge(this)); break;
|
||||
case Apps::Brightness : currentScreen.reset(new Screens::Brightness(this, brightnessController)); break;
|
||||
case Apps::Music : currentScreen.reset(new Screens::Music(this)); break;
|
||||
}
|
||||
nextApp = Apps::None;
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace Pinetime {
|
||||
void Start();
|
||||
void PushMessage(Messages msg);
|
||||
|
||||
enum class Apps {None, Launcher, Clock, SysInfo, Meter, Gauge, Brightness};
|
||||
enum class Apps {None, Launcher, Clock, SysInfo, Meter, Gauge, Brightness, Music};
|
||||
void StartApp(Apps app);
|
||||
|
||||
void SetFullRefresh(FullRefreshDirections direction);
|
||||
|
||||
@@ -19,6 +19,7 @@ Gauge::Gauge(Pinetime::Applications::DisplayApp *app) : Screen(app) {
|
||||
style.text.color = LV_COLOR_WHITE;
|
||||
style.line.color = LV_COLOR_RED; /*Line color after the critical value*/
|
||||
|
||||
|
||||
/*Describe the color for the needles*/
|
||||
|
||||
needle_colors[0] = LV_COLOR_ORANGE;
|
||||
|
||||
@@ -16,7 +16,7 @@ static void event_handler(lv_obj_t * obj, lv_event_t event) {
|
||||
screen->OnObjectEvent(obj, event, eventData);
|
||||
}
|
||||
|
||||
static const char * btnm_map1[] = {"Meter", "Gauge", "Clock", "\n", "Soft\nversion", "App2", "Brightness", ""};
|
||||
static const char * btnm_map1[] = {"Meter", "Music", "Clock", "\n", "Soft\nversion", "App2", "Brightness", ""};
|
||||
|
||||
Tile::Tile(DisplayApp* app) : Screen(app) {
|
||||
modal.reset(new Modal(app));
|
||||
@@ -166,7 +166,7 @@ void Tile::StartMeterApp() {
|
||||
}
|
||||
|
||||
void Tile::StartGaugeApp() {
|
||||
app->StartApp(DisplayApp::Apps::Gauge);
|
||||
app->StartApp(DisplayApp::Apps::Music);
|
||||
running = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user