8 #include "../forms_export.h"
20 bool operator==(
const theme_base& value)
const {
return name_ == value.name_ && theme_style_ == value.theme_style_ && is_default_ == value.is_default();}
21 bool operator!=(
const theme_base& value)
const {
return !operator==(value);}
25 using theme_name_collection = std::vector<xtd::ustring>;
39 bool is_default()
const {
return is_default_;}
45 static xtd::ustring fallback_theme_name() {
return "symbolic";}
47 static const theme_name_collection& theme_names() {
return theme_names_;}
49 static const theme_base empty;
52 theme_base() =
default;
53 explicit theme_base(
const xtd::ustring& name) : name_(name) {}
57 theme_base& is_default(
bool is_default) {
58 is_default_ = is_default;
66 bool is_default_ =
false;
67 static theme_name_collection theme_names_;
The environment class.
Definition: environment.h:33
static xtd::operating_system os_version()
Gets an operating_system object that contains the current platform identifier and version number.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition: object.h:26
xtd::ustring desktop_environment() const
Gets the desktop environment .
Definition: operating_system.h:70
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:48
Contains xtd::environment class.
#define forms_export_
Define shared library export.
Definition: forms_export.h:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::object class.
Contains xtd::forms::theme_style enum class.
Contains xtd::ustring class.