diff --git a/data/de.wolfvollprecht.UberWriter.gschema.xml b/data/de.wolfvollprecht.UberWriter.gschema.xml index e7fdb28..82d891c 100644 --- a/data/de.wolfvollprecht.UberWriter.gschema.xml +++ b/data/de.wolfvollprecht.UberWriter.gschema.xml @@ -8,16 +8,14 @@ false Dark mode - If enabled, the window will be dark themed - If disabled, the window will be light themed - asked to install them manually. + Enable or disable the dark mode. true Spellcheck - Enable/disable spellchecking in the application. + Enable or disable spellchecking. @@ -25,14 +23,14 @@ Show gradient overlay Show a gradient overlay over the text at the top anf bottom of the window. - It can cause performance problems to some users + It can cause performance problems to some users. true Allow Uberwriter to poll cursor motion - Used for hidding the headerbar after 3 seconds if the cursor is not moving. + Hide the header and status bars if the cursor is not moving. diff --git a/data/ui/Preferences.ui b/data/ui/Preferences.ui index 3880dc1..fb995dc 100644 --- a/data/ui/Preferences.ui +++ b/data/ui/Preferences.ui @@ -55,7 +55,7 @@ True False end - Autospellcheck + Check spelling while typing right diff --git a/uberwriter/window.py b/uberwriter/window.py index ba784c7..1ef21be 100644 --- a/uberwriter/window.py +++ b/uberwriter/window.py @@ -129,7 +129,7 @@ class Window(Gtk.ApplicationWindow): self.text_editor.set_vadjustment(self.builder.get_object('vadjustment1')) self.text_editor.set_wrap_mode(Gtk.WrapMode.WORD_CHAR) self.text_editor.connect('focus-out-event', self.focus_out) - self.text_editor.get_style_context().connect('changed', self.style_changed) + self.text_editor.get_style_context().connect('changed', self.on_style_changed) self.text_editor.set_top_margin(80) self.text_editor.set_bottom_margin(16) @@ -547,7 +547,7 @@ class Window(Gtk.ApplicationWindow): alloc.width = width_request self.text_editor.size_allocate(alloc) - def style_changed(self, _widget, _data=None): + def on_style_changed(self, _widget, _data=None): pgc = self.text_editor.get_pango_context() mets = pgc.get_metrics() self.markup_buffer.set_multiplier( @@ -574,7 +574,7 @@ class Window(Gtk.ApplicationWindow): filefilter = Gtk.FileFilter.new() filefilter.add_mime_type('text/x-markdown') filefilter.add_mime_type('text/plain') - filefilter.set_name('MarkDown (.md)') + filefilter.set_name('Markdown (.md)') filechooser = Gtk.FileChooserDialog( _("Save your File"), self,