From 885200fe504009adc149bbf7a95de31b2f03544b Mon Sep 17 00:00:00 2001 From: Tigran Soghbatyan Date: Mon, 11 Oct 2021 13:10:55 +0200 Subject: [PATCH] [BH-981] Fix "Alarm Deactivated" text alignment Make "Alarm Deactivated" string vertically centered in a UI box --- image/assets/lang/English.json | 2 +- .../apps/application-bell-main/windows/BellHomeScreenWindow.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/image/assets/lang/English.json b/image/assets/lang/English.json index 3c599acd10b1ab7a8dbbf18a73dd53fe2a6ee53b..6bcb0216804e8d8ad7631587911d4b7244d6f78d 100644 --- a/image/assets/lang/English.json +++ b/image/assets/lang/English.json @@ -625,7 +625,7 @@ "app_bellmain_home_screen_bottom_desc": "Next alarm will ring", "app_bellmain_home_screen_bottom_desc_in": "in", "app_bellmain_home_screen_bottom_desc_dp": "Deep press to activate", - "app_bell_alarm_deactivated": "Alarm deactivated
", + "app_bell_alarm_deactivated": "Alarm deactivated", "app_bell_alarm_set_not_active": "Alarm set.
Deep press to activate.
", "app_bell_settings_advanced_frontlight": "Frontlight", "app_bell_settings_frontlight_top_message": "Frontlight intensity", diff --git a/products/BellHybrid/apps/application-bell-main/windows/BellHomeScreenWindow.cpp b/products/BellHybrid/apps/application-bell-main/windows/BellHomeScreenWindow.cpp index e5f2e5e57ba483fec2eed0c598c68d8fc251f394..6b8708297f7d8a43fc344c195dd51fe5df87e903 100644 --- a/products/BellHybrid/apps/application-bell-main/windows/BellHomeScreenWindow.cpp +++ b/products/BellHybrid/apps/application-bell-main/windows/BellHomeScreenWindow.cpp @@ -169,7 +169,7 @@ namespace gui { battery->setVisible(false); bottomBox->resizeItems(); - bottomText->setAlignment(Alignment(Alignment::Horizontal::Center, Alignment::Vertical::Top)); + bottomText->setAlignment(Alignment(Alignment::Horizontal::Center, Alignment::Vertical::Center)); bottomText->setFont(bellMainStyle::mainWindow::bottomDescription::font_small); bottomText->setRichText(desc); }