mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-06-15 03:55:03 -04:00
35 lines
824 B
C++
35 lines
824 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 "gui/widgets/Image.hpp"
|
|
#include <log.hpp>
|
|
#include <application-desktop/windows/Names.hpp>
|
|
|
|
namespace gui
|
|
{
|
|
LogoWindow::LogoWindow(app::Application *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 */
|