Add menu icon selection
This commit is contained in:
parent
22ceb1f3e1
commit
52e82071b8
@ -67,7 +67,12 @@ class mintMenuPreferences():
|
|||||||
section = page.add_section(_("Menu button"), _("Applet button in the panel"))
|
section = page.add_section(_("Menu button"), _("Applet button in the panel"))
|
||||||
section.add_row(GSettingsSwitch(_("Show button icon"), "com.linuxmint.mintmenu", "show-applet-icon"))
|
section.add_row(GSettingsSwitch(_("Show button icon"), "com.linuxmint.mintmenu", "show-applet-icon"))
|
||||||
section.add_reveal_row(GSettingsEntry(_("Button text"), "com.linuxmint.mintmenu", "applet-text"), "com.linuxmint.mintmenu", "show-applet-icon")
|
section.add_reveal_row(GSettingsEntry(_("Button text"), "com.linuxmint.mintmenu", "applet-text"), "com.linuxmint.mintmenu", "show-applet-icon")
|
||||||
section.add_reveal_row(GSettingsIconChooser(_("Button icon"), "com.linuxmint.mintmenu", "applet-icon"), "com.linuxmint.mintmenu", "show-applet-icon")
|
logos = {}
|
||||||
|
logos['name']= _("Menu icons")
|
||||||
|
logos['icons']= self.settings.get_strv("applet-icons")
|
||||||
|
icon_chooser = GSettingsIconChooser(_("Button icon"), "com.linuxmint.mintmenu", "applet-icon", default_icon=self.settings.get_string("default-applet-icon"), custom=[logos])
|
||||||
|
icon_chooser.content_widget.set_default_category(_("Menu icons"))
|
||||||
|
section.add_reveal_row(icon_chooser, "com.linuxmint.mintmenu", "show-applet-icon")
|
||||||
|
|
||||||
binding_widget = keybinding.KeybindingWidget()
|
binding_widget = keybinding.KeybindingWidget()
|
||||||
binding_widget.set_val(self.settings.get_string("hot-key"))
|
binding_widget.set_val(self.settings.get_string("hot-key"))
|
||||||
|
@ -56,6 +56,24 @@
|
|||||||
<description></description>
|
<description></description>
|
||||||
</key>
|
</key>
|
||||||
|
|
||||||
|
<key type="s" name="default-applet-icon">
|
||||||
|
<default>"linuxmint-logo-filled-ring"</default>
|
||||||
|
<summary></summary>
|
||||||
|
<description></description>
|
||||||
|
</key>
|
||||||
|
|
||||||
|
<key type="as" name="applet-icons">
|
||||||
|
<default>["linuxmint-logo", "linuxmint-logo-badge", "linuxmint-logo-badge-symbolic", "linuxmint-logo-filled-badge",
|
||||||
|
"linuxmint-logo-filled-leaf-badge", "linuxmint-logo-filled-leaf", "linuxmint-logo-filled-ring",
|
||||||
|
"linuxmint-logo-leaf-badge", "linuxmint-logo-leaf-badge-symbolic", "linuxmint-logo-leaf",
|
||||||
|
"linuxmint-logo-leaf-symbolic", "linuxmint-logo-neon", "linuxmint-logo-ring",
|
||||||
|
"linuxmint-logo-ring-symbolic", "linuxmint-logo-simple", "linuxmint-logo-simple-symbolic",
|
||||||
|
"mate-symbolic", "emblem-favorite-symbolic", "user-bookmarks-symbolic",
|
||||||
|
"start-here-symbolic"]</default>
|
||||||
|
<summary></summary>
|
||||||
|
<description></description>
|
||||||
|
</key>
|
||||||
|
|
||||||
<key type="as" name="plugins-list">
|
<key type="as" name="plugins-list">
|
||||||
<default>['places', 'system_management', 'newpane', 'applications']</default>
|
<default>['places', 'system_management', 'newpane', 'applications']</default>
|
||||||
<summary></summary>
|
<summary></summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user