~aleteoryx/muditaos

1b9fad123273021688a0e6ac3ef56ca7aab11c53 — Adam Wulkiewicz 2 years ago 9a21889
[BH-1646] Center empty batter icon vertically on shutdown window

Set icon text visibility to false.
M products/BellHybrid/apps/application-bell-main/windows/BellBatteryShutdownWindow.cpp => products/BellHybrid/apps/application-bell-main/windows/BellBatteryShutdownWindow.cpp +3 -2
@@ 1,4 1,4 @@
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// Copyright (c) 2017-2023, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "windows/BellBatteryShutdownWindow.hpp"


@@ 24,7 24,8 @@ namespace gui

        auto icon =
            new Icon(this, 0, 0, style::window_width, style::window_height, "bell_battery_status_empty_W_M", {});
        icon->text->setFont(style::window::font::verybiglight);
        icon->text->setVisible(false);
        icon->resizeItems();
    }
    bool BellBatteryShutdownWindow::onInput(const InputEvent &)
    {