7#include "../utility/module.hpp"
11namespace hi::inline
v1 {
13enum class theme_mode {
light, dark };
15constexpr auto theme_mode_metadata = enum_metadata{theme_mode::light,
"light", theme_mode::dark,
"dark"};
17[[nodiscard]]
inline std::string_view
to_string(theme_mode rhs)
noexcept
19 return theme_mode_metadata[rhs];
24 return lhs << theme_mode_metadata[rhs];
29template<
typename CharT>
30struct std::formatter<
hi::theme_mode, CharT> : std::formatter<std::string_view, CharT> {
31 auto format(hi::theme_mode
const &t,
auto &fc)
33 return std::formatter<std::string_view, CharT>::format(hi::theme_mode_metadata[t], fc);
constexpr std::string to_string(std::u32string_view rhs) noexcept
Conversion from UTF-32 to UTF-8.
Definition to_string.hpp:215
DOXYGEN BUG.
Definition algorithm.hpp:13
geometry/margins.hpp
Definition cache.hpp:11