~aleteoryx/muditaos

ref: 3d13f10839e218b65dc247f03a15fb5dfa87bc8b muditaos/module-apps/application-music-player/data/MusicPlayerStyle.hpp -rw-r--r-- 3.8 KiB
3d13f108 — Bartosz [MOS-668] Modify USB notifications logging 3 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
// 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 <module-gui/gui/Common.hpp>
#include <Style.hpp>

namespace musicPlayerStyle
{
    namespace common
    {
        constexpr gui::ImageTypeSpecifier imageType = gui::ImageTypeSpecifier::W_G;
    }

    namespace mainWindow
    {
        namespace startScreen
        {
            constexpr uint32_t noteUpMargin            = 100;
            constexpr uint32_t noteSize                = 132;
            constexpr uint32_t noteDownMargin          = 28;
            constexpr uint32_t descriptionWidth        = 400;
            constexpr uint32_t descriptionHeight       = 66;
            constexpr uint32_t descriptionBottomMargin = 40;
            constexpr uint32_t buttonsBottomMargin     = 40;
        } // namespace startScreen

        namespace trackInfoScreen
        {
            constexpr uint32_t topMargin      = 110;
            constexpr uint32_t titleWidth     = 400;
            constexpr uint32_t titleHeight    = 40;
            constexpr uint32_t internalMargin = 16;
            constexpr uint32_t artistHeight   = 30;
            constexpr uint32_t swipeBarMargin = 65;
        } // namespace trackInfoScreen

        namespace musicLibraryScreen
        {
            constexpr uint32_t topArrowMargin         = 15;
            constexpr uint32_t emptyLibraryNoteMargin = 165;
            constexpr uint32_t bottomArrowMargin      = 15;
            constexpr uint32_t optionListHeight       = 280;
        } // namespace musicLibraryScreen

        namespace playButtons
        {
            constexpr uint32_t width          = 330;
            constexpr uint32_t height         = 50;
            constexpr uint32_t internalMargin = 10;
        } // namespace playButtons

        namespace lineArrow
        {
            constexpr uint32_t textWidth      = 240;
            constexpr uint32_t textHeight     = 30;
            constexpr uint32_t internalMargin = 12;
        } // namespace lineArrow

        namespace trackInfo
        {
            constexpr uint32_t topMargin      = 125;
            constexpr uint32_t width          = 430;
            constexpr uint32_t height         = 45;
            constexpr uint32_t internalMargin = 24;
        } // namespace trackInfo

        namespace trackProgress
        {
            constexpr uint32_t topMargin         = 44;
            constexpr uint32_t bottomMargin      = 38;
            constexpr uint32_t height            = 60;
            constexpr uint32_t barWidth          = 419;
            constexpr uint32_t barThickness      = 3;
            constexpr uint32_t barHeight         = 15;
            constexpr uint32_t bottomHeight      = 45;
            constexpr uint32_t descriptionWidth  = 40;
            constexpr uint32_t descriptionHeight = 24;

        } // namespace trackProgress
    }     // 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::window::default_vertical_pos - 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::nav_bar::height + style::margins::small;
    } // namespace allSongsWindow

    namespace songItem
    {
        constexpr uint32_t w = style::window::default_body_width;
        constexpr uint32_t h = 100;

        constexpr uint32_t bold_text_h = 33;
        constexpr uint32_t text_h      = 33;

        constexpr int32_t topMargin   = 16;
        constexpr int32_t leftMargin  = 10;
        constexpr int32_t rightMargin = 4;

    } // namespace songItem

} // namespace musicPlayerStyle