Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add option to enable onscreen keyboard #62

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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