~aleteoryx/muditaos

ref: 3ff04e06c9eab6de2c9a2ded0876bed2d87eab93 muditaos/module-apps/application-notes/style/NotePreviewStyle.hpp -rw-r--r-- 940 bytes
3ff04e06 — Maciej Gibowicz [BH-1944] Changing the rounding method for minutes in relaxation 1 year, 9 months 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
// 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 <module-gui/gui/widgets/Style.hpp>

namespace app::notes::style::preview
{
    constexpr inline auto LeftMargin = ::style::window::default_left_margin;
    constexpr inline auto TopMargin  = ::style::window::default_vertical_pos + ::style::margins::very_big - 1;
    constexpr inline auto Width      = ::style::window::default_body_width;
    constexpr inline auto Height     = ::style::window::default_body_height - ::style::margins::very_big;

    namespace date
    {
        constexpr inline auto Height = 30;
    } // namespace date
    namespace text
    {
        constexpr inline auto TopMargin = 7;
        constexpr inline auto Height    = ::app::notes::style::preview::Height - date::Height - TopMargin;
    } // namespace text
} // namespace app::notes::style::preview