From 35412af21613c3175f38cb9f7a794e0bddb70fba Mon Sep 17 00:00:00 2001 From: Philipp Unger Date: Wed, 6 Apr 2022 01:10:33 +0200 Subject: [PATCH] convert action tab to adw preferences page --- SettingsAction.ui | 172 ++++++++++++++++++++++++++++++++++++++++++++++ prefs.js | 5 +- 2 files changed, 174 insertions(+), 3 deletions(-) create mode 100644 SettingsAction.ui diff --git a/SettingsAction.ui b/SettingsAction.ui new file mode 100644 index 0000000..3b2ec4c --- /dev/null +++ b/SettingsAction.ui @@ -0,0 +1,172 @@ + + + + + + Action + document-properties + + + + + Click action + + + + Click action + Behaviour when clicking on the icon of a running application. + + + True + center + + + False + emblem-system-symbolic + + + + + + + + False + center + + Cycle windows + minimize + Cycle through windows + Toggle single / Preview multiple + Toggle windows + Raise windows + Launch new instance + + + + + + + + + + + + + Scroll action + + + + Scroll panel action + Behavior when mouse scrolling over the panel. + + + True + True + True + end + center + + + True + False + emblem-system-symbolic + + + + + + + + True + False + center + True + + Do nothing + Switch workspace + Cycle windows + Change volume + + + + + + + + + Scroll icon action + Behavior when mouse scrolling over an application icon. + + + True + center + + + True + False + emblem-system-symbolic + + + + + + + + False + center + True + + Do nothing + Cycle windows + Same as panel + + + + + + + + + + + + + Hotkey overlay + + + + Use hotkeys to activate apps + Enable Super+(0-9) as shortcuts to activate apps. It can also be used together with Shift and Ctrl. + + + True + center + + + False + emblem-system-symbolic + + + + + + + + center + + + + + + + + + + \ No newline at end of file diff --git a/prefs.js b/prefs.js index df95ccb..8f3e963 100644 --- a/prefs.js +++ b/prefs.js @@ -2479,9 +2479,8 @@ function fillPreferencesWindow(window) { let pageBehavior = builder.get_object('behavior'); window.add(pageBehavior); - let pageAction = new Adw.PreferencesPage(); - pageAction.set_title("Action"); - pageAction.set_icon_name("document-properties"); + builder.add_from_file(Me.path + '/SettingsAction.ui'); + let pageAction = builder.get_object('action'); window.add(pageAction); let pageFineTune = new Adw.PreferencesPage();