Can now set a color to another already existing color.

This commit is contained in:
Zed A. Shaw 2025-07-17 12:39:24 -04:00
parent f4fa50a413
commit 379060b8c7
5 changed files with 69 additions and 81 deletions

View file

@ -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};