Files
MuditaOS/module-gui/gui/widgets/Style.hpp
Alek-Mudita 1c6701ff2a Egd 516 enter number window (#89)
* EGD-516 fixed layout in enterwindow.
Gently refactor the code.
Minor enhancments.

* EGD-516 removed reinterpret casts from enterwindow

* EGD-516 added new contact icon

* EGD-516 added missing font and new Icon widget.

* EGD-516 fixed icon label alignment

* EGD-516 minor icon changes

* EGD-516 add CallAppStyle

* EGD-516 added icon styl to callappstyle
2019-11-27 14:15:40 +01:00

67 lines
2.1 KiB
C++

#pragma once
#include <inttypes.h>
#include <Label.hpp>
#include <string>
#include <Alignment.hpp>
namespace style {
const inline uint32_t window_height = 600;
const inline uint32_t window_width = 480;
namespace header {
namespace font {
const inline std::string time = "gt_pressura_regular_24";
const inline std::string title = "gt_pressura_bold_32";
}; // namespace font
}; // namespace header
namespace window {
const inline uint32_t default_left_margin = 30;
const inline uint32_t default_right_margin = 30;
const inline uint32_t default_border_focucs_w = 2;
const inline uint32_t default_border_no_focus_w = 0;
namespace font {
const inline std::string verybig = "gt_pressura_light_46";
const inline std::string bigbold = "gt_pressura_bold_30";
const inline std::string big = "gt_pressura_regular_30";
const inline std::string medium = "gt_pressura_regular_27";
const inline std::string small = "gt_pressura_regular_24";
const inline std::string verysmall = "gt_pressura_regular_20";
}; // namespace font
namespace label {
const inline uint32_t small_h = 33;
const inline uint32_t default_h = 50;
const inline uint32_t big_h = 55;
}; // namespace label
/// minimal label decoration - edges, focus & alignment
void decorate(gui::Label *el);
/// minimal label decoration for Option
void decorateOption(gui::Label *el);
}; // namespace window
namespace footer {
namespace font {
const inline std::string bold = "gt_pressura_bold_24";
const inline std::string medium = "gt_pressura_regular_24";
}; // namespace font
}; // namespace footer
namespace phonebook
{
namespace font
{
const inline std::string tiny = "gt_pressura_regular_16";
const inline std::string tinybold = "gt_pressura_bold_16";
const inline std::string tinylight = "gt_pressura_light_16";
}; // namespace font
}; // namespace phonebook
namespace color
{
const inline gui::Color lightgrey = gui::Color(3, 0);
}; // namespace color
namespace text
{
const inline gui::Alignment defaultTextAlignment = gui::Alignment(gui::Alignment::ALIGN_HORIZONTAL_LEFT, gui::Alignment::ALIGN_VERTICAL_BOTTOM);
};
}; // namespace style