diff options
Diffstat (limited to 'adw/src/stylemanager.cpp')
| -rw-r--r-- | adw/src/stylemanager.cpp | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/adw/src/stylemanager.cpp b/adw/src/stylemanager.cpp index 74fe40a..1b7817a 100644 --- a/adw/src/stylemanager.cpp +++ b/adw/src/stylemanager.cpp @@ -17,6 +17,7 @@ #include <adwaita.h> #include <gdkmm/display.h> +#include <gdkmm/rgba.h> #include <gio/gio.h> #include <glib-object.h> @@ -90,6 +91,51 @@ namespace Adwaita return static_cast<AccentColor>(adw_style_manager_get_accent_color(const_cast<BaseObjectType *>(unwrap(this)))); } + auto StyleManager::get_accent_color_rgba() const -> Gdk::RGBA + { + return Glib::wrap(adw_style_manager_get_accent_color_rgba(const_cast<BaseObjectType *>(unwrap(this)))); + } + + auto StyleManager::get_color_scheme() const -> ColorScheme + { + return static_cast<ColorScheme>(adw_style_manager_get_color_scheme(const_cast<BaseObjectType *>(unwrap(this)))); + } + + auto StyleManager::get_dark() const -> bool + { + return adw_style_manager_get_dark(const_cast<BaseObjectType *>(unwrap(this))); + } + + auto StyleManager::get_display() const -> Glib::RefPtr<Gdk::Display> + { + return Glib::wrap(adw_style_manager_get_display(const_cast<BaseObjectType *>(unwrap(this)))); + } + + auto StyleManager::get_document_font_name() const -> Glib::ustring + { + return adw_style_manager_get_document_font_name(const_cast<BaseObjectType *>(unwrap(this))); + } + + auto StyleManager::get_high_contrast() const -> bool + { + return adw_style_manager_get_high_contrast(const_cast<BaseObjectType *>(unwrap(this))); + } + + auto StyleManager::get_monospace_font_name() const -> Glib::ustring + { + return adw_style_manager_get_monospace_font_name(const_cast<BaseObjectType *>(unwrap(this))); + } + + auto StyleManager::get_system_supports_accent_colors() const -> bool + { + return adw_style_manager_get_system_supports_accent_colors(const_cast<BaseObjectType *>(unwrap(this))); + } + + auto StyleManager::get_system_supports_color_schemes() const -> bool + { + return adw_style_manager_get_system_supports_color_schemes(const_cast<BaseObjectType *>(unwrap(this))); + } + auto StyleManager::set_color_scheme(ColorScheme value) -> void { adw_style_manager_set_color_scheme(unwrap(this), static_cast<AdwColorScheme>(value)); |
