ADD: working button to control boolean float

This commit is contained in:
2024-07-01 00:30:33 +01:00
parent 48c0f82593
commit a391b6a835
8 changed files with 100 additions and 11 deletions

View File

@@ -22,7 +22,7 @@ export default class GnomeRectanglePreferences extends ExtensionPreferences {
const animationEnabled = new Adw.SwitchRow({
title: _("Enabled"),
subtitle: _("Wether to animate windows"),
subtitle: _("Floating Window"),
});
animationGroup.add(animationEnabled);
@@ -45,7 +45,7 @@ export default class GnomeRectanglePreferences extends ExtensionPreferences {
window.add(page);
this._settings!.bind("animate", animationEnabled, "active", Gio.SettingsBindFlags.DEFAULT);
this._settings!.bind("float", animationEnabled, "active", Gio.SettingsBindFlags.DEFAULT);
this._settings!.bind("padding-inner", paddingInner, "value", Gio.SettingsBindFlags.DEFAULT);
}
}