From 249f3554d5c767dfff909985143cf08d999c2473 Mon Sep 17 00:00:00 2001 From: Julian Schacher Date: Sun, 23 Oct 2022 22:10:36 +0200 Subject: [PATCH] Breaking: Make preferences usable again and support Gnome Shell 42 Make the preferences usable again (and look good) by using an `AdwPreferencesPage` as well as various other libadwaita features (like `AdwPreferencesGroup`, style classes, ...). Also get rid of some code, which now doesn't seem to be necessary anymore (making sure no horizontal scrollbar shows and setting a default size for the preferences window). This change is marked as "Breaking", since I assume `AdwPreferencesPage` doesn't work in Gnome Shell 40 and because I changed the supported Gnome Shell version to 42 accordingly. --- src/metadata.json | 2 +- src/prefs-box-order-item-row.ui | 48 ++++++++++++------------ src/prefs-box-order-list-box.ui | 5 ++- src/{prefs-widget.ui => prefs-page.ui} | 34 ++++------------- src/prefs.js | 39 ++++++------------- src/prefsModules/PrefsBoxOrderItemRow.js | 5 ++- 6 files changed, 49 insertions(+), 84 deletions(-) rename src/{prefs-widget.ui => prefs-page.ui} (65%) diff --git a/src/metadata.json b/src/metadata.json index 9a846c6..721410c 100644 --- a/src/metadata.json +++ b/src/metadata.json @@ -3,7 +3,7 @@ "name": "Top Bar Organizer", "description": "Organize the items of the top (menu)bar.", "version": 3, - "shell-version": [ "40" ], + "shell-version": [ "42" ], "settings-schema": "org.gnome.shell.extensions.top-bar-organizer", "url": "https://gitlab.gnome.org/julianschacher/top-bar-organizer" } diff --git a/src/prefs-box-order-item-row.ui b/src/prefs-box-order-item-row.ui index 2c8e424..36e224f 100644 --- a/src/prefs-box-order-item-row.ui +++ b/src/prefs-box-order-item-row.ui @@ -2,7 +2,7 @@ -