From 9b8df1f801b6b08b34882ae7297dad504a90140c Mon Sep 17 00:00:00 2001 From: Eshe Date: Sat, 4 Jan 2025 11:46:56 +0000 Subject: [PATCH] Made notification display not overlap battery level; changed name from "Trans" to "Trans Flag" --- src/displayapp/screens/WatchFaceTrans.cpp | 4 ++-- src/displayapp/screens/WatchFaceTrans.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/displayapp/screens/WatchFaceTrans.cpp b/src/displayapp/screens/WatchFaceTrans.cpp index 92e6ddd8a9..ee6692ff9c 100644 --- a/src/displayapp/screens/WatchFaceTrans.cpp +++ b/src/displayapp/screens/WatchFaceTrans.cpp @@ -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); @@ -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, ""); } diff --git a/src/displayapp/screens/WatchFaceTrans.h b/src/displayapp/screens/WatchFaceTrans.h index 09ce2c47d5..4cf82cd406 100644 --- a/src/displayapp/screens/WatchFaceTrans.h +++ b/src/displayapp/screens/WatchFaceTrans.h @@ -74,7 +74,7 @@ namespace Pinetime { template <> struct WatchFaceTraits { 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,