diff --git a/js/ui/main.js b/js/ui/main.js index 05b30d544..6b180bd9b 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -361,7 +361,8 @@ function reloadThemeResource() { if (_themeResource) _themeResource._unregister(); - _themeResource = Gio.Resource.load('%s/gnome-shell-theme.gresource'.format(global.datadir)); + _themeResource = Gio.Resource.load('%s/%s'.format(global.datadir, + sessionMode.themeResourceName)); _themeResource._register(); } diff --git a/js/ui/sessionMode.js b/js/ui/sessionMode.js index 1c5298770..e12fc2ef4 100644 --- a/js/ui/sessionMode.js +++ b/js/ui/sessionMode.js @@ -15,6 +15,7 @@ const _modes = { 'restrictive': { parentMode: null, stylesheetName: 'gnome-shell.css', + themeResourceName: 'gnome-shell-theme.gresource', hasOverview: false, showCalendarEvents: false, allowSettings: false,