From 6f4631c8f82a2a631730767cad70c0b6ae02e0ad Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 02 Aug 2021 20:50:54 -0400 Subject: splash: New (WIP) screen --- (limited to 'src/defs.h') diff --git a/src/defs.h b/src/defs.h index 7fa89b4..0b7a47a 100644 --- a/src/defs.h +++ b/src/defs.h @@ -20,7 +20,40 @@ #ifndef MF_DEFS_H_ #define MF_DEFS_H_ +/* Window dimensions */ #define MF_WINDOW_W 640 /* Window width */ #define MF_WINDOW_H 480 /* Window height */ +/* Splash menu */ +#define MF_SPLASH_MAZE_CELL_W 16 /* Background maze cell width */ +#define MF_SPLASH_WINDOW_P 24 /* Window padding */ +#define MF_SPLASH_FORM_P 24 /* Form padding */ +#define MF_SPLASH_TITLE_M 24 /* Margin under title */ +#define MF_SPLASH_ROW_M 16 /* Margin between rows */ +#define MF_SPLASH_COL_M 16 /* Margin between labels and entries */ +#define MF_SPLASH_LBL_M 8 /* Margin between radio buttons and labels */ +#define MF_SPLASH_BOX_W 16 /* Radio button and check box width */ +#define MF_SPLASH_BOX_P 2 /* Radio button and check box padding */ +#define MF_SPLASH_BTN_P 8 /* Button padding */ +#define MF_SPLASH_TITLE_FONT_S 48 /* Title font size */ +#define MF_SPLASH_TEXT_FONT_S 16 /* Regular text font size */ + +/* Colors */ +#define MF_COLOR_BACK_R 0xAF /* Background color */ +#define MF_COLOR_BACK_G 0xAF +#define MF_COLOR_BACK_B 0xAF +#define MF_COLOR_BACK_A 0xFF +#define MF_COLOR_MAZE_R 0x00 /* Maze wall color */ +#define MF_COLOR_MAZE_G 0x00 +#define MF_COLOR_MAZE_B 0x00 +#define MF_COLOR_MAZE_A 0xFF +#define MF_COLOR_FORM_R 0xDF /* Text/button color */ +#define MF_COLOR_FORM_G 0xDF +#define MF_COLOR_FORM_B 0xDF +#define MF_COLOR_FORM_A 0xDF +#define MF_COLOR_FORE_R 0x00 /* Text/button color */ +#define MF_COLOR_FORE_G 0x00 +#define MF_COLOR_FORE_B 0x00 +#define MF_COLOR_FORE_A 0xFF + #endif /* MF_DEFS_H_ */ -- cgit v0.9.1