Files
MuditaOS/module-apps/application-phonebook/data/PhonebookStyle.hpp
Przemyslaw Brudny c82415e529 [EGD-7420] Phonebook multiple numbers selector
Added Phonebook multiple number selector.
2022-02-01 12:30:48 +01:00

148 lines
6.2 KiB
C++

// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include <Style.hpp>
#include <utf8/UTF8.hpp>
namespace phonebookStyle
{
namespace mainWindow
{
inline constexpr uint32_t default_x = style::window::default_left_margin;
inline constexpr uint32_t default_w =
style::window_width - style::window::default_left_margin - style::window::default_right_margin;
namespace contactsList
{
inline constexpr uint32_t x = style::window::default_left_margin;
inline constexpr uint32_t y = style::window::default_vertical_pos;
inline constexpr uint32_t w = style::listview::body_width_with_scroll;
inline constexpr uint32_t h = style::window_height - y - style::nav_bar::height;
} // namespace contactsList
} // namespace mainWindow
namespace newContactWindow
{
namespace newContactsList
{
inline constexpr uint32_t x = style::window::default_left_margin;
inline constexpr uint32_t y = style::window::default_vertical_pos;
inline constexpr uint32_t w = style::listview::body_width_with_scroll;
inline constexpr uint32_t h = style::window_height - y - style::nav_bar::height;
} // namespace newContactsList
} // namespace newContactWindow
namespace contactDetailsWindow
{
namespace contactDetailsList
{
inline constexpr uint32_t x = style::window::default_left_margin;
inline constexpr uint32_t y = style::window::default_vertical_pos + 74;
inline constexpr uint32_t w = style::listview::body_width_with_scroll;
inline constexpr uint32_t h = style::window_height - y - style::nav_bar::height;
} // namespace contactDetailsList
namespace contactDetailsListNoFlags
{
inline constexpr uint32_t x = style::window::default_left_margin;
inline constexpr uint32_t y = style::window::default_vertical_pos;
inline constexpr uint32_t w = style::listview::body_width_with_scroll;
inline constexpr uint32_t h = style::window_height - y - style::nav_bar::height;
} // namespace contactDetailsListNoFlags
} // namespace contactDetailsWindow
namespace searchResultsWindow
{
namespace searchResultList
{
inline constexpr uint32_t x = style::window::default_left_margin;
inline constexpr uint32_t y = style::window::default_vertical_pos;
inline constexpr uint32_t w = style::listview::body_width_with_scroll;
inline constexpr uint32_t h = style::window_height - y - style::nav_bar::height;
} // namespace searchResultList
} // namespace searchResultsWindow
namespace iceContactsWindow
{
namespace contactsListIce
{
inline constexpr uint32_t x = style::window::default_left_margin;
inline constexpr uint32_t y = style::window::default_vertical_pos;
inline constexpr uint32_t w = style::listview::body_width_with_scroll;
inline constexpr uint32_t h = style::window_height - y - style::nav_bar::height;
} // namespace contactsListIce
} // namespace iceContactsWindow
namespace contactItem
{
inline constexpr uint32_t w = style::window::default_body_width;
inline constexpr uint32_t h = style::window::label::big_h;
inline constexpr uint32_t blocked_right_margin = 5;
inline constexpr auto favourites_string = "Favourites";
} // namespace contactItem
namespace informationWidget
{
inline constexpr uint32_t w = style::window::default_body_width;
inline constexpr uint32_t title_label_h = 22;
inline constexpr uint32_t email_text_h = 35;
} // namespace informationWidget
namespace inputBoxWithLabelAndIconIWidget
{
inline constexpr uint32_t w = style::window::default_body_width;
inline constexpr uint32_t h = 50;
inline constexpr uint32_t input_box_w = 55;
inline constexpr uint32_t input_box_h = h;
inline constexpr int32_t input_box_right_margin = 20;
inline constexpr int32_t tick_image_left_margin = -64;
inline constexpr int32_t tick_image_right_margin = 32;
} // namespace inputBoxWithLabelAndIconIWidget
namespace inputLinesWithLabelWidget
{
inline constexpr uint32_t w = style::window::default_body_width;
inline constexpr uint32_t h = 67;
inline constexpr uint32_t title_label_h = 26;
inline constexpr uint32_t input_text_h = 33;
inline constexpr uint32_t span_size = 8;
inline constexpr uint32_t line_spacing = 15;
inline constexpr int32_t underline_padding = 4;
inline constexpr auto minimum_signs_limit = 31U;
inline constexpr auto medium_signs_limit = 40U;
inline constexpr auto max_signs_limit = 200U;
} // namespace inputLinesWithLabelWidget
namespace outputLinesTextWithLabelWidget
{
inline constexpr uint32_t w = style::window::default_body_width;
inline constexpr uint32_t h = 75;
inline constexpr uint32_t title_label_h = 22;
inline constexpr uint32_t input_text_h = 33;
inline constexpr uint32_t span_size = style::margins::huge;
} // namespace outputLinesTextWithLabelWidget
namespace numbersWithIconsWidget
{
inline constexpr uint32_t h = 55;
inline constexpr uint32_t sms_image_w = 55;
inline constexpr uint32_t sms_image_h = h;
inline constexpr uint32_t phone_image_w = 55;
inline constexpr uint32_t phone_image_h = h;
inline constexpr uint32_t phone_image_margin_left = 30;
inline constexpr uint32_t phone_image_margin_right = 15;
inline constexpr uint32_t number_text_h = h;
} // namespace numbersWithIconsWidget
namespace multipleNumbersWidget
{
inline constexpr auto height = 100U;
}
} // namespace phonebookStyle