1// This file is part of SmallBASIC
2//
3// Copyright(C) 2001-2020 Chris Warren-Smith.
4//
5// This program is distributed under the terms of the GPL v2.0 or later
6// Download the GNU Public License (GPL) from www.gnu.org
7//
8
9#ifndef THEME_H
10#define THEME_H
11
12#define THEME_COLOURS 17
13#define NUM_THEMES 6
14
15extern unsigned g_themeId;
16extern int g_user_theme[];
17
18const char *themeName();
19
20struct EditTheme {
21 EditTheme();
22 EditTheme(int fg, int bg);
23 void setId(const unsigned themeId);
24 void selectTheme(const int theme[]);
25 void contrast(EditTheme *other);
26
27 int _color;
28 int _background;
29 int _selection_color;
30 int _selection_background;
31 int _number_color;
32 int _number_selection_color;
33 int _number_selection_background;
34 int _cursor_color;
35 int _cursor_background;
36 int _match_background;
37 int _row_cursor;
38 int _syntax_comments;
39 int _syntax_text;
40 int _syntax_command;
41 int _syntax_statement;
42 int _syntax_digit;
43 int _row_marker;
44};
45
46#endif
47