mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-24 05:47:58 -05:00
- add ChangeDateAndTimeWindow, - extract EventTimeItem to common widgets folder and rename it to TimeWidget, - extract EventDateItem to common widgets folder and rename it to DateWidget, - replace timeWidget with common TimeWidget in NightshiftWindow, - refactor time setting in DesktopMainWindow and TopBar, - Remove dead code from EventManager (GetNextAlarmTimestamp and HandleAlarmTrigger)
20 lines
943 B
C++
20 lines
943 B
C++
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
namespace style::window::date_and_time
|
|
{
|
|
inline constexpr auto leftMargin = 10;
|
|
inline constexpr auto height = 107;
|
|
inline constexpr auto topMargin = 20;
|
|
inline constexpr auto separator = 30;
|
|
inline constexpr auto time_input_12h_w = 120;
|
|
inline constexpr auto time_input_24h_w = 195;
|
|
inline constexpr auto hBox_h = height - 1.25 * topMargin;
|
|
inline constexpr auto listView_x = style::window::default_left_margin;
|
|
inline constexpr auto listView_y = style::header::height;
|
|
inline constexpr auto listView_w = style::listview::body_width_with_scroll;
|
|
inline constexpr auto listView_h = style::window_height - listView_y - style::footer::height;
|
|
} // namespace style::window::date_and_time
|