1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +02:00
vcmi/client/render/Colors.h
Ivan Savenko ffba847f40 xBRZ-upscaled images now support common palette-transform effects:
- Player coloring
- Flag color for map
- Glue selection for combat
2024-08-17 15:25:26 +00:00

59 lines
1.3 KiB
C++

/*
* Colors.h, part of VCMI engine
*
* Authors: listed in file AUTHORS in main folder
*
* License: GNU General Public License v2.0 or later
* Full text of license available in license.txt file, in main folder
*
*/
#pragma once
#include "../../lib/Color.h"
/**
* The colors class defines color constants of type ColorRGBA.
*/
class Colors
{
public:
/** the h3 yellow color, typically used for headlines */
static const ColorRGBA YELLOW;
/** the standard h3 white color */
static const ColorRGBA WHITE;
/** actual 100% white color */
static const ColorRGBA WHITE_TRUE;
/** the metallic gold color used mostly as a border around buttons */
static const ColorRGBA METALLIC_GOLD;
/** green color used for in-game console */
static const ColorRGBA GREEN;
/** the h3 orange color, used for blocked buttons */
static const ColorRGBA ORANGE;
/** the h3 bright yellow color, used for selection border */
static const ColorRGBA BRIGHT_YELLOW;
/** default key color for all 8 & 24 bit graphics */
static const ColorRGBA DEFAULT_KEY_COLOR;
/// Selected creature card
static const ColorRGBA RED;
/// Minimap border
static const ColorRGBA PURPLE;
static const ColorRGBA CYAN;
static const ColorRGBA BLACK;
static const ColorRGBA TRANSPARENCY;
/// parse color
static std::optional<ColorRGBA> parseColor(std::string text);
};