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 (6)
69#define TEXT_OFFSET_VERTICAL (1)
70#define TEXT_LINE_SPACING_ADJUST (0)
73#define BOXART_WIDTH (158)
75#define BOXART_HEIGHT (112)
77#define BOXART_X (VISIBLE_AREA_X1 - BOXART_WIDTH - 24)
79#define BOXART_Y (LAYOUT_ACTIONS_SEPARATOR_Y - BOXART_HEIGHT - 24)
82#define LIST_SCROLLBAR_WIDTH (12)
84#define LIST_SCROLLBAR_HEIGHT (LAYOUT_ACTIONS_SEPARATOR_Y - OVERSCAN_HEIGHT)
86#define LIST_SCROLLBAR_X (VISIBLE_AREA_X1 - LIST_SCROLLBAR_WIDTH)
88#define LIST_SCROLLBAR_Y (VISIBLE_AREA_Y0)
91#define LIST_ENTRIES (19)
93#define FILE_LIST_MAX_WIDTH (480)
94#define FILE_LIST_HIGHLIGHT_WIDTH (VISIBLE_AREA_X1 - VISIBLE_AREA_X0 - LIST_SCROLLBAR_WIDTH)
95#define FILE_LIST_HIGHLIGHT_X (VISIBLE_AREA_X0)
98#define BACKGROUND_EMPTY_COLOR RGBA32(0x00, 0x00, 0x00, 0xFF)
100#define BACKGROUND_OVERLAY_COLOR RGBA32(0x00, 0x00, 0x00, 0xA0)
103#define BORDER_COLOR RGBA32(0xFF, 0xFF, 0xFF, 0xFF)
106#define PROGRESSBAR_BG_COLOR RGBA32(0x00, 0x00, 0x00, 0xFF)
108#define PROGRESSBAR_DONE_COLOR RGBA32(0x3B, 0x7C, 0xF5, 0xFF)
111#define SCROLLBAR_BG_COLOR RGBA32(0x3F, 0x3F, 0x3F, 0xFF)
113#define SCROLLBAR_INACTIVE_COLOR RGBA32(0x5F, 0x5F, 0x5F, 0xFF)
115#define SCROLLBAR_POSITION_COLOR RGBA32(0x7F, 0x7F, 0x7F, 0xFF)
118#define DIALOG_BG_COLOR RGBA32(0x00, 0x00, 0x00, 0xFF)
121#define BOXART_LOADING_COLOR RGBA32(0x3F, 0x3F, 0x3F, 0xFF)
124#define FILE_LIST_HIGHLIGHT_COLOR RGBA32(0x3F, 0x3F, 0x3F, 0xFF)
127#define CONTEXT_MENU_HIGHLIGHT_COLOR RGBA32(0x3F, 0x3F, 0x3F, 0xFF)