Commit a1f48bed authored by Jeremy Bicha's avatar Jeremy Bicha 🎹

widgets: Add top margin for internal "Title" headers

parent 1066e878
......@@ -21,7 +21,7 @@ dicons = GSettingsSwitchTweak(_("Show Icons"),"org.gnome.desktop.background","sh
TWEAK_GROUPS = [
ListBoxTweakGroup(_("Desktop"),
Title(_("Icons on Desktop"), "", uid="title-theme"),
Title(_("Icons on Desktop"), "", uid="title-theme", top=True),
dicons,
GSettingsSwitchTweak(_("Home"),"org.gnome.nautilus.desktop", "home-icon-visible", depends_on=dicons, schema_filename="org.gnome.nautilus.gschema.xml"),
GSettingsSwitchTweak(_("Network Servers"),"org.gnome.nautilus.desktop", "network-icon-visible", depends_on=dicons, schema_filename="org.gnome.nautilus.gschema.xml"),
......
......@@ -260,7 +260,7 @@ class AdditionalLayoutButton(Gtk.Box, Tweak):
TWEAK_GROUPS = [
ListBoxTweakGroup(_("Keyboard & Mouse"),
Title(_("Keyboard"), ""),
Title(_("Keyboard"), "", top=True),
GSettingsSwitchTweak(_("Show Extended Input Sources"),
"org.gnome.desktop.input-sources",
"show-all-sources",
......
......@@ -546,6 +546,8 @@ class Title(Gtk.Box, Tweak):
widget = Gtk.Label()
widget.set_markup("<b>"+GLib.markup_escape_text(name)+"</b>")
widget.props.xalign = 0.0
if not options.get("top"):
widget.set_margin_top(10)
self.add(widget)
class GSettingsSwitchTweakValue(Gtk.Box, _GSettingsTweak):
......
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