~aleteoryx/muditaos

muditaos/module-apps/application-notes/style/NotesListStyle.hpp -rw-r--r-- 1.5 KiB
a405cad6Aleteoryx trim readme 6 days 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
// Copyright (c) 2017-2024, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/blob/master/LICENSE.md

#pragma once

#include <module-gui/gui/widgets/Style.hpp>

namespace app::notes::style::list
{
    constexpr inline auto X      = ::style::window::default_left_margin;
    constexpr inline auto Y      = ::style::window::default_vertical_pos + ::style::margins::small - 1;
    constexpr inline auto Width  = ::style::listview::body_width_with_scroll;
    constexpr inline auto Height = ::style::window::default_body_height - ::style::margins::small;

    constexpr inline auto PenWidth        = 0;
    constexpr inline auto FocusedPenWidth = 0;

    namespace item
    {
        constexpr inline auto Height = 136;
        constexpr inline auto Radius = 0;

        constexpr inline auto VerticalPadding = 16;
        constexpr inline auto LeftPadding     = 10;
        constexpr inline auto RightPadding    = 4;
        namespace title
        {
            constexpr inline auto Width  = 310;
            constexpr inline auto Height = 33;
        } // namespace title

        namespace date
        {
            constexpr inline auto Width  = 90;
            constexpr inline auto Height = 20;
        } // namespace date

        namespace snippet
        {
            constexpr inline auto Width     = 417;
            constexpr inline auto Height    = 66;
            constexpr inline auto TopMargin = 5;
        } // namespace snippet
    }     // namespace item
} // namespace app::notes::style::list