summaryrefslogtreecommitdiffstats
path: root/src/defs.h
blob: eefe893a502a509ff540eb5a99d1820ac079f397 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
 * Copyright (C) 2021  P. J. McDermott
 *
 * This file is part of Dodge Balls
 *
 * Dodge Balls is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Dodge Balls is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Dodge Balls.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef DB_DEFS_H_
#define DB_DEFS_H_

#define DB_WINDOW_W 640              /* Window width */
#define DB_WINDOW_H 480              /* Window height */
#define DB_WINDOW_P  16              /* Window padding */
#define DB_MARGIN    16              /* Margin between elements */
#define DB_SCROLL_W  16              /* Scroll button width */
#define DB_SCROLL_H DB_SCROLL_W / 2  /* Scroll button height */
#define DB_SCROLL_S  16              /* Scrolling step */

#define DB_FONT_TITLE_SIZE 48  /* Title font size */
#define DB_FONT_TEXT_SIZE  16  /* Regular text font size */

#define DB_COLOR_BACK_R 0x7F  /* Background color */
#define DB_COLOR_BACK_G 0x7F
#define DB_COLOR_BACK_B 0x7F
#define DB_COLOR_BACK_A 0xFF
#define DB_COLOR_FORE_R 0x00  /* Text/button color */
#define DB_COLOR_FORE_G 0x00
#define DB_COLOR_FORE_B 0xFF
#define DB_COLOR_FORE_A 0xFF
#define DB_COLOR_ACTV_R 0xFF  /* Active/hovered color */
#define DB_COLOR_ACTV_G 0xFF
#define DB_COLOR_ACTV_B 0xFF
#define DB_COLOR_ACTV_A 0xFF
#define DB_COLOR_DISA_R 0x3F  /* Disabled color */
#define DB_COLOR_DISA_G 0x3F
#define DB_COLOR_DISA_B 0x7F
#define DB_COLOR_DISA_A 0xFF

#endif  /* DB_DEFS_H_ */