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
// Copyright (c) 2017-2020, 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 musicPlayerStyle
{
namespace mainWindow
{
namespace songTitle
{
constexpr uint32_t x = 40;
constexpr uint32_t y = 110;
constexpr uint32_t w = 400;
constexpr uint32_t h = 35;
} // namespace songTitle
namespace songAuthor
{
constexpr uint32_t x = 40;
constexpr uint32_t y = 161;
constexpr uint32_t w = 400;
constexpr uint32_t h = 35;
} // namespace songAuthor
namespace songProgress
{
constexpr uint32_t x = 31;
constexpr uint32_t y = 232;
constexpr uint32_t w = 419;
constexpr uint32_t h = 12;
} // namespace songProgress
namespace songCurrentTime
{
constexpr uint32_t x = 30;
constexpr uint32_t y = 270;
constexpr uint32_t w = 100;
constexpr uint32_t h = 20;
} // namespace songCurrentTime
namespace songDuration
{
constexpr uint32_t x = 350;
constexpr uint32_t y = 278;
constexpr uint32_t w = 100;
constexpr uint32_t h = 20;
} // namespace songDuration
namespace rewind
{
constexpr uint32_t x = 84;
constexpr uint32_t y = 342;
} // namespace rewind
namespace fastForward
{
constexpr uint32_t x = 364;
constexpr uint32_t y = 342;
} // namespace fastForward
namespace action
{
constexpr uint32_t x = 224;
constexpr uint32_t y = 342;
} // namespace action
namespace musicLibrary
{
constexpr uint32_t x = 140;
constexpr uint32_t y = 456;
constexpr uint32_t w = 201;
constexpr uint32_t h = 20;
} // namespace musicLibrary
} // namespace mainWindow
namespace allSongsWindow
{
constexpr uint32_t x = style::window::default_left_margin;
// Magic 1 -> discussed with Design for proper alignment.
constexpr uint32_t y = style::header::height - 1;
constexpr uint32_t w = style::listview::body_width_with_scroll;
// Bottom margin need to be added to fit all elements.
constexpr uint32_t h = style::window_height - y - style::footer::height + style::margins::small;
} // namespace allSongsWindow
namespace emptyWindow
{
namespace noteImg
{
constexpr uint32_t x = 176;
constexpr uint32_t y = 102;
} // namespace noteImg
namespace placeHolderImg
{
constexpr uint32_t x = 80;
constexpr uint32_t y = 374;
} // namespace placeHolderImg
namespace infoText
{
constexpr uint32_t x = 40;
constexpr uint32_t y = 260;
constexpr uint32_t w = 400;
constexpr uint32_t h = 66;
} // namespace infoText
} // namespace emptyWindow
namespace songItem
{
constexpr uint32_t w = style::window::default_body_width;
constexpr uint32_t h = 100;
constexpr uint32_t bold_text_h = 24;
constexpr uint32_t text_h = 22;
constexpr uint32_t duration_w = 50;
constexpr int32_t topMargin = 18;
constexpr int32_t leftMargin = 10;
constexpr int32_t rightMargin = 10;
} // namespace songItem
namespace volumeLabel
{
constexpr uint32_t x = 0;
constexpr uint32_t y = 52;
constexpr uint32_t w = style::window_width;
constexpr uint32_t h = 52;
constexpr auto defaultVolumeLabelText = "Vol: 10";
constexpr int32_t topMargin = 0;
constexpr int32_t bottomMargin = 0;
constexpr int32_t leftMargin = 16;
constexpr int32_t rightMargin = 0;
} // namespace volumeLabel
} // namespace musicPlayerStyle