~aleteoryx/muditaos

ref: 80768bf4a59e43bd9c2eb9ca4cd30562a7a4ee74 muditaos/module-apps/application-call/data/CallAppStyle.hpp -rw-r--r-- 3.3 KiB
80768bf4 — Tomas Rogala [EGD-4708] Add backend of multiday events handling 5 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
// 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>

namespace callAppStyle
{
    namespace strings
    {
        inline constexpr auto call      = "app_call_call";
        inline constexpr auto clear     = "app_call_clear";
        inline constexpr auto reject    = "app_call_reject";
        inline constexpr auto answer    = "app_call_answer";
        inline constexpr auto message   = "app_call_message";
        inline constexpr auto endcall   = "app_call_end_call";
        inline constexpr auto emergency = "app_call_emergency";
        inline constexpr auto iscalling = "app_call_is_calling";
        inline constexpr auto calling   = "app_call_calling";
        inline constexpr auto callended = "app_call_call_ended";
        inline constexpr auto contact   = "app_call_contact";
        inline constexpr auto mute      = "app_call_mute";
        inline constexpr auto MUTED     = "app_call_muted";
        inline constexpr auto speaker   = "app_call_speaker";
        inline constexpr auto speakeron = "app_call_speaker_on";
        inline constexpr auto bluetooth = "app_call_bluetooth";
    } // namespace strings

    namespace numberLabel
    {
        inline constexpr auto x       = 60U;
        inline constexpr auto y       = 157U;
        inline constexpr auto w       = style::window_width - 2 * x;
        inline constexpr auto h       = 51U + 16U;
        inline constexpr auto borderW = 1U;
    } // namespace numberLabel

    namespace icon
    {
        inline constexpr auto x_margin = 20U;
    }

    // ENTER NUMBER WINDOW
    namespace enterNumberWindow
    {
        namespace newContactIcon
        {
            inline constexpr auto x = 190U - icon::x_margin;
            inline constexpr auto y = 411U;
        } // namespace newContactIcon
    }     // namespace enterNumberWindow

    // CALL WINDOW
    namespace callWindow
    {
        namespace imageCircleTop
        {
            inline constexpr auto x    = 116U; // TODO: should be 104 with final image
            inline constexpr auto y    = 59U;
            inline constexpr auto name = "circle_top";
        } // namespace imageCircleTop
        namespace imageCircleBottom
        {
            inline constexpr auto x    = 106U; // TODO: should be 104 with final image
            inline constexpr auto y    = 240U;
            inline constexpr auto name = "circle_bottom";
        } // namespace imageCircleBottom
        namespace durationLabel
        {
            inline constexpr auto x = 120U;
            inline constexpr auto y = 223U;
            inline constexpr auto w = 240U;
            inline constexpr auto h = 20U;
        } // namespace durationLabel
        namespace speakerIcon
        {
            inline constexpr auto x = 260U - icon::x_margin;
            inline constexpr auto y = 411U;
        } // namespace speakerIcon
        namespace microphoneIcon
        {
            inline constexpr auto x = 120U - icon::x_margin;
            inline constexpr auto y = 411U;
        } // namespace microphoneIcon
        namespace sendMessageIcon
        {
            inline constexpr auto x = 190U - icon::x_margin;
            inline constexpr auto y = 411U;
        } // namespace sendMessageIcon
    }     // namespace callWindow
} // namespace callAppStyle