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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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')
 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)
    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
        )
        if response == Gtk.ResponseType.YES:
            self._original_factor = self._xsettings.get_window_scaling_factor()
        else:
            self._xsettings.set_window_scaling_factor(self._original_factor)
            adj.set_value(self._original_factor)

        self._close()
        self._dialog.destroy()

TWEAK_GROUPS = [
    ListBoxTweakGroup(TWEAK_GROUP_WINDOWS,
        GSettingsSwitchTweak(_("Attached Modal Dialogs"),"org.gnome.mutter", "attach-modal-dialogs"),
        GSettingsSwitchTweak(_("Automatically Raise Windows"),"org.gnome.desktop.wm.preferences", "auto-raise"),
        GSettingsSwitchTweak(_("Resize with Secondary-click"),"org.gnome.desktop.wm.preferences", "resize-with-right-button"),
        GSettingsComboTweak(_("Window Action Key"),
                        "org.gnome.desktop.wm.preferences",
                        "mouse-button-modifier",
                        [("disabled", _("Disabled")), ("<Alt>", "Alt"), ("<Super>", "Super")]),
        GSettingsComboEnumTweak(_("Focus Mode"), "org.gnome.desktop.wm.preferences", "focus-mode"),
        Title(_("Titlebar Actions"), "", uid="title-titlebar-actions"),
        GSettingsComboEnumTweak(_("Double-click"),"org.gnome.desktop.wm.preferences", "action-double-click-titlebar"),
        GSettingsComboEnumTweak(_("Middle-click"),"org.gnome.desktop.wm.preferences", "action-middle-click-titlebar"),
        GSettingsComboEnumTweak(_("Secondary-click"),"org.gnome.desktop.wm.preferences", "action-right-click-titlebar"),
        Title(_("Titlebar Buttons"), "", uid="title-theme"),
        ShowWindowButtons(_("Maximize"), "maximize"),
        ShowWindowButtons(_("Minimize"), "minimize"),
        Title(_("HiDPI"), "", uid="title-hidpi"),
        WindowScalingFactorTweak(),
    )
]

Beispiel #14
0
TWEAK_GROUPS = [
    ListBoxTweakGroup(
        TWEAK_GROUP_FONTS,
        GSettingsFontButtonTweak(_("Window Titles"),
                                 "org.gnome.desktop.wm.preferences",
                                 "titlebar-font"),
        GSettingsFontButtonTweak(_("Interface"), "org.gnome.desktop.interface",
                                 "font-name"),
        GSettingsFontButtonTweak(_("Documents"), "org.gnome.desktop.interface",
                                 "document-font-name"),
        GSettingsFontButtonTweak(_("Monospace"), "org.gnome.desktop.interface",
                                 "monospace-font-name"),
        GSettingsComboTweak(_("Hinting"),
                            "org.gnome.settings-daemon.plugins.xsettings",
                            "hinting",
                            [(i, i.title())
                             for i in ("none", "slight", "medium", "full")]),
        GSettingsComboTweak(_("Antialiasing"),
                            "org.gnome.settings-daemon.plugins.xsettings",
                            "antialiasing",
                            [(i, i.title())
                             for i in ("none", "grayscale", "rgba")]),
        GSettingsSpinButtonTweak(_("Scaling Factor"),
                                 "org.gnome.desktop.interface",
                                 "text-scaling-factor",
                                 adjustment_step=0.1,
                                 digits=1),
    )
]
                    os.path.isfile(os.path.join(d, "gtk-2.0-key", "gtkrc")))
        return valid


TWEAK_GROUPS = [
    ListBoxTweakGroup(
        _("Keyboard and Mouse"),
        GSettingsSwitchTweak(
            _("Show All Input Sources"),
            "org.gnome.desktop.input-sources",
            "show-all-sources",
            logout_required=True,
        ),
        KeyThemeSwitcher(),
        GSettingsComboTweak(_("Switch between overview and desktop"),
                            "org.gnome.mutter", "overlay-key",
                            [("Super_L", _("Left super")),
                             ("Super_R", _("Right super"))]),
        Title(_("Mouse"), ""),
        GSettingsSwitchTweak(
            _("Show location of pointer"),
            "org.gnome.settings-daemon.peripherals.mouse",
            "locate-pointer",
            schema_filename="org.gnome.settings-daemon.peripherals.gschema.xml"
        ),
        PrimaryPasteTweak(),
        Title(_("Touchpad"), ""),
        GSettingsComboEnumTweak(
            _("Click method"),
            "org.gnome.desktop.peripherals.touchpad",
            "click-method",
            schema_filename="org.gnome.desktop.peripherals.gschema.xml"),
        self._settings.set_string(ShellThemeTweak.THEME_GSETTINGS_NAME, val)


TWEAK_GROUPS = [
    ListBoxTweakGroup(
        _("Appearance"),
        #GSettingsSwitchTweak("Buttons Icons","org.gnome.desktop.interface", "buttons-have-icons"),
        #GSettingsSwitchTweak("Menu Icons","org.gnome.desktop.interface", "menus-have-icons"),
        Title(_("Themes"), "", uid="title-theme"),
        GtkThemeSwitcher(),
        CursorThemeSwitcher(),
        IconThemeSwitcher(),
        ShellThemeTweak(loaded=_shell_loaded),
        GSettingsComboTweak(
            _("Sound"),
            "org.gnome.desktop.sound",
            "theme-name",
            get_sound_themes(),
            desc=_("Specifies which sound theme to use for sound events.")),
        Title(_("Background"), "", uid="title-theme"),
        GSettingsFileChooserButtonTweak(
            _("Image"),
            "org.gnome.desktop.background",
            "picture-uri",
            local_only=True,
            mimetypes=["application/xml", "image/png", "image/jpeg"]),
        GSettingsComboEnumTweak(_("Adjustment"),
                                "org.gnome.desktop.background",
                                "picture-options"),
        Title(_("Lock Screen"), "", uid="title-theme"),
        GSettingsFileChooserButtonTweak(
            _("Image"),