From 95133349d6afb4a624dd302bef2b5ac8ef8fb85a Mon Sep 17 00:00:00 2001 From: Ivan Gagis Date: Thu, 12 Sep 2024 15:01:05 +0300 Subject: [PATCH] fill some about menu info --- src/bedsidemon/about_menu.cpp | 39 ++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/src/bedsidemon/about_menu.cpp b/src/bedsidemon/about_menu.cpp index 03e2e58..92707f1 100644 --- a/src/bedsidemon/about_menu.cpp +++ b/src/bedsidemon/about_menu.cpp @@ -22,9 +22,12 @@ along with this program. If not, see . #include "about_menu.hpp" #include +#include using namespace std::string_literals; +using namespace ruis::length_literals; + using namespace bedsidemon; namespace m { @@ -34,11 +37,45 @@ using namespace ruis::make; namespace { std::vector> make_contents(utki::shared_ref 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 "s ) }; // clang-format on