~aleteoryx/muditaos

ref: feec59f5346b7b993271b88d5e5f5495fe4a2895 muditaos/module-apps/application-alarm-clock/widgets/AlarmClockStyle.hpp -rw-r--r-- 1.7 KiB
feec59f5 — Lukasz Mastalerz [BH-1696] Notification when connect the device to the charger 2 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
// 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::alarmClock
{
    inline constexpr auto editAlarm = "Edit";
    inline constexpr auto newAlarm  = "New";

    namespace window
    {
        inline constexpr auto listView_x = style::window::default_left_margin;
        inline constexpr auto listView_y = style::window::default_vertical_pos;
        inline constexpr auto listView_w = style::listview::body_width_with_scroll;
        inline constexpr auto listView_h = style::window_height - listView_y - style::nav_bar::height;

        namespace name
        {
            inline constexpr auto newEditAlarm = "NewEditWindow";
            inline constexpr auto customRepeat = "CustomRepeat";
            inline constexpr auto dialogYesNo  = "DialogYesNo";
        } // namespace name

        namespace item
        {
            inline constexpr auto height       = 100;
            inline constexpr auto botMargin    = 4;
            inline constexpr auto imageMargin  = 150;
            inline constexpr auto timeHeight   = 60 - style::margins::small;
            inline constexpr auto periodHeight = 40;

            namespace time
            {
                inline constexpr auto width     = style::listview::item_width_with_without_scroll;
                inline constexpr auto height    = 80;
                inline constexpr auto marginTop = 32;
                inline constexpr auto marginBot = 20;
                inline constexpr auto separator = 30;
            } // namespace time
        }     // namespace item

    } // namespace window
} // namespace style::alarmClock