def __init__(self, **options):
     GSettingsComboTweak.__init__(self,
         "org.gnome.desktop.wm.preferences",
         "theme",
         make_combo_list_with_default(self._get_valid_themes(), "Adwaita"),
         summary=_("Window theme"),
         **options)
Exemplo n.º 2
0
    def __init__(self, **options):
        GSettingsComboTweak.__init__(self,
			_("Window"),
            "org.gnome.desktop.wm.preferences",
            "theme",
            make_combo_list_with_default(self._get_valid_themes(), "Adwaita"),
            **options)
Exemplo n.º 3
0
    def __init__(self, **options):
        GSettingsComboTweak.__init__(self,
			_("Icons"),            
			"org.gnome.desktop.interface",
            "icon-theme",
            make_combo_list_with_default(self._get_valid_icon_themes(), "gnome"),
            **options)
Exemplo n.º 4
0
    def __init__(self, **options):
        GSettingsComboTweak.__init__(self,
			_("Cursor"),
            "org.gnome.desktop.interface",
            "cursor-theme",
            make_combo_list_with_default(self._get_valid_cursor_themes(), "Adwaita"),
            **options)
 def __init__(self, **options):
     GSettingsComboTweak.__init__(self,
         "org.gnome.desktop.interface",
         "gtk-theme",
         make_combo_list_with_default(self._get_valid_themes(), "Adwaita"),
         summary=_("GTK+ theme"),
         **options)
 def __init__(self, **options):
     GSettingsComboTweak.__init__(
         self, _("Key theme"), "org.gnome.desktop.interface",
         "gtk-key-theme",
         make_combo_list_with_default(self._get_valid_key_themes(),
                                      "Default",
                                      default_text=_("<i>Default</i>")),
         **options)
Exemplo n.º 7
0
    def __init__(self, **options):
        GSettingsComboTweak.__init__(
            self, _("Applications"), "org.gnome.desktop.interface",
            "gtk-theme",
            make_combo_list_with_default(self._get_valid_themes(),
                                         "Adwaita"), **options)

        self._gtksettings3 = GtkSettingsManager('3.0')
        self._gtksettings4 = GtkSettingsManager('4.0')
Exemplo n.º 8
0
 def __init__(self, **options):
     GSettingsComboTweak.__init__(self,
         "org.gnome.shell.overrides",
         "button-layout",
         ((':close', 'Close Only'),
         (':minimize,close', 'Minimize and Close'),
         (':maximize,close', 'Maximize and Close'),
         (':minimize,maximize,close', 'All')),
         **options)
    def __init__(self, **options):
        GSettingsComboTweak.__init__(self,
			_("Key theme"),
            "org.gnome.desktop.interface",
            "gtk-key-theme",
            make_combo_list_with_default(
                self._get_valid_key_themes(),
                "Default",
                default_text=_("<i>Default</i>")),
            **options)
 def __init__(self, **options):
     GSettingsComboTweak.__init__(
         self,
         # Translators: This setting refers to a set of pre-defined key bindings
         _("Key theme"),
         "org.gnome.desktop.interface",
         "gtk-key-theme",
         make_combo_list_with_default(self._get_valid_key_themes(), "Default", default_text=_("<i>Default</i>")),
         **options
     )
 def __init__(self, **options):
     GSettingsComboTweak.__init__(
         self,
         # Translators: This setting refers to a set of pre-defined key bindings
         _("Key theme"),
         "org.gnome.desktop.interface",
         "gtk-key-theme",
         make_combo_list_with_default(self._get_valid_key_themes(),
                                      "Default",
                                      default_text=_("<i>Default</i>")),
         **options)
Exemplo n.º 12
0
    def __init__(self, **options):
        valid_themes = []
        themedir = os.path.join(gtweak.DATA_DIR, "themes")
        for t in os.listdir(themedir):
            if os.path.exists(os.path.join(themedir, t, "gtk-2.0")) and os.path.exists(
                os.path.join(themedir, t, "gtk-3.0")
            ):
                valid_themes.append(t)

        GSettingsComboTweak.__init__(
            self, "org.gnome.desktop.interface", "gtk-theme", [(t, t) for t in valid_themes], **options
        )