mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-21 07:28:21 -04:00
Added Dialog windows for "configuration successful" "no configuration" and "update OS" for Onboarding. Refactor Dialog window implementation and usage of DialogMetadata in other applications.
36 lines
797 B
C++
36 lines
797 B
C++
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
#include <BoxLayout.hpp>
|
|
#include <Text.hpp>
|
|
#include <Image.hpp>
|
|
|
|
namespace gui
|
|
{
|
|
namespace icon
|
|
{
|
|
inline constexpr auto image_top_margin = 30;
|
|
inline constexpr auto image_bottom_margin = 33;
|
|
} // namespace icon
|
|
|
|
class Icon : public VBox
|
|
{
|
|
public:
|
|
Icon(Item *parent,
|
|
const uint32_t &x,
|
|
const uint32_t &y,
|
|
const uint32_t &w,
|
|
const uint32_t &h,
|
|
const UTF8 &imageName,
|
|
const UTF8 &text);
|
|
|
|
~Icon() override = default;
|
|
|
|
Text *text = nullptr;
|
|
Image *image = nullptr;
|
|
};
|
|
|
|
}; // namespace gui
|