mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-19 22:49:06 -04:00
It appears in the past a major edit was made but had used a regex to change some text which resulted in an errant space between the enumuneration/struct/class name and the scope resolution operator. These errant spaces have been removed.
109 lines
3.8 KiB
C++
109 lines
3.8 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 <module-gui/gui/Common.hpp>
|
|
#include <Style.hpp>
|
|
|
|
namespace musicPlayerStyle
|
|
{
|
|
namespace common
|
|
{
|
|
constexpr gui::ImageTypeSpecifier imageType = gui::ImageTypeSpecifier::W_G;
|
|
}
|
|
|
|
namespace mainWindow
|
|
{
|
|
namespace startScreen
|
|
{
|
|
constexpr uint32_t noteUpMargin = 100;
|
|
constexpr uint32_t noteSize = 132;
|
|
constexpr uint32_t noteDownMargin = 28;
|
|
constexpr uint32_t descriptionWidth = 400;
|
|
constexpr uint32_t descriptionHeight = 66;
|
|
constexpr uint32_t descriptionBottomMargin = 40;
|
|
constexpr uint32_t buttonsBottomMargin = 40;
|
|
} // namespace startScreen
|
|
|
|
namespace trackInfoScreen
|
|
{
|
|
constexpr uint32_t topMargin = 110;
|
|
constexpr uint32_t titleWidth = 400;
|
|
constexpr uint32_t titleHeight = 40;
|
|
constexpr uint32_t internalMargin = 16;
|
|
constexpr uint32_t artistHeight = 30;
|
|
constexpr uint32_t swipeBarMargin = 65;
|
|
} // namespace trackInfoScreen
|
|
|
|
namespace musicLibraryScreen
|
|
{
|
|
constexpr uint32_t topArrowMargin = 15;
|
|
constexpr uint32_t emptyLibraryNoteMargin = 165;
|
|
constexpr uint32_t bottomArrowMargin = 15;
|
|
constexpr uint32_t optionListHeight = 280;
|
|
} // namespace musicLibraryScreen
|
|
|
|
namespace playButtons
|
|
{
|
|
constexpr uint32_t width = 330;
|
|
constexpr uint32_t height = 50;
|
|
constexpr uint32_t internalMargin = 10;
|
|
} // namespace playButtons
|
|
|
|
namespace lineArrow
|
|
{
|
|
constexpr uint32_t textWidth = 240;
|
|
constexpr uint32_t textHeight = 30;
|
|
constexpr uint32_t internalMargin = 12;
|
|
} // namespace lineArrow
|
|
|
|
namespace trackInfo
|
|
{
|
|
constexpr uint32_t topMargin = 125;
|
|
constexpr uint32_t width = 430;
|
|
constexpr uint32_t height = 45;
|
|
constexpr uint32_t internalMargin = 24;
|
|
} // namespace trackInfo
|
|
|
|
namespace trackProgress
|
|
{
|
|
constexpr uint32_t topMargin = 44;
|
|
constexpr uint32_t bottomMargin = 38;
|
|
constexpr uint32_t height = 60;
|
|
constexpr uint32_t barWidth = 419;
|
|
constexpr uint32_t barThickness = 3;
|
|
constexpr uint32_t barHeight = 15;
|
|
constexpr uint32_t bottomHeight = 45;
|
|
constexpr uint32_t descriptionWidth = 40;
|
|
constexpr uint32_t descriptionHeight = 24;
|
|
|
|
} // namespace trackProgress
|
|
} // namespace mainWindow
|
|
|
|
namespace allSongsWindow
|
|
{
|
|
constexpr uint32_t x = style::window::default_left_margin;
|
|
// Magic 1 -> discussed with Design for proper alignment.
|
|
constexpr uint32_t y = style::window::default_vertical_pos - 1;
|
|
constexpr uint32_t w = style::listview::body_width_with_scroll;
|
|
// Bottom margin need to be added to fit all elements.
|
|
constexpr uint32_t h = style::window_height - y - style::nav_bar::height + style::margins::small;
|
|
} // namespace allSongsWindow
|
|
|
|
namespace songItem
|
|
{
|
|
constexpr uint32_t w = style::window::default_body_width;
|
|
constexpr uint32_t h = 100;
|
|
|
|
constexpr uint32_t bold_text_h = 33;
|
|
constexpr uint32_t text_h = 33;
|
|
|
|
constexpr int32_t topMargin = 16;
|
|
constexpr int32_t leftMargin = 10;
|
|
constexpr int32_t rightMargin = 4;
|
|
|
|
} // namespace songItem
|
|
|
|
} // namespace musicPlayerStyle
|