Commit be40246f authored by John Stowers's avatar John Stowers

Move scaling factor to legacy group

parent a52ef176
......@@ -26,7 +26,8 @@
.tweak.title#title-theme {
padding-top: 3px;
}
.tweak#hinting {
.tweak#hinting,
.tweak#text-scaling-factor {
padding-top: 20px;
}
......
......@@ -30,5 +30,6 @@ TWEAK_GROUPS = [
[(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),
)
]
......@@ -22,7 +22,7 @@ import logging
from gi.repository import Pango, Gtk, GnomeDesktop
from gtweak.gshellwrapper import GnomeShellFactory
from gtweak.tweakmodel import Tweak, TweakGroup, TWEAK_GROUP_WINDOWS, TWEAK_GROUP_TYPING, TWEAK_GROUP_MOUSE, TWEAK_GROUP_FILES, TWEAK_GROUP_DESKTOP, TWEAK_GROUP_FONTS, TWEAK_GROUP_POWER, TWEAK_GROUP_WORKSPACES, TWEAK_SORT_FIRST
from gtweak.widgets import GSettingsSwitchTweak, build_label_beside_widget, GSettingsComboEnumTweak, GSettingsSpinButtonTweak, GSettingsComboTweak, build_horizontal_sizegroup, ListBoxTweakGroup, Title
from gtweak.widgets import GSettingsSwitchTweak, build_label_beside_widget, GSettingsComboEnumTweak, GSettingsComboTweak, build_horizontal_sizegroup, ListBoxTweakGroup, Title
from gtweak.gsettings import GSettingsSetting, GSettingsMissingError, GSettingsFakeSetting
_shell = GnomeShellFactory().get_shell()
......@@ -145,8 +145,6 @@ TWEAK_GROUPS = [
ListBoxTweakGroup(_("Legacy"),
Title(_("Files"), "", uid="title-theme"),
GSettingsSwitchTweak(_("Use location entry"), "org.gnome.nautilus.preferences", "always-use-location-entry",schema_filename="org.gnome.nautilus.gschema.xml"),
Title(_("Fonts"), "", uid="title-theme"),
GSettingsSpinButtonTweak("org.gnome.desktop.interface", "text-scaling-factor", adjustment_step=0.1, digits=1),
Title(_("Mouse"), "", uid="title-theme"),
GSettingsSwitchTweak(_("Show location of pointer"),
"org.gnome.settings-daemon.peripherals.mouse",
......
......@@ -286,7 +286,7 @@ class GSettingsRangeTweak(Gtk.Box, _GSettingsTweak, _DependableMixin):
self.widget_for_size_group = w
class GSettingsSpinButtonTweak(Gtk.Box, _GSettingsTweak, _DependableMixin):
def __init__(self, schema_name, key_name, **options):
def __init__(self, name, schema_name, key_name, **options):
Gtk.Box.__init__(self, orientation=Gtk.Orientation.HORIZONTAL)
_GSettingsTweak.__init__(self, schema_name, key_name, **options)
......@@ -299,7 +299,7 @@ class GSettingsSpinButtonTweak(Gtk.Box, _GSettingsTweak, _DependableMixin):
w.set_digits(options.get('digits', 0))
self.settings.bind(key_name, adjustment, "value", Gio.SettingsBindFlags.DEFAULT)
build_label_beside_widget(self.name, w, hbox=self)
build_label_beside_widget(name, w, hbox=self)
self.widget_for_size_group = w
class GSettingsComboEnumTweak(Gtk.Box, _GSettingsTweak, _DependableMixin):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment