mirror of
https://github.com/InfiniTimeOrg/InfiniTime.git
synced 2024-10-22 23:21:53 +02:00
Merge b3eb81818a
into a2356f2f4a
This commit is contained in:
commit
f6fcb62d98
|
@ -295,9 +295,11 @@ void WatchFaceCasioStyleG7710::Refresh() {
|
|||
if (heartbeatRunning.Get()) {
|
||||
lv_obj_set_style_local_text_color(heartbeatIcon, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, color_text);
|
||||
lv_label_set_text_fmt(heartbeatValue, "%d", heartbeat.Get());
|
||||
lv_obj_set_hidden(heartbeatIcon, false);
|
||||
lv_obj_set_hidden(heartbeatValue, false);
|
||||
} else {
|
||||
lv_obj_set_style_local_text_color(heartbeatIcon, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex(0x1B1B1B));
|
||||
lv_label_set_text_static(heartbeatValue, "");
|
||||
lv_obj_set_hidden(heartbeatIcon, true);
|
||||
lv_obj_set_hidden(heartbeatValue, true);
|
||||
}
|
||||
|
||||
lv_obj_realign(heartbeatIcon);
|
||||
|
|
|
@ -154,9 +154,11 @@ void WatchFaceDigital::Refresh() {
|
|||
if (heartbeatRunning.Get()) {
|
||||
lv_obj_set_style_local_text_color(heartbeatIcon, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex(0xCE1B1B));
|
||||
lv_label_set_text_fmt(heartbeatValue, "%d", heartbeat.Get());
|
||||
lv_obj_set_hidden(heartbeatIcon, false);
|
||||
lv_obj_set_hidden(heartbeatValue, false);
|
||||
} else {
|
||||
lv_obj_set_style_local_text_color(heartbeatIcon, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex(0x1B1B1B));
|
||||
lv_label_set_text_static(heartbeatValue, "");
|
||||
lv_obj_set_hidden(heartbeatIcon, true);
|
||||
lv_obj_set_hidden(heartbeatValue, true);
|
||||
}
|
||||
|
||||
lv_obj_realign(heartbeatIcon);
|
||||
|
|
Loading…
Reference in a new issue