~aleteoryx/muditaos

ref: 1f9c6b4a5174aab1e88ac5f3bba1e1bc791eb207 muditaos/module-gui/gui/widgets/status-bar/Style.hpp -rw-r--r-- 2.2 KiB
1f9c6b4a — Maciej-Mudita [MOS-26] Add tethering info on status bar 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
// 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>

namespace style::status_bar
{
#if DEVELOPER_SETTINGS_OPTIONS == 1
    extern gui::ImageTypeSpecifier imageTypeSpecifier;
#else
    inline constexpr auto imageTypeSpecifier = gui::ImageTypeSpecifier::W_G;
#endif

    namespace margins
    {
        inline constexpr auto iconBottom = 4u;
        inline constexpr auto textBottom = 4u;
        inline constexpr auto between    = 10u;
    }; // namespace margins
    namespace time
    {
        inline constexpr auto font          = style::window::font::small;
        inline constexpr auto maxX          = 100u;
        inline constexpr auto bottomPadding = 5u;
    }; // namespace time
    namespace nat
    {
        inline constexpr auto maxX = 35u;
        inline constexpr auto font = style::window::font::verysmall;
    }; // namespace nat
    namespace phonemode
    {
        inline constexpr auto maxX = 157u;
        inline constexpr auto font = style::window::font::verysmall;
    }; // namespace phonemode
    namespace tethering
    {
        inline constexpr auto maxX = 180u;
        inline constexpr auto font = style::window::font::verysmall;
    }; // namespace tethering
    namespace signal
    {
        inline constexpr auto font = style::window::font::verysmall;
        inline constexpr auto maxX = 80u;
    }; // namespace signal
    namespace battery
    {
        inline constexpr auto font = style::window::font::verysmall;
        inline constexpr auto maxX = 70U;
    }; // namespace battery
    namespace boxes
    {
        namespace left
        {
            inline constexpr auto minX = 170u;
            inline constexpr auto maxX = 205u;
        }; // namespace left
        namespace right
        {
            inline constexpr auto minX = 170u;
            inline constexpr auto maxX = 205u;
        }; // namespace right
        namespace center
        {
            inline constexpr auto maxX = time::maxX;
            inline constexpr auto minX = 30;
        }; // namespace center
    };     // namespace boxes

}; // namespace style::status_bar