4 #include "../forms_export.h" 5 #include "theme_style.h" 16 bool operator==(
const theme_base& value)
const {
return name_ == value.name_ && theme_style_ == value.theme_style_ && is_default_ == value.is_default();}
17 bool operator!=(
const theme_base& value)
const {
return !operator==(value);}
19 friend std::ostream& operator<<(std::ostream& os,
const theme_base&
theme) noexcept {
return os << theme.to_string();}
22 using theme_name_collection = std::vector<std::string>;
24 virtual const std::string& name()
const {
return name_;}
36 bool is_default()
const {
return is_default_;}
38 std::string to_string()
const {
return xtd::strings::format(
"[name={}, style={}, is_default={}] ", name_, theme_style_, is_default_);}
42 static std::string fallback_theme_name() {
return "symbolic";}
44 static const theme_name_collection& theme_names() {
return theme_names_;}
50 explicit theme_base(
const std::string& name) : name_(name) {}
55 is_default_ = is_default;
63 bool is_default_ =
false;
64 static theme_name_collection theme_names_;
Contains xtd::strings class.
static xtd::operating_system os_version() noexcept
Gets an operating_system object that contains the current platform identifier and version number...
Definition: environment.h:382
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:15
std::string desktop_environment() const
Gets the desktop environment .
Definition: operating_system.h:61
static std::basic_string< char_t > format(const std::basic_string< char_t > &fmt, args_t &&... args)
Writes the text representation of the specified arguments list, to string using the specified format ...
Definition: strings.h:612
Contains xtd::environment class.