7#include "../utility/utility.hpp"
8#include "../macros.hpp"
12hi_export_module(hikogui.settings.theme_mode);
14namespace hi::inline
v1 {
16enum class theme_mode {
light, dark };
18constexpr auto theme_mode_metadata = enum_metadata{theme_mode::light,
"light", theme_mode::dark,
"dark"};
20[[nodiscard]]
inline std::string_view
to_string(theme_mode rhs)
noexcept
22 return theme_mode_metadata[rhs];
25inline std::ostream &operator<<(std::ostream &lhs, theme_mode rhs)
27 return lhs << theme_mode_metadata[rhs];
32template<
typename CharT>
33struct std::formatter<
hi::theme_mode, CharT> : std::formatter<std::string_view, CharT> {
34 auto format(hi::theme_mode
const &t,
auto &fc)
const
36 return std::formatter<std::string_view, CharT>::format(hi::theme_mode_metadata[t], fc);
DOXYGEN BUG.
Definition algorithm.hpp:16
@ light
300: Light
Definition font_weight.hpp:21
geometry/margins.hpp
Definition lookahead_iterator.hpp:5