Skip to content

Commit

Permalink
Made notification display not overlap battery level; changed name fro…
Browse files Browse the repository at this point in the history
…m "Trans" to "Trans Flag"
  • Loading branch information
Aperture32GLaDOS committed Jan 4, 2025
1 parent ee2e868 commit 9b8df1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/displayapp/screens/WatchFaceTrans.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ WatchFaceTrans::WatchFaceTrans(Controllers::DateTime& dateTimeController,
lv_obj_set_auto_realign(batteryValue, true);

notificationIcon = lv_label_create(lv_scr_act(), nullptr);
lv_obj_align(notificationIcon, nullptr, LV_ALIGN_IN_LEFT_MID, 0, -100);
lv_obj_align(notificationIcon, nullptr, LV_ALIGN_IN_LEFT_MID, 0, -110);
lv_obj_set_style_local_text_color(notificationIcon, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_BLACK);

labelDate = lv_label_create(lv_scr_act(), nullptr);
Expand Down Expand Up @@ -119,7 +119,7 @@ void WatchFaceTrans::Refresh() {
notificationState = notificationManager.AreNewNotificationsAvailable();
if (notificationState.IsUpdated()) {
if (notificationState.Get()) {
lv_label_set_text_static(notificationIcon, "You have mail.");
lv_label_set_text_static(notificationIcon, "You have\nMail!");
} else {
lv_label_set_text_static(notificationIcon, "");
}
Expand Down
2 changes: 1 addition & 1 deletion src/displayapp/screens/WatchFaceTrans.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ namespace Pinetime {
template <>
struct WatchFaceTraits<WatchFace::Trans> {
static constexpr WatchFace watchFace = WatchFace::Trans;
static constexpr const char* name = "Trans";
static constexpr const char* name = "Trans Flag";

static Screens::Screen* Create(AppControllers& controllers) {
return new Screens::WatchFaceTrans(controllers.dateTimeController,
Expand Down

0 comments on commit 9b8df1f

Please sign in to comment.