Skip to content

Commit

Permalink
fill some about menu info
Browse files Browse the repository at this point in the history
  • Loading branch information
igagis committed Sep 12, 2024
1 parent c4d2888 commit 9513334
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion src/bedsidemon/about_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
#include "about_menu.hpp"

#include <ruis/widget/label/text.hpp>
#include <ruis/widget/label/gap.hpp>

using namespace std::string_literals;

using namespace ruis::length_literals;

using namespace bedsidemon;

namespace m {
Expand All @@ -34,11 +37,45 @@ using namespace ruis::make;
namespace {
std::vector<utki::shared_ref<ruis::widget>> make_contents(utki::shared_ref<ruis::context> c)
{
constexpr auto font_size_program_title = 20_pp;
constexpr auto color_program_title = 0xff00ffff;

constexpr auto gap_paragraph = 20_pp;

// clang-format off
return {
m::text(c,
{
.color_params{
.color = color_program_title
},
.text_params{
.font_size = font_size_program_title
}
},
U"Bedside Patient Monitor DEMO program"s
),
m::gap(c,
{
.layout_params{
.dims = {0_px, gap_paragraph}
}
}
),
m::text(c,
{},
U"Version: TODO"s
),
m::gap(c,
{
.layout_params{
.dims = {0_px, gap_paragraph}
}
}
),
m::text(c,
{},
U"TODO:"s
U"Copyright (C) 2024 Gagistech Oy <[email protected]>"s
)
};
// clang-format on
Expand Down

0 comments on commit 9513334

Please sign in to comment.