-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Roy Golan <[email protected]>
- Loading branch information
Showing
4 changed files
with
65 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,43 @@ | ||
import Gio from 'gi://Gio'; | ||
import Adw from 'gi://Adw'; | ||
import Gio from "gi://Gio"; | ||
import Adw from "gi://Adw"; | ||
|
||
import {ExtensionPreferences, gettext as _} from 'resource:///org/gnome/Shell/Extensions/js/extensions/prefs.js'; | ||
import {ExtensionPreferences, gettext as _} from "resource:///org/gnome/Shell/Extensions/js/extensions/prefs.js"; | ||
|
||
export default class ContainersPreferences extends ExtensionPreferences { | ||
fillPreferencesWindow(window) { | ||
window._settings = this.getSettings(); | ||
|
||
const page = new Adw.PreferencesPage({ | ||
title: _('General'), | ||
icon_name: 'dialog-information-symbolic', | ||
title: _("General"), | ||
icon_name: "dialog-information-symbolic", | ||
}); | ||
window.add(page); | ||
|
||
const appearanceGroup = new Adw.PreferencesGroup({ | ||
title: _('Appearance'), | ||
description: _('Configure the appearance of the extension'), | ||
title: _("Appearance"), | ||
description: _("Configure the appearance of the extension"), | ||
}); | ||
page.add(appearanceGroup); | ||
|
||
const extraInfoRow = new Adw.SwitchRow({ | ||
title: _('Extra Info'), | ||
subtitle: _('Whether to show extra info of a container in name and the opened menu'), | ||
title: _("Extra Info"), | ||
subtitle: _("Whether to show extra info of a container in name and the opened menu"), | ||
}); | ||
appearanceGroup.add(extraInfoRow); | ||
window._settings.bind('extra-info', extraInfoRow, 'active', Gio.SettingsBindFlags.DEFAULT); | ||
window._settings.bind("extra-info", extraInfoRow, "active", Gio.SettingsBindFlags.DEFAULT); | ||
|
||
const behaviourGroup = new Adw.PreferencesGroup({ | ||
title: _('Behaviour'), | ||
description: _('Configure the behaviour of the extension'), | ||
title: _("Behaviour"), | ||
description: _("Configure the behaviour of the extension"), | ||
}); | ||
page.add(behaviourGroup); | ||
|
||
const terminalRow = new Adw.EntryRow({ | ||
title: _('Terminal program with arguments'), | ||
title: _("Terminal program with arguments"), | ||
show_apply_button: true, // Allows user to apply the input | ||
}); | ||
behaviourGroup.add(terminalRow); | ||
window._settings.bind('terminal', terminalRow, 'text', Gio.SettingsBindFlags.DEFAULT); | ||
window._settings.bind("terminal", terminalRow, "text", Gio.SettingsBindFlags.DEFAULT); | ||
} | ||
} | ||
|