Skip to content

Commit

Permalink
Add option to enable onscreen keyboard (linuxmint#59)
Browse files Browse the repository at this point in the history
Add a switch to enable onscreen keyboard.

Move this new switch and the already existing layout selection list out
of section "Panel indicators" into a new section "On-screen keyboard".
  • Loading branch information
Jakko3 committed Dec 21, 2023
1 parent a533890 commit b4b9d74
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions usr/lib/lightdm-settings/lightdm-settings
Original file line number Diff line number Diff line change
Expand Up @@ -254,14 +254,10 @@ class Application(Gtk.Application):
row.set_tooltip_text(_("Choose which monitor should display the login window, or select 'Auto' if you want it to follow the mouse."))
section.add_row(row)

section = page.add_section(_("Panel indicators"))
section = page.add_section(_("On-screen keyboard"))

row = SettingsRow(Gtk.Label(label=_("Hostname")), SettingsSwitch(keyfile, settings, "show-hostname"))
row.set_tooltip_text(_("Show the computer hostname in the panel."))
section.add_row(row)

row = SettingsRow(Gtk.Label(label=_("Accessibility options")), SettingsSwitch(keyfile, settings, "show-a11y"))
row.set_tooltip_text(_("Show accessibility options in the panel."))
row = SettingsRow(Gtk.Label(label=_("On-screen keyboard")), SettingsSwitch(keyfile, settings, "onscreen-keyboard"))
row.set_tooltip_text(_("Enable the on-screen keyboard."))
section.add_row(row)

onboard_layouts_path = "/usr/share/onboard/layouts"
Expand All @@ -276,6 +272,16 @@ class Application(Gtk.Application):
row = SettingsRow(Gtk.Label(label=_("On-screen keyboard layout")), SettingsCombo(keyfile, settings, "onscreen-keyboard-layout", layout_options, "string", size_group))
section.add_row(row)

section = page.add_section(_("Panel indicators"))

row = SettingsRow(Gtk.Label(label=_("Hostname")), SettingsSwitch(keyfile, settings, "show-hostname"))
row.set_tooltip_text(_("Show the computer hostname in the panel."))
section.add_row(row)

row = SettingsRow(Gtk.Label(label=_("Accessibility options")), SettingsSwitch(keyfile, settings, "show-a11y"))
row.set_tooltip_text(_("Show accessibility options in the panel."))
section.add_row(row)

row = SettingsRow(Gtk.Label(label=_("Battery power")), SettingsSwitch(keyfile, settings, "show-power"))
row.set_tooltip_text(_("On laptops, show the battery power in the panel."))
section.add_row(row)
Expand Down

0 comments on commit b4b9d74

Please sign in to comment.