Files
MuditaOS/module-apps/apps-common/notifications/NotificationTilesBox.cpp
Wojciech Rzepecki 097267d860 [EGD-6824] Simplified notifications on quote wallpaper
simplified home screen notifications as tiles on phone
locked wallpaper
2022-01-14 13:20:39 +01:00

23 lines
837 B
C++

// Copyright (c) 2017-2022, 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(notificationsPresenter)
{
setEdges(RectangleEdge::None);
setAlignment(Alignment(Alignment::Horizontal::Center, Alignment::Vertical::Top));
notificationsPresenter->attach(this);
}
} // namespace gui