~aleteoryx/muditaos

ref: 92a8a78ed46d6383ca23aad83ffdb35f9b61d0a4 muditaos/module-apps/application-calculator/widgets/CalculatorStyle.hpp -rw-r--r-- 2.2 KiB
92a8a78e — Marcin Smoczyński Merge branch 'master' into stable 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
// 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 <module-gui/gui/widgets/Style.hpp>

namespace style::calculator
{
    inline constexpr auto grid_cells        = 9;
    inline constexpr auto equals            = "app_calculator_equals";
    inline constexpr auto decimal_separator = "app_calculator_decimal_separator";

    namespace window
    {
        inline constexpr auto math_box_height      = 240;
        inline constexpr auto math_box_offset_top  = style::header::height + 200;
        inline constexpr auto math_box_cell_height = 80;
        inline constexpr auto math_box_cell_width  = style::window::default_body_width / 3;
        inline constexpr auto input_offset_top     = style::header::height + 20;
        inline constexpr auto input_height         = 100;
        inline constexpr auto input_width          = 380;
        inline constexpr auto input_margin         = 50;
    } // namespace window

    namespace symbols
    {
        namespace codes
        {
            inline constexpr auto plus           = 0x002B;
            inline constexpr auto minus          = 0x002D;
            inline constexpr auto division       = 0x00F7;
            inline constexpr auto multiplication = 0x00D7;
            inline constexpr auto full_stop      = 0x002E;
            inline constexpr auto comma          = 0x002C;
            inline constexpr auto equals         = 0x003D;
            inline constexpr auto zero           = 0x0030;
        } // namespace codes

        namespace strings
        {
            inline constexpr auto plus           = "\u002B";
            inline constexpr auto minus          = "\u002D";
            inline constexpr auto division       = "\u00F7";
            inline constexpr auto multiplication = "\u00D7";
            inline constexpr auto equals         = "\u003D";
            inline constexpr auto full_stop      = "\u002E";
            inline constexpr auto comma          = "\u002C";
            inline constexpr auto asterisk       = "\u002A";
            inline constexpr auto solidus        = "\u002F";
        } // namespace strings
    }     // namespace symbols
} // namespace style::calculator