Extension: Add setting to disable transition when an app is fullscreen

This commit is contained in:
Romain Vigier
2024-03-04 15:17:43 +00:00
parent 97e16b7481
commit bd885e1efa
5 changed files with 19 additions and 2 deletions
+3
View File
@@ -16,6 +16,7 @@ export class SchedulePage extends Adw.PreferencesPage {
'keyboard_shortcut_button',
'schedule_sunrise_time_chooser',
'schedule_sunset_time_chooser',
'fullscreen_transition_switch',
],
}, this);
}
@@ -28,6 +29,8 @@ export class SchedulePage extends Adw.PreferencesPage {
settings.bind('sunrise', this._schedule_sunrise_time_chooser, 'time', Gio.SettingsBindFlags.DEFAULT);
settings.bind('sunset', this._schedule_sunset_time_chooser, 'time', Gio.SettingsBindFlags.DEFAULT);
settings.bind('fullscreen-transition', this._fullscreen_transition_switch, 'active', Gio.SettingsBindFlags.DEFAULT);
settings.connect('changed::nightthemeswitcher-ondemand-keybinding', () => {
this._keyboard_shortcut_button.keybinding = settings.get_strv('nightthemeswitcher-ondemand-keybinding')[0];
});