~aleteoryx/muditaos

ref: 49336a492515c867912384b0cd26cd6cb46c70e3 muditaos/module-apps/application-settings-new/widgets/SettingsStyle.hpp -rw-r--r-- 8.0 KiB
49336a49 — Jakub Pyszczak [EGD-6325] Fix linker error gcc 10 4 years ago
                                                                                
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once
#include <Style.hpp>
#include <string>

namespace style
{
    namespace settings
    {
        namespace widget
        {
            namespace time
            {
                inline constexpr auto h                   = 107;
                inline constexpr auto description_label_h = 20;
                inline constexpr auto body_h              = h - description_label_h;
                inline constexpr auto separator_w         = 30;
                inline constexpr auto input_w             = 120;

                inline constexpr auto default_time_in_minutes = 720;
                inline constexpr auto max_hour                = 12;
                inline constexpr auto max_minutes             = 59;
                inline constexpr auto max_hour_string         = "12";
                inline constexpr auto max_minutes_string      = "59";
                inline constexpr auto default_input_string    = "00";
                inline constexpr auto before_noon             = "AM";
                inline constexpr auto after_noon              = "PM";
            } // namespace time

            namespace apnInputWidget
            {
                inline constexpr uint32_t w                = style::window::default_body_width;
                inline constexpr uint32_t h                = 63;
                inline constexpr uint32_t title_label_h    = 20;
                inline constexpr uint32_t input_text_h     = 37;
                inline constexpr uint32_t span_size        = 6;
                inline constexpr int32_t underline_padding = 4;
            } // namespace apnInputWidget
        }     // namespace widget

        namespace window
        {
            namespace leftArrowImage
            {
                inline constexpr auto x = style::window::default_left_margin;
                inline constexpr auto y = 62;
                inline constexpr auto w = 11;
                inline constexpr auto h = 13;
            } // namespace leftArrowImage

            namespace crossImage
            {
                inline constexpr auto x = style::window::default_left_margin + 20;
                inline constexpr auto y = 55;
                inline constexpr auto w = 24;
                inline constexpr auto h = 24;
            } // namespace crossImage
            namespace languageChange
            {
                inline constexpr auto options_posX             = 17;
                inline constexpr auto options_posY             = 100;
                inline constexpr auto options_distance_between = 60;
            } // namespace languageChange

            namespace torch
            {
                inline constexpr auto body_offset = 155;

                inline constexpr auto bar_y = 396;
                inline constexpr auto bar_h = 1;

                inline constexpr auto description_y = 425;
                inline constexpr auto description_h = 100;
            } // namespace torch

            namespace nightshift
            {
                inline constexpr auto body_offset = style::header::height + 16;

                inline constexpr auto separator_h = 55;
            } // namespace nightshift

            namespace newApn
            {
                inline constexpr uint32_t x = style::window::default_left_margin;
                inline constexpr uint32_t y = style::header::height;
                inline constexpr uint32_t w = style::listview::body_width_with_scroll;
                inline constexpr uint32_t h = style::window_height - y - style::footer::height;
            } // namespace newApn

            namespace bluetooth
            {
                namespace passkey
                {
                    namespace image
                    {
                        inline constexpr auto x = 176;
                        inline constexpr auto y = 132;
                    } // namespace image

                    namespace label
                    {
                        inline constexpr auto x = 150U;
                        inline constexpr auto y = 300U;
                        inline constexpr auto w = 200U;
                    } // namespace label

                    namespace text
                    {
                        inline constexpr auto x = 40U;
                        inline constexpr auto y = 370U;
                        inline constexpr auto w = style::window_width - 2 * x;
                        inline constexpr auto h = 52;
                    } // namespace text
                }     // namespace passkey
            }         // namespace bluetooth

            namespace offline
            {
                inline constexpr auto body_offset = 155;

                inline constexpr auto bar_y = 396;
                inline constexpr auto bar_h = 1;

                inline constexpr auto description_y = 375;
                inline constexpr auto description_h = 150;
            } // namespace offline

        }     // namespace window
    };        // namespace settings
    namespace quotes::categories
    {
        namespace list
        {
            inline constexpr auto X      = style::window::default_left_margin;
            inline constexpr auto Y      = style::header::height;
            inline constexpr auto Width  = style::listview::body_width_with_scroll;
            inline constexpr auto Height = style::window_height - Y - style::footer::height;
        } // namespace list

        inline constexpr auto cross_x = 48;
        inline constexpr auto cross_y = 55;
        inline constexpr auto arrow_x = 30;
        inline constexpr auto arrow_y = 62;

    } // namespace quotes::categories

    namespace certification
    {
        namespace textfc
        {
            inline constexpr auto x      = 30;
            inline constexpr auto y      = 128;
            inline constexpr auto width  = 128;
            inline constexpr auto height = 35;
        } // namespace textfc
        namespace valuefc
        {
            inline constexpr auto x      = 30;
            inline constexpr auto y      = 166;
            inline constexpr auto width  = 420;
            inline constexpr auto height = 33;
        } // namespace valuefc
        namespace imagefc
        {
            inline constexpr auto x      = 373;
            inline constexpr auto y      = 138;
            inline constexpr auto width  = 64;
            inline constexpr auto height = 44;
        } // namespace imagefc

        namespace textic
        {
            inline constexpr auto x      = 30;
            inline constexpr auto y      = 236;
            inline constexpr auto width  = 133;
            inline constexpr auto height = 35;
        } // namespace textic
        namespace valueic
        {
            inline constexpr auto x      = 30;
            inline constexpr auto y      = 274;
            inline constexpr auto width  = 420;
            inline constexpr auto height = 33;
        } // namespace valueic
        namespace imageic
        {
            inline constexpr auto x      = 373;
            inline constexpr auto y      = 239;
            inline constexpr auto width  = 64;
            inline constexpr auto height = 59;
        } // namespace imageic

        namespace textce
        {
            inline constexpr auto x      = 30;
            inline constexpr auto y      = 339;
            inline constexpr auto width  = 94;
            inline constexpr auto height = 35;
        } // namespace textce
        namespace valuece
        {
            inline constexpr auto x      = 30;
            inline constexpr auto y      = 382;
            inline constexpr auto width  = 420;
            inline constexpr auto height = 33;
        } // namespace valuece
        namespace imagece
        {
            inline constexpr auto x      = 373;
            inline constexpr auto y      = 354;
            inline constexpr auto width  = 64;
            inline constexpr auto height = 46;
        } // namespace imagece

    } // namespace certification
} // namespace style