Can now set a color to another already existing color.
This commit is contained in:
parent
f4fa50a413
commit
379060b8c7
5 changed files with 69 additions and 81 deletions
|
@ -9,10 +9,10 @@ TEST_CASE("color palette test", "[color-palette]") {
|
|||
palette::init();
|
||||
sf::Color expect{10, 10, 10, 255};
|
||||
|
||||
auto gui_text = palette::get("gui/text:dark");
|
||||
auto gui_text = palette::get("gui/theme:dark_dark");
|
||||
REQUIRE(gui_text == expect);
|
||||
|
||||
gui_text = palette::get("gui/text", "mid");
|
||||
gui_text = palette::get("gui/theme", "mid");
|
||||
REQUIRE(gui_text != expect);
|
||||
|
||||
expect = {100, 100, 100, 255};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue