1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#pragma once
namespace style
{
namespace messages
{
namespace threads
{
constexpr uint32_t listPositionX = style::window::default_left_margin;
// Magic 1 -> discussed with Design for proper alignment.
constexpr uint32_t ListPositionY = style::header::height - 1;
// Bottom margin need to be added to fit all elements.
constexpr uint32_t listHeight =
style::window_height - ListPositionY - style::footer::height + style::margins::small;
constexpr uint32_t listWidth = style::listview::body_width_with_scroll;
} // namespace threads
namespace threadItem
{
constexpr uint32_t topMargin = 16;
constexpr uint32_t bottomMargin = 13;
constexpr uint32_t leftMargin = 10;
constexpr uint32_t rightMargin = 10;
constexpr uint32_t timestampWidth = 100;
constexpr uint32_t cotactWidthOffset = timestampWidth + leftMargin + rightMargin;
constexpr uint32_t notSentIconWidth = 20;
constexpr uint32_t previewWidthOffset = leftMargin + rightMargin + 10;
} // namespace threadItem
namespace newMessage
{
namespace recipientLabel
{
constexpr uint32_t h = 42;
}
namespace recipientImg
{
constexpr uint32_t w = 32, h = 32;
}
namespace text
{
constexpr uint32_t h = 43;
}
namespace messageLabel
{
constexpr uint32_t h = 44;
}
} // namespace newMessage
namespace smsInput
{
constexpr uint32_t min_h = 40;
constexpr uint32_t default_input_w = 405;
constexpr uint32_t default_input_h = 30;
constexpr uint32_t bottom_padding = 5;
constexpr uint32_t max_input_h = default_input_h * 4 + bottom_padding;
constexpr uint32_t reply_bottom_margin = 5;
} // namespace smsInput
namespace templates
{
namespace list
{
constexpr uint32_t x = style::window::default_left_margin;
constexpr uint32_t y = style::header::height;
constexpr uint32_t h = style::window_height - y - style::footer::height;
constexpr uint32_t w = style::listview::body_width_with_scroll;
} // namespace list
} // namespace templates
} // namespace messages
} // namespace style