The Battle for Wesnoth  1.19.5+dev
standard_colors.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2008 - 2024
3  by Mark de Wever <koraq@xs4all.nl>
4  Part of the Battle for Wesnoth Project https://www.wesnoth.org/
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY.
12 
13  See the COPYING file for more details.
14 */
15 
16 #pragma once
17 
18 #include "color.hpp"
19 
20 namespace font {
21 
22 //
23 // TODO: these should probably all be constexpr
24 //
25 
26 extern const color_t
27  // These are GUI1 formatting colors and should be removed when GUI1 is
29  GRAY_COLOR,
31  GOOD_COLOR,
32  BAD_COLOR,
41 
42  // General purpose color values
50  race_color;
51 
52 /**
53  * Return the color the string represents. Return font::NORMAL_COLOR if
54  * the string is empty or can't be matched against any other color.
55  */
56 color_t string_to_color(const std::string &s);
57 
58 }
Graphical text output.
const color_t LABEL_COLOR
const color_t inactive_details_color
const color_t YELLOW_COLOR
const color_t BLACK_COLOR
const color_t BUTTON_COLOR
const color_t unit_type_color
const color_t GOOD_COLOR
const color_t BIGMAP_COLOR
const color_t inactive_ability_color
color_t string_to_color(const std::string &cmp_str)
Return the color the string represents.
const color_t BAD_COLOR
const color_t TITLE_COLOR
const color_t LOBBY_COLOR
const color_t GRAY_COLOR
const color_t DISABLED_COLOR
const color_t weapon_details_color
const color_t good_dmg_color
const color_t PETRIFIED_COLOR
const color_t NORMAL_COLOR
const color_t weapon_color
const color_t race_color
const color_t bad_dmg_color
The basic class for representing 8-bit RGB or RGBA colour values.
Definition: color.hpp:59
static map_location::direction s