52 if (cmp_str ==
"green") {
55 if (cmp_str ==
"red") {
58 if (cmp_str ==
"black") {
61 if (cmp_str ==
"yellow") {
64 if (cmp_str ==
"white") {
67 if (cmp_str ==
"blue") {
71 if (cmp_str.size() == 7 && cmp_str.at(0) ==
'#') {
74 }
else if (cmp_str.size() == 6) {
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 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 TITLE_COLOR
const color_t GREEN_COLOR
const color_t LOBBY_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 INACTIVE_COLOR
const color_t bad_dmg_color
The basic class for representing 8-bit RGB or RGBA colour values.
static color_t from_hex_string(std::string_view c)
Creates a new color_t object from a string variable in hex format.
constexpr color_t inverse() const