mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-02 19:08:54 -05:00
* Added notification showing on the main screen if the battery has reached too high temperature to continue charging. * Code cleanups.
23 lines
854 B
C++
23 lines
854 B
C++
// Copyright (c) 2017-2023, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#include "NotificationTilesBox.hpp"
|
|
|
|
#include <widgets/Style.hpp>
|
|
#include <Image.hpp>
|
|
#include <Style.hpp>
|
|
|
|
namespace gui
|
|
{
|
|
NotificationTilesBox::NotificationTilesBox(Item *parent,
|
|
std::shared_ptr<NotificationTilesPresenter> notificationsPresenter)
|
|
: HBox(
|
|
parent, 0, 0, ::style::window::default_body_width, ::style::wallpaper::notificationTiles::tileIconHeight),
|
|
notificationsPresenter(std::move(notificationsPresenter))
|
|
{
|
|
setEdges(RectangleEdge::None);
|
|
setAlignment(Alignment(Alignment::Horizontal::Center, Alignment::Vertical::Top));
|
|
this->notificationsPresenter->attach(this);
|
|
}
|
|
} // namespace gui
|