~aleteoryx/muditaos

ref: 7597d388526c3f1d3c666964514db33bfcd6cf4d muditaos/module-apps/application-calllog/data/CallLogStyle.hpp -rw-r--r-- 1.7 KiB
7597d388 — Przemyslaw Brudny [EGD-7857] Renamed BottomBar to NavBar 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
// 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>

// CALL LOG STYLE
namespace callLogStyle
{
    namespace strings
    {
        inline constexpr auto privateNumber = "app_call_private_number";
    }
    // DETAILS WINDOW
    namespace detailsWindow
    {
        constexpr inline auto x = style::window::navBar::leftMargin;
        constexpr inline auto y = style::window::default_vertical_pos;
        constexpr inline auto w = style::window_width - 2 * x;
        constexpr inline auto h = style::window::default_body_height;

        namespace widget
        {
            constexpr inline auto h      = style::widgets::h;
            constexpr inline auto smallH = style::window::label::small_h;
        } // namespace widget

        namespace callData
        {
            constexpr inline auto columns = 2;
            constexpr inline auto rows    = 2;
            constexpr inline auto h       = rows * widget::h;
        } // namespace callData

        namespace date
        {
            constexpr inline auto rows = 2;
            constexpr inline auto h    = rows * widget::smallH;
        } // namespace date
    }     // namespace detailsWindow

    // MAIN WINDOW
    namespace mainWindow
    {
        constexpr inline uint32_t x = style::window::default_left_margin;
        constexpr inline uint32_t y = style::window::default_vertical_pos;
        constexpr inline uint32_t w = style::listview::body_width_with_scroll;
        constexpr inline uint32_t h = style::window_height - y - style::footer::height;
    } // namespace mainWindow

} // namespace callLogStyle