diff --git a/SettingsCenter@lauinger-clan.de/extension.js b/SettingsCenter@lauinger-clan.de/extension.js index 4707599..0142ade 100644 --- a/SettingsCenter@lauinger-clan.de/extension.js +++ b/SettingsCenter@lauinger-clan.de/extension.js @@ -141,7 +141,7 @@ class SettingsCenter { this._settingSignals = new Array(); - this._indicator = new SettingsCenterIndicator(); + this._indicator = new SettingsCenterIndicator(this._settings); this._settingSignals.push( this._settings.connect( diff --git a/SettingsCenter@lauinger-clan.de/metadata.json b/SettingsCenter@lauinger-clan.de/metadata.json index b4d734f..cedf64f 100644 --- a/SettingsCenter@lauinger-clan.de/metadata.json +++ b/SettingsCenter@lauinger-clan.de/metadata.json @@ -11,5 +11,5 @@ "url": "https://github.com/ChrisLauinger77/XES-Settings-Center-Extension", "uuid": "SettingsCenter@lauinger-clan.de", "settings-schema": "org.gnome.shell.extensions.SettingsCenter", - "version": 32 + "version": 33 } diff --git a/SettingsCenter@lauinger-clan.de/prefs.js b/SettingsCenter@lauinger-clan.de/prefs.js index 0ca5cfb..a056985 100644 --- a/SettingsCenter@lauinger-clan.de/prefs.js +++ b/SettingsCenter@lauinger-clan.de/prefs.js @@ -281,6 +281,7 @@ class AdwPrefs extends Prefs { super(schema); this._window = window; this._page1 = null; + this._page2 = null; this._group3 = null; this.filechoosertarget1 = null; this.filechoosertarget2 = null; @@ -288,13 +289,13 @@ class AdwPrefs extends Prefs { buildList() { if (this._group3 !== null) { - this._page1.remove(this._group3); + this._page2.remove(this._group3); } this._group3 = Adw.PreferencesGroup.new(); this._group3.set_title(_("Menu Items")); this._group3.set_name("settingscenter_menuitems"); - this._page1.add(this._group3); + this._page2.add(this._group3); let items = this._menuItems.getItems(); for (let indexItem in items) { @@ -347,8 +348,8 @@ class AdwPrefs extends Prefs { fillPreferencesWindow() { let adwrow; this._page1 = Adw.PreferencesPage.new(); - this._page1.set_title(_("Settings Center")); - this._page1.set_name("settingscenter_page"); + this._page1.set_title(_("Settings")); + this._page1.set_name("settingscenter_page1"); this._page1.set_icon_name("preferences-system-symbolic"); // group1 @@ -450,9 +451,15 @@ class AdwPrefs extends Prefs { ); adwrow.add_suffix(buttonAdd); adwrow.activatable_widget = buttonAdd; + //page2 + this._page2 = Adw.PreferencesPage.new(); + this._page2.set_title(_("Settings Center")); + this._page2.set_name("settingscenter_page2"); + this._page2.set_icon_name("preferences-other-symbolic"); // group3 this.buildList(); - this._window.set_default_size(675, 800); + this._window.set_default_size(675, 655); this._window.add(this._page1); + this._window.add(this._page2); } } diff --git a/po/SettingsCenter.pot b/po/SettingsCenter.pot index 74989f7..375046f 100644 --- a/po/SettingsCenter.pot +++ b/po/SettingsCenter.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-03-28 18:02+0200\n" +"POT-Creation-Date: 2023-04-21 17:29+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -18,35 +18,36 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" #: SettingsCenter@lauinger-clan.de/extension.js:75 +#: SettingsCenter@lauinger-clan.de/prefs.js:351 msgid "Settings" msgstr "" #: SettingsCenter@lauinger-clan.de/prefs.js:10 -msgid "Desktop Config Editor" +msgid "Gnome Tweaks" msgstr "" #: SettingsCenter@lauinger-clan.de/prefs.js:11 -msgid "Gnome Config Editor" +msgid "Desktop Config Editor" msgstr "" #: SettingsCenter@lauinger-clan.de/prefs.js:12 -msgid "Session Properties" +msgid "Gnome Config Editor" msgstr "" #: SettingsCenter@lauinger-clan.de/prefs.js:13 -msgid "Extensions Preferences" +msgid "Session Properties" msgstr "" #: SettingsCenter@lauinger-clan.de/prefs.js:14 -msgid "Passwords and Keys" +msgid "Extensions Preferences" msgstr "" #: SettingsCenter@lauinger-clan.de/prefs.js:15 -msgid "NVidia Settings" +msgid "Passwords and Keys" msgstr "" #: SettingsCenter@lauinger-clan.de/prefs.js:16 -msgid "Gnome Tweaks" +msgid "NVidia Settings" msgstr "" #: SettingsCenter@lauinger-clan.de/prefs.js:55 @@ -54,7 +55,7 @@ msgid "SettingsCenter" msgstr "" #: SettingsCenter@lauinger-clan.de/prefs.js:57 -#: SettingsCenter@lauinger-clan.de/prefs.js:449 +#: SettingsCenter@lauinger-clan.de/prefs.js:450 msgid "'Label' and 'Command' must be filled out !" msgstr "" @@ -71,76 +72,76 @@ msgid "Del" msgstr "" #: SettingsCenter@lauinger-clan.de/prefs.js:173 -#: SettingsCenter@lauinger-clan.de/prefs.js:356 +#: SettingsCenter@lauinger-clan.de/prefs.js:357 msgid "Global" msgstr "" #: SettingsCenter@lauinger-clan.de/prefs.js:187 -#: SettingsCenter@lauinger-clan.de/prefs.js:359 +#: SettingsCenter@lauinger-clan.de/prefs.js:360 msgid "Menu Label" msgstr "" #: SettingsCenter@lauinger-clan.de/prefs.js:190 -#: SettingsCenter@lauinger-clan.de/prefs.js:368 +#: SettingsCenter@lauinger-clan.de/prefs.js:369 msgid "Apply" msgstr "" #: SettingsCenter@lauinger-clan.de/prefs.js:211 -#: SettingsCenter@lauinger-clan.de/prefs.js:295 +#: SettingsCenter@lauinger-clan.de/prefs.js:296 msgid "Menu Items" msgstr "" #: SettingsCenter@lauinger-clan.de/prefs.js:227 -#: SettingsCenter@lauinger-clan.de/prefs.js:393 +#: SettingsCenter@lauinger-clan.de/prefs.js:394 msgid "Add Menu" msgstr "" #: SettingsCenter@lauinger-clan.de/prefs.js:241 -#: SettingsCenter@lauinger-clan.de/prefs.js:396 +#: SettingsCenter@lauinger-clan.de/prefs.js:397 msgid "Label" msgstr "" #: SettingsCenter@lauinger-clan.de/prefs.js:252 -#: SettingsCenter@lauinger-clan.de/prefs.js:405 +#: SettingsCenter@lauinger-clan.de/prefs.js:406 msgid "Command" msgstr "" #: SettingsCenter@lauinger-clan.de/prefs.js:263 -#: SettingsCenter@lauinger-clan.de/prefs.js:441 +#: SettingsCenter@lauinger-clan.de/prefs.js:442 msgid "Add" msgstr "" -#: SettingsCenter@lauinger-clan.de/prefs.js:325 -#: SettingsCenter@lauinger-clan.de/prefs.js:419 -#: SettingsCenter@lauinger-clan.de/prefs.js:432 +#: SettingsCenter@lauinger-clan.de/prefs.js:326 +#: SettingsCenter@lauinger-clan.de/prefs.js:420 +#: SettingsCenter@lauinger-clan.de/prefs.js:433 msgid "Select desktop file" msgstr "" -#: SettingsCenter@lauinger-clan.de/prefs.js:350 -msgid "Settings Center" -msgstr "" - -#: SettingsCenter@lauinger-clan.de/prefs.js:376 +#: SettingsCenter@lauinger-clan.de/prefs.js:377 msgid "Show SystemIndicator" msgstr "" -#: SettingsCenter@lauinger-clan.de/prefs.js:377 +#: SettingsCenter@lauinger-clan.de/prefs.js:378 #: SettingsCenter@lauinger-clan.de/schemas/org.gnome.shell.extensions.SettingsCenter.gschema.xml:16 msgid "Toggle to show systemindicator" msgstr "" -#: SettingsCenter@lauinger-clan.de/prefs.js:397 +#: SettingsCenter@lauinger-clan.de/prefs.js:398 msgid "Label to show in menu" msgstr "" -#: SettingsCenter@lauinger-clan.de/prefs.js:407 +#: SettingsCenter@lauinger-clan.de/prefs.js:408 msgid "Name of .desktop file (MyApp.desktop) or name of command" msgstr "" -#: SettingsCenter@lauinger-clan.de/prefs.js:423 +#: SettingsCenter@lauinger-clan.de/prefs.js:424 msgid "Usually located in '/usr/share/applications'" msgstr "" +#: SettingsCenter@lauinger-clan.de/prefs.js:456 +msgid "Settings Center" +msgstr "" + #: SettingsCenter@lauinger-clan.de/schemas/org.gnome.shell.extensions.SettingsCenter.gschema.xml:6 msgid "Label Menu" msgstr "" diff --git a/po/de.po b/po/de.po index 135245b..421dc1c 100644 --- a/po/de.po +++ b/po/de.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-03-28 18:02+0200\n" +"POT-Creation-Date: 2023-04-21 17:29+0200\n" "PO-Revision-Date: 2023-03-28 18:01+0200\n" "Last-Translator: Christian Lauinger \n" "Language-Team: \n" @@ -19,43 +19,44 @@ msgstr "" "X-Generator: Poedit 3.2.2\n" #: SettingsCenter@lauinger-clan.de/extension.js:75 +#: SettingsCenter@lauinger-clan.de/prefs.js:351 msgid "Settings" msgstr "Einstellungen" #: SettingsCenter@lauinger-clan.de/prefs.js:10 +msgid "Gnome Tweaks" +msgstr "Gnome Optimierungen" + +#: SettingsCenter@lauinger-clan.de/prefs.js:11 msgid "Desktop Config Editor" msgstr "Desktop Konfigurationseditor" -#: SettingsCenter@lauinger-clan.de/prefs.js:11 +#: SettingsCenter@lauinger-clan.de/prefs.js:12 msgid "Gnome Config Editor" msgstr "Gnome Konfigurationseditor" -#: SettingsCenter@lauinger-clan.de/prefs.js:12 +#: SettingsCenter@lauinger-clan.de/prefs.js:13 msgid "Session Properties" msgstr "Sitzungseigenschaften" -#: SettingsCenter@lauinger-clan.de/prefs.js:13 +#: SettingsCenter@lauinger-clan.de/prefs.js:14 msgid "Extensions Preferences" msgstr "Erweiterungen Einstellungen" -#: SettingsCenter@lauinger-clan.de/prefs.js:14 +#: SettingsCenter@lauinger-clan.de/prefs.js:15 msgid "Passwords and Keys" msgstr "Passwörter und Schlüssel" -#: SettingsCenter@lauinger-clan.de/prefs.js:15 +#: SettingsCenter@lauinger-clan.de/prefs.js:16 msgid "NVidia Settings" msgstr "NVidia Einstellungen" -#: SettingsCenter@lauinger-clan.de/prefs.js:16 -msgid "Gnome Tweaks" -msgstr "Gnome Optimierungen" - #: SettingsCenter@lauinger-clan.de/prefs.js:55 msgid "SettingsCenter" msgstr "Einstellungszentrum" #: SettingsCenter@lauinger-clan.de/prefs.js:57 -#: SettingsCenter@lauinger-clan.de/prefs.js:449 +#: SettingsCenter@lauinger-clan.de/prefs.js:450 msgid "'Label' and 'Command' must be filled out !" msgstr "'Beschriftung' und 'Kommando' müssen ausgefüllt werden !" @@ -72,76 +73,76 @@ msgid "Del" msgstr "Entf" #: SettingsCenter@lauinger-clan.de/prefs.js:173 -#: SettingsCenter@lauinger-clan.de/prefs.js:356 +#: SettingsCenter@lauinger-clan.de/prefs.js:357 msgid "Global" msgstr "Global" #: SettingsCenter@lauinger-clan.de/prefs.js:187 -#: SettingsCenter@lauinger-clan.de/prefs.js:359 +#: SettingsCenter@lauinger-clan.de/prefs.js:360 msgid "Menu Label" msgstr "Menü Beschriftung" #: SettingsCenter@lauinger-clan.de/prefs.js:190 -#: SettingsCenter@lauinger-clan.de/prefs.js:368 +#: SettingsCenter@lauinger-clan.de/prefs.js:369 msgid "Apply" msgstr "Übernehmen" #: SettingsCenter@lauinger-clan.de/prefs.js:211 -#: SettingsCenter@lauinger-clan.de/prefs.js:295 +#: SettingsCenter@lauinger-clan.de/prefs.js:296 msgid "Menu Items" msgstr "Menü Einträge" #: SettingsCenter@lauinger-clan.de/prefs.js:227 -#: SettingsCenter@lauinger-clan.de/prefs.js:393 +#: SettingsCenter@lauinger-clan.de/prefs.js:394 msgid "Add Menu" msgstr "Menü hinzufügen" #: SettingsCenter@lauinger-clan.de/prefs.js:241 -#: SettingsCenter@lauinger-clan.de/prefs.js:396 +#: SettingsCenter@lauinger-clan.de/prefs.js:397 msgid "Label" msgstr "Beschriftung" #: SettingsCenter@lauinger-clan.de/prefs.js:252 -#: SettingsCenter@lauinger-clan.de/prefs.js:405 +#: SettingsCenter@lauinger-clan.de/prefs.js:406 msgid "Command" msgstr "Kommando" #: SettingsCenter@lauinger-clan.de/prefs.js:263 -#: SettingsCenter@lauinger-clan.de/prefs.js:441 +#: SettingsCenter@lauinger-clan.de/prefs.js:442 msgid "Add" msgstr "Hinzufügen" -#: SettingsCenter@lauinger-clan.de/prefs.js:325 -#: SettingsCenter@lauinger-clan.de/prefs.js:419 -#: SettingsCenter@lauinger-clan.de/prefs.js:432 +#: SettingsCenter@lauinger-clan.de/prefs.js:326 +#: SettingsCenter@lauinger-clan.de/prefs.js:420 +#: SettingsCenter@lauinger-clan.de/prefs.js:433 msgid "Select desktop file" msgstr "Desktop Datei auswählen" -#: SettingsCenter@lauinger-clan.de/prefs.js:350 -msgid "Settings Center" -msgstr "Einstellungszentrum" - -#: SettingsCenter@lauinger-clan.de/prefs.js:376 +#: SettingsCenter@lauinger-clan.de/prefs.js:377 msgid "Show SystemIndicator" msgstr "Systemindikator anzeigen" -#: SettingsCenter@lauinger-clan.de/prefs.js:377 +#: SettingsCenter@lauinger-clan.de/prefs.js:378 #: SettingsCenter@lauinger-clan.de/schemas/org.gnome.shell.extensions.SettingsCenter.gschema.xml:16 msgid "Toggle to show systemindicator" msgstr "Umschalten der Anzeige des Systemindikators" -#: SettingsCenter@lauinger-clan.de/prefs.js:397 +#: SettingsCenter@lauinger-clan.de/prefs.js:398 msgid "Label to show in menu" msgstr "Beschriftung die im Menü angezeigt wird" -#: SettingsCenter@lauinger-clan.de/prefs.js:407 +#: SettingsCenter@lauinger-clan.de/prefs.js:408 msgid "Name of .desktop file (MyApp.desktop) or name of command" msgstr "Name der .desktop Datei (MyApp.desktop) oder Name des Befehls" -#: SettingsCenter@lauinger-clan.de/prefs.js:423 +#: SettingsCenter@lauinger-clan.de/prefs.js:424 msgid "Usually located in '/usr/share/applications'" msgstr "Befinden sich normalerweise in '/usr/share/applications'" +#: SettingsCenter@lauinger-clan.de/prefs.js:456 +msgid "Settings Center" +msgstr "Einstellungszentrum" + #: SettingsCenter@lauinger-clan.de/schemas/org.gnome.shell.extensions.SettingsCenter.gschema.xml:6 msgid "Label Menu" msgstr "Menü Beschriftung" diff --git a/po/nl.po b/po/nl.po index 04f18ed..11225a2 100644 --- a/po/nl.po +++ b/po/nl.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-03-28 18:02+0200\n" +"POT-Creation-Date: 2023-04-21 17:29+0200\n" "PO-Revision-Date: 2022-11-21 20:26+0100\n" "Last-Translator: Heimen Stoffels \n" "Language-Team: Dutch\n" @@ -18,44 +18,45 @@ msgstr "" "X-Generator: Lokalize 23.03.70\n" #: SettingsCenter@lauinger-clan.de/extension.js:75 +#: SettingsCenter@lauinger-clan.de/prefs.js:351 msgid "Settings" msgstr "Voorkeuren" #: SettingsCenter@lauinger-clan.de/prefs.js:10 +msgid "Gnome Tweaks" +msgstr "GNOME Afstelhulp" + +#: SettingsCenter@lauinger-clan.de/prefs.js:11 msgid "Desktop Config Editor" msgstr "Bureaublad-voorkeurenbewerker" -#: SettingsCenter@lauinger-clan.de/prefs.js:11 +#: SettingsCenter@lauinger-clan.de/prefs.js:12 msgid "Gnome Config Editor" msgstr "GNOME-voorkeurenbewerker" -#: SettingsCenter@lauinger-clan.de/prefs.js:12 +#: SettingsCenter@lauinger-clan.de/prefs.js:13 msgid "Session Properties" msgstr "Sessievoorkeuren" -#: SettingsCenter@lauinger-clan.de/prefs.js:13 +#: SettingsCenter@lauinger-clan.de/prefs.js:14 msgid "Extensions Preferences" msgstr "Uitbreidingsvoorkeuren" -#: SettingsCenter@lauinger-clan.de/prefs.js:14 +#: SettingsCenter@lauinger-clan.de/prefs.js:15 msgid "Passwords and Keys" msgstr "Wachtwoorden en toegangssleutels" -#: SettingsCenter@lauinger-clan.de/prefs.js:15 +#: SettingsCenter@lauinger-clan.de/prefs.js:16 msgid "NVidia Settings" msgstr "NVIDIA-voorkeuren" -#: SettingsCenter@lauinger-clan.de/prefs.js:16 -msgid "Gnome Tweaks" -msgstr "GNOME Afstelhulp" - #: SettingsCenter@lauinger-clan.de/prefs.js:55 #, fuzzy msgid "SettingsCenter" msgstr "Voorkeurenmenu" #: SettingsCenter@lauinger-clan.de/prefs.js:57 -#: SettingsCenter@lauinger-clan.de/prefs.js:449 +#: SettingsCenter@lauinger-clan.de/prefs.js:450 msgid "'Label' and 'Command' must be filled out !" msgstr "" @@ -72,76 +73,76 @@ msgid "Del" msgstr "Del" #: SettingsCenter@lauinger-clan.de/prefs.js:173 -#: SettingsCenter@lauinger-clan.de/prefs.js:356 +#: SettingsCenter@lauinger-clan.de/prefs.js:357 msgid "Global" msgstr "Algemeen" #: SettingsCenter@lauinger-clan.de/prefs.js:187 -#: SettingsCenter@lauinger-clan.de/prefs.js:359 +#: SettingsCenter@lauinger-clan.de/prefs.js:360 msgid "Menu Label" msgstr "Menutekst" #: SettingsCenter@lauinger-clan.de/prefs.js:190 -#: SettingsCenter@lauinger-clan.de/prefs.js:368 +#: SettingsCenter@lauinger-clan.de/prefs.js:369 msgid "Apply" msgstr "Toepassen" #: SettingsCenter@lauinger-clan.de/prefs.js:211 -#: SettingsCenter@lauinger-clan.de/prefs.js:295 +#: SettingsCenter@lauinger-clan.de/prefs.js:296 msgid "Menu Items" msgstr "Menu-items" #: SettingsCenter@lauinger-clan.de/prefs.js:227 -#: SettingsCenter@lauinger-clan.de/prefs.js:393 +#: SettingsCenter@lauinger-clan.de/prefs.js:394 msgid "Add Menu" msgstr "Menu toevoegen" #: SettingsCenter@lauinger-clan.de/prefs.js:241 -#: SettingsCenter@lauinger-clan.de/prefs.js:396 +#: SettingsCenter@lauinger-clan.de/prefs.js:397 msgid "Label" msgstr "Tekst" #: SettingsCenter@lauinger-clan.de/prefs.js:252 -#: SettingsCenter@lauinger-clan.de/prefs.js:405 +#: SettingsCenter@lauinger-clan.de/prefs.js:406 msgid "Command" msgstr "Opdracht" #: SettingsCenter@lauinger-clan.de/prefs.js:263 -#: SettingsCenter@lauinger-clan.de/prefs.js:441 +#: SettingsCenter@lauinger-clan.de/prefs.js:442 msgid "Add" msgstr "Toevoegen" -#: SettingsCenter@lauinger-clan.de/prefs.js:325 -#: SettingsCenter@lauinger-clan.de/prefs.js:419 -#: SettingsCenter@lauinger-clan.de/prefs.js:432 +#: SettingsCenter@lauinger-clan.de/prefs.js:326 +#: SettingsCenter@lauinger-clan.de/prefs.js:420 +#: SettingsCenter@lauinger-clan.de/prefs.js:433 msgid "Select desktop file" msgstr "" -#: SettingsCenter@lauinger-clan.de/prefs.js:350 -msgid "Settings Center" -msgstr "Voorkeurenmenu" - -#: SettingsCenter@lauinger-clan.de/prefs.js:376 +#: SettingsCenter@lauinger-clan.de/prefs.js:377 msgid "Show SystemIndicator" msgstr "" -#: SettingsCenter@lauinger-clan.de/prefs.js:377 +#: SettingsCenter@lauinger-clan.de/prefs.js:378 #: SettingsCenter@lauinger-clan.de/schemas/org.gnome.shell.extensions.SettingsCenter.gschema.xml:16 msgid "Toggle to show systemindicator" msgstr "" -#: SettingsCenter@lauinger-clan.de/prefs.js:397 +#: SettingsCenter@lauinger-clan.de/prefs.js:398 msgid "Label to show in menu" msgstr "" -#: SettingsCenter@lauinger-clan.de/prefs.js:407 +#: SettingsCenter@lauinger-clan.de/prefs.js:408 msgid "Name of .desktop file (MyApp.desktop) or name of command" msgstr "" -#: SettingsCenter@lauinger-clan.de/prefs.js:423 +#: SettingsCenter@lauinger-clan.de/prefs.js:424 msgid "Usually located in '/usr/share/applications'" msgstr "" +#: SettingsCenter@lauinger-clan.de/prefs.js:456 +msgid "Settings Center" +msgstr "Voorkeurenmenu" + #: SettingsCenter@lauinger-clan.de/schemas/org.gnome.shell.extensions.SettingsCenter.gschema.xml:6 msgid "Label Menu" msgstr "Menutekst" diff --git a/screenshot_4x.png b/screenshot_4x.png index d7e9afb..0e94d7c 100644 Binary files a/screenshot_4x.png and b/screenshot_4x.png differ