Freeciv-3.2
Loading...
Searching...
No Matches
themecolors.h
Go to the documentation of this file.
1/**********************************************************************
2 Freeciv - Copyright (C) 2005 - The Freeciv Project
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12***********************************************************************/
13
14#ifndef FC__THEMECOLORS_H
15#define FC__THEMECOLORS_H
16
17#include "colors_common.h"
18
19/* The color system is designed on the assumption that almost, but
20 * not quite, all displays will be truecolor. */
21
33 COLOR_THEME_QUICK_INFO_BG, /* Quick info Background color */
34 COLOR_THEME_QUICK_INFO_FRAME, /* Quick info frame color */
35 COLOR_THEME_QUICK_INFO_TEXT, /* Quick info Text color */
39 COLOR_THEME_WIDGET_NORMAL_TEXT, /* currently not used */
40 COLOR_THEME_WIDGET_SELECTED_TEXT, /* currently not used */
41 COLOR_THEME_WIDGET_PRESSED_TEXT, /* currently not used */
42 COLOR_THEME_WIDGET_DISABLED_TEXT, /* text on disabled widgets */
44
47 COLOR_THEME_CITYDLG_CELEB, /* city celebrating color */
51 COLOR_THEME_CITYDLG_FOOD_SURPLUS, /* city food surplus color */
53 COLOR_THEME_CITYDLG_GOLD, /* city gold color */
56 COLOR_THEME_CITYDLG_HAPPY, /* city happy color */
57 COLOR_THEME_CITYDLG_IMPR, /* city improvements */
59 COLOR_THEME_CITYDLG_LUX, /* city luxuries color */
61 COLOR_THEME_CITYDLG_PROD, /* city production color */
62 COLOR_THEME_CITYDLG_SCIENCE, /* city science color */
66 COLOR_THEME_CITYDLG_SUPPORT, /* city units support color */
67 COLOR_THEME_CITYDLG_TRADE, /* city trade color */
68 COLOR_THEME_CITYDLG_UPKEEP, /* city upkeep color */
113 COLOR_THEME_PLRDLG_WAR_RESTRICTED, /* player at war but can't meet or get intel. data */
128
131
132struct color;
133struct theme_color_system;
134struct theme;
135
136struct color *theme_get_color(const struct theme *t, enum theme_color color);
137
138/* Functions used by the theme to allocate the color system. */
140
142
143#endif /* FC__THEMECOLORS_H */
void theme_color_system_free(struct theme_color_system *colors)
theme_color
Definition themecolors.h:22
@ COLOR_THEME_OPTIONDLG_WORKLISTLIST_TEXT
@ COLOR_THEME_HELPDLG_FRAME
Definition themecolors.h:86
@ COLOR_THEME_BACKGROUND
Definition themecolors.h:23
@ COLOR_THEME_SABOTAGEDLG_SEPARATOR
@ COLOR_THEME_ECONOMYDLG_TEXT
Definition themecolors.h:85
@ COLOR_THEME_SCIENCEDLG_MED_TECHICON_BG
@ COLOR_THEME_DIPLODLG_MEETING_TEXT
Definition themecolors.h:81
@ COLOR_THEME_HELPDLG_TEXT
Definition themecolors.h:90
@ COLOR_THEME_PLRDLG_CEASEFIRE
@ COLOR_THEME_CITYDLG_CELEB
Definition themecolors.h:47
@ COLOR_THEME_HELPDLG_LINE3
Definition themecolors.h:89
@ COLOR_THEME_ADVANCEDTERRAINDLG_TEXT
Definition themecolors.h:45
@ COLOR_THEME_PLRDLG_ALLIANCE
@ COLOR_THEME_OPTIONDLG_WORKLISTLIST_FRAME
@ COLOR_THEME_PLRDLG_FRAME
@ COLOR_THEME_UNITUPGRADE_TEXT
@ COLOR_THEME_MAPVIEW_UNITINFO_VETERAN_TEXT
Definition themecolors.h:96
@ COLOR_THEME_CITYDLG_INFOPANEL
Definition themecolors.h:58
@ COLOR_THEME_LABEL_BAR
Definition themecolors.h:32
@ COLOR_THEME_CUSTOM_WIDGET_PRESSED_FRAME
Definition themecolors.h:28
@ COLOR_THEME_WARDLG_TEXT
@ COLOR_THEME_CITYDLG_SELL
Definition themecolors.h:63
@ COLOR_THEME_WIDGET_NORMAL_TEXT
Definition themecolors.h:39
@ COLOR_THEME_NATIONDLG_LEGEND
@ COLOR_THEME_CITYDLG_FOODPERTURN
Definition themecolors.h:49
@ COLOR_THEME_CONNECTDLG_INNERFRAME
Definition themecolors.h:77
@ COLOR_THEME_MAPVIEW_INFO_TEXT
Definition themecolors.h:94
@ COLOR_THEME_CITYDLG_IMPR
Definition themecolors.h:57
@ COLOR_THEME_UNITSREP_FRAME
@ COLOR_THEME_CITYDLG_BUY
Definition themecolors.h:46
@ COLOR_THEME_UNITDISBAND_TEXT
@ COLOR_THEME_CITYREP_FRAME
Definition themecolors.h:70
@ COLOR_THEME_WIDGET_DISABLED_TEXT
Definition themecolors.h:42
@ COLOR_THEME_DIPLODLG_MEETING_HEADING_TEXT
Definition themecolors.h:80
@ COLOR_THEME_PLRDLG_PEACE
@ COLOR_THEME_CITYDLG_SHIELDSTOCK
Definition themecolors.h:64
@ COLOR_THEME_CITYDLG_LUX
Definition themecolors.h:59
@ COLOR_THEME_PLRDLG_TEXT
@ COLOR_THEME_ECONOMYDLG_FRAME
Definition themecolors.h:83
@ COLOR_THEME_EDITFIELD_CARET
Definition themecolors.h:31
@ COLOR_THEME_NATIONDLG_TEXT
@ COLOR_THEME_CITYDLG_TRADE
Definition themecolors.h:67
@ COLOR_THEME_CITYDLG_PROD
Definition themecolors.h:61
@ COLOR_THEME_JOINGAMEDLG_TEXT
Definition themecolors.h:92
@ COLOR_THEME_MESWIN_ACTIVE_TEXT
Definition themecolors.h:97
@ COLOR_THEME_WIDGET_SELECTED_TEXT
Definition themecolors.h:40
@ COLOR_THEME_WIDGET_PRESSED_TEXT
Definition themecolors.h:41
@ COLOR_THEME_NATIONDLG_FRAME
@ COLOR_THEME_SELLIMPR_TEXT
@ COLOR_THEME_MESWIN_FRAME
Definition themecolors.h:99
@ COLOR_THEME_CMA_FRAME
Definition themecolors.h:74
@ COLOR_THEME_CITYDLG_GROWTH
Definition themecolors.h:55
@ COLOR_THEME_CUSTOM_WIDGET_PRESSED_TEXT
Definition themecolors.h:29
@ COLOR_THEME_UNITSREP_TEXT
@ COLOR_THEME_PLRDLG_WAR_RESTRICTED
@ COLOR_THEME_DIPLODLG_TEXT
Definition themecolors.h:82
@ COLOR_THEME_THEMELABEL2_BG
Definition themecolors.h:38
@ COLOR_THEME_PLRDLG_WAR
@ COLOR_THEME_CITYDLG_SUPPORT
Definition themecolors.h:66
@ COLOR_THEME_NEWCITYDLG_TEXT
@ COLOR_THEME_CUSTOM_WIDGET_DISABLED_TEXT
Definition themecolors.h:30
@ COLOR_THEME_MAPVIEW_INFO_FRAME
Definition themecolors.h:93
@ COLOR_THEME_REVOLUTIONDLG_TEXT
@ COLOR_THEME_HELPDLG_LINE
Definition themecolors.h:87
@ COLOR_THEME_PLRDLG_ARMISTICE
@ COLOR_THEME_CITYREP_FOODSTOCK
Definition themecolors.h:69
@ COLOR_THEME_ECONOMYDLG_NEG_TEXT
Definition themecolors.h:84
@ COLOR_THEME_SELECTIONRECTANGLE
Definition themecolors.h:36
@ COLOR_THEME_CITYDLG_GRANARY
Definition themecolors.h:54
@ COLOR_THEME_CITYREP_TEXT
Definition themecolors.h:72
@ COLOR_THEME_HELPDLG_LINE2
Definition themecolors.h:88
@ COLOR_THEME_CITYDLG_HAPPY
Definition themecolors.h:56
@ COLOR_THEME_CITYDLG_SCIENCE
Definition themecolors.h:62
@ COLOR_THEME_QUICK_INFO_TEXT
Definition themecolors.h:35
@ COLOR_THEME_CONNECTDLG_FRAME
Definition themecolors.h:76
@ COLOR_THEME_CITYDLG_CORRUPTION
Definition themecolors.h:48
@ COLOR_THEME_CUSTOM_WIDGET_SELECTED_FRAME
Definition themecolors.h:26
@ COLOR_THEME_USERPASSWDDLG_FRAME
@ COLOR_THEME_LAST
@ COLOR_THEME_CONNLISTDLG_FRAME
Definition themecolors.h:79
@ COLOR_THEME_JOINGAMEDLG_FRAME
Definition themecolors.h:91
@ COLOR_THEME_USERPASSWDDLG_TEXT
@ COLOR_THEME_CITYDLG_FOODSTOCK
Definition themecolors.h:50
@ COLOR_THEME_MESWIN_ACTIVE_TEXT2
Definition themecolors.h:98
@ COLOR_THEME_SCIENCEDLG_FRAME
@ COLOR_THEME_WLDLG_FRAME
@ COLOR_THEME_CITYREP_TRADE
Definition themecolors.h:73
@ COLOR_THEME_CUSTOM_WIDGET_SELECTED_TEXT
Definition themecolors.h:27
@ COLOR_THEME_SCIENCEDLG_TEXT
@ COLOR_THEME_CITYDLG_GOLD
Definition themecolors.h:53
@ COLOR_THEME_CITYREP_PROD
Definition themecolors.h:71
@ COLOR_THEME_CITYDLG_STOCKS
Definition themecolors.h:65
@ COLOR_THEME_CITYDLG_UPKEEP
Definition themecolors.h:68
@ COLOR_THEME_QUICK_INFO_BG
Definition themecolors.h:33
@ COLOR_THEME_CITYDLG_FRAME
Definition themecolors.h:52
@ COLOR_THEME_WINDOW_TITLEBAR_SEPARATOR
Definition themecolors.h:43
@ COLOR_THEME_CITYDLG_FOOD_SURPLUS
Definition themecolors.h:51
@ COLOR_THEME_CITYDLG_PANEL
Definition themecolors.h:60
@ COLOR_THEME_CHECKBOX_LABEL_TEXT
Definition themecolors.h:24
@ COLOR_THEME_CUSTOM_WIDGET_NORMAL_TEXT
Definition themecolors.h:25
@ COLOR_THEME_MAPVIEW_UNITINFO_TEXT
Definition themecolors.h:95
@ COLOR_THEME_QUICK_INFO_FRAME
Definition themecolors.h:34
@ COLOR_THEME_CONNECTDLG_LABELFRAME
Definition themecolors.h:78
@ COLOR_THEME_CMA_TEXT
Definition themecolors.h:75
@ COLOR_THEME_TEXT
Definition themecolors.h:37
struct theme_color_system * theme_color_system_read(struct section_file *file)
struct color * theme_get_color(const struct theme *t, enum theme_color color)
Definition colors.h:21
struct rgbacolor colors[COLOR_THEME_LAST]
Definition themecolors.c:36