diff options
author | lukefromdc <[email protected]> | 2024-03-27 19:40:18 -0400 |
---|---|---|
committer | lukefromdc <[email protected]> | 2024-05-26 14:00:01 -0400 |
commit | 1e8c08e51ea38d5faec5f352ea5d00c565a0a63d (patch) | |
tree | fc966c761e2a4c78bf42dc24103aaca73ff2c02c /capplets/appearance/appearance.h | |
parent | cf67b6a462ceeaddea84130789fa5e73fe598fdd (diff) | |
download | mate-control-center-1e8c08e51ea38d5faec5f352ea5d00c565a0a63d.tar.bz2 mate-control-center-1e8c08e51ea38d5faec5f352ea5d00c565a0a63d.tar.xz |
appearance in wayland: Support changing theme, icon theme, and fonts
*If we are in a wayland session, write the gtk theme and icon theme to both org.mate and org.gnome
*This changes wayland and xwayland themes simultaniously
*Under wayland, set the application and document fonts for both MATE and GNOME
*Otherwise some applications will ignore font changes set from the appearance capplet
*Only load GNOME interface gsettings when running under wayland
*fail gracefully if the gnome interface schema is not present
*Do not depend on it but use it if it is present to allow setting themes in compositors such as wayfire that use the GNOME gsettings values
Diffstat (limited to 'capplets/appearance/appearance.h')
-rw-r--r-- | capplets/appearance/appearance.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/capplets/appearance/appearance.h b/capplets/appearance/appearance.h index 0a01ddcf..9a16afcf 100644 --- a/capplets/appearance/appearance.h +++ b/capplets/appearance/appearance.h @@ -58,6 +58,7 @@ #define GTK_THEME_KEY "gtk-theme" #define ICON_THEME_KEY "icon-theme" #define INTERFACE_SCHEMA "org.mate.interface" +#define INTERFACE_GNOME_SCHEMA "org.gnome.desktop.interface" #define MENU_ICONS_KEY "menus-have-icons" #define MONOSPACE_FONT_KEY "monospace-font-name" #define TOOLBAR_STYLE_KEY "toolbar-style" @@ -92,6 +93,10 @@ typedef struct { GSettings* caja_settings; GSettings* filechooser_settings; GSettings* interface_settings; + /*We have to accomodate wayland theme setting here + *whether we are using it or not + */ + GSettings* interface_gnome_settings; GSettings* marco_settings; GSettings* mouse_settings; GSettings* font_settings; |