UiColor.cxx 474 B

12345678910111213141516171819
  1. #include "UiColor.hxx"
  2. #include <format>
  3. std::string ui_image(std::string_view name, UiColor const color)
  4. {
  5. switch (color) {
  6. case UiColor::Blue:
  7. return std::format("blue_{}.png", name);
  8. case UiColor::Green:
  9. return std::format("green_{}.png", name);
  10. case UiColor::Grey:
  11. return std::format("grey_{}.png", name);
  12. case UiColor::Red:
  13. return std::format("red_{}.png", name);
  14. case UiColor::Yellow:
  15. return std::format("yellow_{}.png", name);
  16. }
  17. }