7#include "../utility/utility.hpp"
8#include "../macros.hpp"
12hi_export_module(hikogui.settings.theme_mode);
16enum class theme_mode {
light, dark };
18constexpr auto theme_mode_metadata = enum_metadata{theme_mode::light,
"light", theme_mode::dark,
"dark"};
22 return theme_mode_metadata[rhs];
27 return lhs << theme_mode_metadata[rhs];
34struct std::formatter<
hi::theme_mode, char> : std::formatter<std::string_view, char> {
35 auto format(hi::theme_mode
const &t,
auto &fc)
const
37 return std::formatter<std::string_view, char>::format(hi::theme_mode_metadata[t], fc);
DOXYGEN BUG.
Definition algorithm_misc.hpp:20
The HikoGUI namespace.
Definition recursive_iterator.hpp:15
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:378