|
|
@ -58,7 +58,7 @@ namespace Pinetime {
|
|
|
|
namespace Screens {
|
|
|
|
namespace Screens {
|
|
|
|
class MyApp : public Screen {
|
|
|
|
class MyApp : public Screen {
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
MyApp(DisplayApp* app);
|
|
|
|
MyApp();
|
|
|
|
~MyApp() override;
|
|
|
|
~MyApp() override;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -74,7 +74,7 @@ MyApp.cpp:
|
|
|
|
|
|
|
|
|
|
|
|
using namespace Pinetime::Applications::Screens;
|
|
|
|
using namespace Pinetime::Applications::Screens;
|
|
|
|
|
|
|
|
|
|
|
|
MyApp::MyApp(DisplayApp* app) : Screen(app) {
|
|
|
|
MyApp::MyApp() {
|
|
|
|
lv_obj_t* title = lv_label_create(lv_scr_act(), nullptr);
|
|
|
|
lv_obj_t* title = lv_label_create(lv_scr_act(), nullptr);
|
|
|
|
lv_label_set_text_static(title, "My test application");
|
|
|
|
lv_label_set_text_static(title, "My test application");
|
|
|
|
lv_label_set_align(title, LV_LABEL_ALIGN_CENTER);
|
|
|
|
lv_label_set_align(title, LV_LABEL_ALIGN_CENTER);
|
|
|
|