Loading...
Searching...
No Matches
Go to the documentation of this file.
7#ifndef COMPONENTS_CONSTANTS_H__
8#define COMPONENTS_CONSTANTS_H__
11#define DISPLAY_WIDTH (640)
13#define DISPLAY_HEIGHT (480)
16#define DISPLAY_CENTER_X (DISPLAY_WIDTH / 2)
18#define DISPLAY_CENTER_Y (DISPLAY_HEIGHT / 2)
21#define OVERSCAN_WIDTH (32)
23#define OVERSCAN_HEIGHT (24)
26#define VISIBLE_AREA_X0 (OVERSCAN_WIDTH)
28#define VISIBLE_AREA_Y0 (OVERSCAN_HEIGHT)
30#define VISIBLE_AREA_X1 (DISPLAY_WIDTH - OVERSCAN_WIDTH)
32#define VISIBLE_AREA_Y1 (DISPLAY_HEIGHT - OVERSCAN_HEIGHT)
35#define VISIBLE_AREA_WIDTH (VISIBLE_AREA_X1 - VISIBLE_AREA_X0)
37#define VISIBLE_AREA_HEIGHT (VISIBLE_AREA_Y1 - VISIBLE_AREA_Y0)
40#define BORDER_THICKNESS (4)
42#define LAYOUT_ACTIONS_SEPARATOR_Y (400)
45#define SEEKBAR_HEIGHT (24)
47#define SEEKBAR_WIDTH (524)
49#define SEEKBAR_X (DISPLAY_CENTER_X - (SEEKBAR_WIDTH / 2))
51#define SEEKBAR_Y (VISIBLE_AREA_Y1 - SEEKBAR_HEIGHT - 80)
54#define LOADER_WIDTH (320)
56#define LOADER_HEIGHT (24)
58#define LOADER_X (DISPLAY_CENTER_X - (LOADER_WIDTH / 2))
60#define LOADER_Y (DISPLAY_CENTER_Y - (LOADER_HEIGHT / 2))
63#define MESSAGEBOX_MAX_WIDTH (360)
65#define MESSAGEBOX_MARGIN (32)
67#define TEXT_MARGIN_HORIZONTAL (10)
68#define TEXT_MARGIN_VERTICAL (7)
71#define BOXART_WIDTH (158)
73#define BOXART_HEIGHT (112)
75#define BOXART_X (VISIBLE_AREA_X1 - BOXART_WIDTH - 24)
77#define BOXART_Y (LAYOUT_ACTIONS_SEPARATOR_Y - BOXART_HEIGHT - 24)
80#define FILE_LIST_SCROLLBAR_WIDTH (12)
82#define FILE_LIST_SCROLLBAR_HEIGHT (LAYOUT_ACTIONS_SEPARATOR_Y - OVERSCAN_HEIGHT)
84#define FILE_LIST_SCROLLBAR_X (VISIBLE_AREA_X1 - FILE_LIST_SCROLLBAR_WIDTH)
86#define FILE_LIST_SCROLLBAR_Y (VISIBLE_AREA_Y0)
89#define FILE_LIST_ENTRIES (20)
91#define FILE_LIST_MAX_WIDTH (480)
92#define FILE_LIST_HIGHLIGHT_WIDTH (VISIBLE_AREA_X1 - VISIBLE_AREA_X0 - FILE_LIST_SCROLLBAR_WIDTH)
93#define FILE_LIST_HIGHLIGHT_X (VISIBLE_AREA_X0)
96#define BACKGROUND_EMPTY_COLOR RGBA32(0x00, 0x00, 0x00, 0xFF)
98#define BACKGROUND_OVERLAY_COLOR RGBA32(0x00, 0x00, 0x00, 0xA0)
101#define BORDER_COLOR RGBA32(0xFF, 0xFF, 0xFF, 0xFF)
104#define PROGRESSBAR_BG_COLOR RGBA32(0x00, 0x00, 0x00, 0xFF)
106#define PROGRESSBAR_DONE_COLOR RGBA32(0x3B, 0x7C, 0xF5, 0xFF)
109#define SCROLLBAR_BG_COLOR RGBA32(0x3F, 0x3F, 0x3F, 0xFF)
111#define SCROLLBAR_INACTIVE_COLOR RGBA32(0x5F, 0x5F, 0x5F, 0xFF)
113#define SCROLLBAR_POSITION_COLOR RGBA32(0x7F, 0x7F, 0x7F, 0xFF)
116#define DIALOG_BG_COLOR RGBA32(0x00, 0x00, 0x00, 0xFF)
119#define BOXART_LOADING_COLOR RGBA32(0x3F, 0x3F, 0x3F, 0xFF)
122#define FILE_LIST_HIGHLIGHT_COLOR RGBA32(0x3F, 0x3F, 0x3F, 0xFF)
125#define CONTEXT_MENU_HIGHLIGHT_COLOR RGBA32(0x3F, 0x3F, 0x3F, 0xFF)