aboutsummaryrefslogtreecommitdiffstats
path: root/src/DisplayApp/Screens/Message.cpp
blob: 7b1ed9ae999d9de074ff2916aaf69d1aa24e912a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <cstdio>
#include <libs/date/includes/date/date.h>
#include <Components/DateTime/DateTimeController.h>
#include <Version.h>
#include <libs/lvgl/src/lv_core/lv_obj.h>
#include <libs/lvgl/lvgl.h>
#include "Message.h"

using namespace Pinetime::Applications::Screens;

lv_obj_t * label;
void Message::Refresh(bool fullRefresh) {
  if(fullRefresh) {
    lv_obj_t * btn = lv_btn_create(lv_scr_act(), NULL);     /*Add a button the current screen*/
    lv_obj_set_pos(btn, 10, 10);                            /*Set its position*/
    lv_obj_set_size(btn, 100, 50);                          /*Set its size*/
    label = lv_label_create(btn, NULL);          /*Add a label to the button*/
    lv_label_set_text(label, "Button");                     /*Set the labels text*/
  }

}