Files
MuditaOS/module-apps/apps-common/options/OptionStyle.hpp
Marcin Zieliński 5b88233d37 [MOS-791] Introduce tri-state switch widget
Introduced the new logic.

From now on, every button can be tri-state, that is,
OFF/ON/Transiting whereas the Transiting state is
marked with the 'cheking...' caption written on the
button.
2022-11-09 13:32:21 +01:00

59 lines
1.4 KiB
C++

// 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>
#include <utf8/UTF8.hpp>
namespace gui::option
{
enum class Arrow : bool
{
Disabled,
Enabled
};
enum class ContactOperation
{
Add,
Details,
Edit
};
enum class SettingRightItem
{
Disabled,
ArrowBlack,
ArrowWhite,
Transiting,
On,
Off,
Bt,
Checked,
SIM1,
SIM2,
Text
};
enum class OptionRecordValidity
{
Uninitialized,
Invalid,
Valid
};
namespace window
{
inline constexpr gui::Length option_left_margin = 10;
inline constexpr gui::Length option_right_margin = 10;
inline constexpr gui::Length option_bottom_margin = style::margins::big;
inline constexpr uint32_t optionsListTopMargin = 10U;
inline constexpr uint32_t optionsListX = style::window::default_left_margin;
inline constexpr uint32_t optionsListY = style::window::default_vertical_pos + optionsListTopMargin;
inline constexpr uint32_t optionsListW = style::listview::body_width_with_scroll;
inline constexpr uint32_t optionsListH = style::window::default_body_height;
} // namespace window
} // namespace gui::option