From f6b789285bf65121dd4ffc82a72091f5e1a2380a Mon Sep 17 00:00:00 2001 From: Tomasz Rybarski Date: Wed, 5 Jan 2022 16:07:50 +0100 Subject: [PATCH] [BH-1345] Fix Broken Text During Charging Bottom Box is widened for Bottom description --- module-apps/apps-common/widgets/BellBaseLayout.hpp | 2 +- .../application-bell-main/windows/BellHomeScreenWindow.cpp | 4 +++- .../application-bell-main/windows/BellHomeScreenWindow.hpp | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/module-apps/apps-common/widgets/BellBaseLayout.hpp b/module-apps/apps-common/widgets/BellBaseLayout.hpp index ad11785331c918e53c0dd764d3001c1108e7d958..872bc6a8b31456dc596a1888cac8a1d7447d661c 100644 --- a/module-apps/apps-common/widgets/BellBaseLayout.hpp +++ b/module-apps/apps-common/widgets/BellBaseLayout.hpp @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved. +// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #pragma once diff --git a/products/BellHybrid/apps/application-bell-main/windows/BellHomeScreenWindow.cpp b/products/BellHybrid/apps/application-bell-main/windows/BellHomeScreenWindow.cpp index b792d9cc2a566100e2b5dc66423fe07d0968ba48..d78122ee6199131d67c542900c6ae825d28202a2 100644 --- a/products/BellHybrid/apps/application-bell-main/windows/BellHomeScreenWindow.cpp +++ b/products/BellHybrid/apps/application-bell-main/windows/BellHomeScreenWindow.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved. +// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #include "BellHomeScreenWindow.hpp" @@ -188,6 +188,7 @@ namespace gui void BellHomeScreenWindow::setTemperature(utils::temperature::Temperature newTemp) { #if CONFIG_ENABLE_TEMP == 1 + bottomText->setVisible(true); bottomText->setFont(bellMainStyle::mainWindow::bottomDescription::font_normal); bottomText->setAlignment(Alignment(Alignment::Horizontal::Center, Alignment::Vertical::Center)); bottomText->setText(utils::temperature::tempToStrDec(newTemp)); @@ -201,6 +202,7 @@ namespace gui void BellHomeScreenWindow::setBottomDescription(const UTF8 &desc) { battery->setVisible(false); + battery->informContentChanged(); bottomText->setVisible(true); bottomText->setAlignment(Alignment(Alignment::Horizontal::Center, Alignment::Vertical::Center)); bottomText->setFont(bellMainStyle::mainWindow::bottomDescription::font_small); diff --git a/products/BellHybrid/apps/application-bell-main/windows/BellHomeScreenWindow.hpp b/products/BellHybrid/apps/application-bell-main/windows/BellHomeScreenWindow.hpp index 0a8f891002d554df69ef2e8afd5d128b76908430..dd83e7bad7f44ce3f21b52bf7d5e9a98bcbfef17 100644 --- a/products/BellHybrid/apps/application-bell-main/windows/BellHomeScreenWindow.hpp +++ b/products/BellHybrid/apps/application-bell-main/windows/BellHomeScreenWindow.hpp @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved. +// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #pragma once