freepassport-c/src/theme.h

70 lines
3.5 KiB
C
Raw Normal View History

2026-03-27 21:45:40 -04:00
#ifndef THEME_H
#define THEME_H
#include <SDL2/SDL.h>
typedef enum AppMode {
MODE_FULLSCREEN = 0,
MODE_GUIDE = 1
} AppMode;
static const SDL_Color COLOR_DEEP_BLUE = {0x00, 0x33, 0x99, 0xff};
static const SDL_Color COLOR_HIGHLIGHT_YELLOW = {0xff, 0xd7, 0x00, 0xff};
static const SDL_Color COLOR_HINT_RED = {0xcc, 0x00, 0x00, 0xff};
static const SDL_Color COLOR_NAVY_DARK = {0x05, 0x16, 0x46, 0xff};
static const SDL_Color COLOR_SLATE = {0x52, 0x67, 0x96, 0xff};
static const SDL_Color COLOR_PALE_BLUE = {0xcc, 0xd8, 0xf3, 0xff};
static const SDL_Color COLOR_TEXT_LIGHT = {0xf5, 0xf7, 0xfa, 0xff};
static const SDL_Color COLOR_TEXT_DARK = {0x0b, 0x11, 0x1d, 0xff};
static const SDL_Color COLOR_BLACK = {0x00, 0x00, 0x00, 0xff};
2026-03-27 23:33:09 -04:00
static const SDL_Color COLOR_HEADER_SILVER = {0xe6, 0xe6, 0xe6, 0xff};
2026-03-28 00:08:52 -04:00
static const SDL_Color COLOR_SELECTED_ROW = {0x14, 0x0d, 0x23, 0xff};
2026-03-27 23:33:09 -04:00
static const SDL_Color COLOR_UNSELECTED_ROW = {0x33, 0x44, 0x66, 0xff};
2026-03-28 00:08:52 -04:00
static const SDL_Color COLOR_GUIDE_TOP = {0x4b, 0x3d, 0x8f, 0xff};
static const SDL_Color COLOR_GUIDE_BOTTOM = {0x2e, 0x24, 0x5e, 0xff};
2026-03-27 23:33:09 -04:00
static const SDL_Color COLOR_GRID_LINE = {0x89, 0xa0, 0xc5, 0xff};
static const SDL_Color COLOR_PANEL_TEXT = {0x12, 0x18, 0x24, 0xff};
static const SDL_Color COLOR_PANEL_SHADOW = {0x00, 0x00, 0x00, 0x60};
static const SDL_Color COLOR_STATUS_DIVIDER = {0xb0, 0xb8, 0xc7, 0xff};
static const SDL_Color COLOR_BLOCK_UNSELECTED = {0x1f, 0x5d, 0xc1, 0xff};
static const SDL_Color COLOR_BLOCK_SELECTED = {0xff, 0xd7, 0x00, 0xff};
static const SDL_Color COLOR_SELECTION_EDGE = {0xff, 0xf1, 0x8b, 0xff};
2026-03-28 00:08:52 -04:00
static const SDL_Color COLOR_BORDER_DARK = {0x5b, 0x63, 0x72, 0xff};
static const SDL_Color COLOR_GLOSS = {0xff, 0xff, 0xff, 0x80};
static const SDL_Color COLOR_RIBBON_TOP = {0x44, 0x2a, 0x88, 0xff};
static const SDL_Color COLOR_RIBBON_BOTTOM = {0x1a, 0x1f, 0x63, 0xff};
static const SDL_Color COLOR_ROW_TOP = {0x4f, 0x5e, 0x85, 0xff};
static const SDL_Color COLOR_ROW_MID = {0x39, 0x49, 0x72, 0xff};
static const SDL_Color COLOR_ROW_BOTTOM = {0x25, 0x31, 0x4f, 0xff};
static const SDL_Color COLOR_ROW_ACTIVE_TOP = {0x34, 0x24, 0x55, 0xff};
static const SDL_Color COLOR_ROW_ACTIVE_MID = {0x18, 0x10, 0x2e, 0xff};
static const SDL_Color COLOR_ROW_ACTIVE_BOTTOM = {0x0a, 0x07, 0x16, 0xff};
static const SDL_Color COLOR_BLOCK_TOP = {0x66, 0x8d, 0xe8, 0xff};
static const SDL_Color COLOR_BLOCK_MID = {0x3b, 0x69, 0xd5, 0xff};
static const SDL_Color COLOR_BLOCK_BOTTOM = {0x1a, 0x42, 0x9c, 0xff};
static const SDL_Color COLOR_BLOCK_ACTIVE_TOP = {0xff, 0xef, 0xa2, 0xff};
static const SDL_Color COLOR_BLOCK_ACTIVE_MID = {0xff, 0xdb, 0x48, 0xff};
static const SDL_Color COLOR_BLOCK_ACTIVE_BOTTOM = {0xd1, 0x9f, 0x00, 0xff};
static const SDL_Color COLOR_ACTIVE_TEXT = {0xff, 0xcc, 0x00, 0xff};
static const SDL_Color COLOR_ROW_LINE_HI = {0x6a, 0x5c, 0xa9, 0xff};
static const SDL_Color COLOR_ROW_LINE_LO = {0x1f, 0x17, 0x43, 0xff};
static const SDL_Color COLOR_BUTTON_BAR_TOP = {0xf3, 0xf3, 0xf3, 0xff};
static const SDL_Color COLOR_BUTTON_BAR_BOTTOM = {0xc7, 0xcc, 0xd6, 0xff};
static const SDL_Color COLOR_PILL_LIGHT = {0xfa, 0xfb, 0xff, 0xff};
static const SDL_Color COLOR_PILL_SHADOW = {0x00, 0x00, 0x00, 0x40};
2026-03-27 21:45:40 -04:00
#define WINDOW_WIDTH 1280
#define WINDOW_HEIGHT 720
#define GUIDE_VISIBLE_ROWS 5
#define TIMELINE_VISIBLE_SECONDS (90.0 * 60.0)
2026-03-27 23:33:09 -04:00
#define GUIDE_INFO_WIDTH 390
#define GUIDE_PREVIEW_WIDTH 430
#define GUIDE_PREVIEW_HEIGHT 194
#define GUIDE_STATUS_HEIGHT 42
#define GUIDE_GRID_TOP 212
#define GUIDE_FOOTER_HEIGHT 54
#define GUIDE_SIDEBAR_WIDTH 246
#define GUIDE_X_START 258
#define GUIDE_INFO_HEIGHT 184
2026-03-27 21:45:40 -04:00
#endif