Files
MuditaOS/module-apps/application-desktop/windows/LogoWindow.cpp
Marcin Smoczyński bd90e57516 [BH-907] Split utils module into components
Split module-utils into smaller components for better dependency
management. Fix many dependencies throughout the project.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-09-23 15:14:40 +02:00

36 lines
807 B
C++

// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "LogoWindow.hpp"
#include "Names.hpp"
#include <gui/widgets/Image.hpp>
#include <log/log.hpp>
namespace gui
{
LogoWindow::LogoWindow(app::ApplicationCommon *app) : AppWindow(app, app::window::name::logo_window)
{
buildInterface();
}
void LogoWindow::rebuild()
{
destroyInterface();
buildInterface();
}
void LogoWindow::buildInterface()
{
AppWindow::buildInterface();
bottomBar->setVisible(false);
statusBar->setVisible(false);
new gui::Image(this, 0, 0, 0, 0, "logo");
}
void LogoWindow::destroyInterface()
{
erase();
}
} /* namespace gui */