From ef6c94e462fe53ea4593892a41f716f77677a4cc Mon Sep 17 00:00:00 2001 From: Nokse22 Date: Fri, 1 Sep 2023 17:40:21 +0200 Subject: [PATCH] fixed bugs, changed drag area --- .../io.github.nokse22.minitext.appdata.xml.in | 31 ++++++++++------ src/main.py | 5 ++- src/window.ui | 37 ++++++++++--------- 3 files changed, 43 insertions(+), 30 deletions(-) diff --git a/data/io.github.nokse22.minitext.appdata.xml.in b/data/io.github.nokse22.minitext.appdata.xml.in index af6f53d..44e877b 100644 --- a/data/io.github.nokse22.minitext.appdata.xml.in +++ b/data/io.github.nokse22.minitext.appdata.xml.in @@ -5,10 +5,13 @@ GPL-3.0-or-later Mini Text -

A very small and minimalistic text viewer with minimal editing capabilities. Best used with 'Always on Top' and/or 'Always on Visible Workspace'. It doesn't save or load files, just your clipboard. It is meant to be used as a place where to edit text to be pasted.

+

A very small and minimalistic text viewer with minimal editing capabilities. +Best used with 'Always on Top' and/or 'Always on Visible Workspace'. It doesn't save or load files, just your clipboard. It is meant to be used as a place where to edit text to be pasted. +Use Ctrl+Plus and Ctrl+Minus to change the font size. +

Ephemeral text edits -Nokse + Nokse @@ -18,20 +21,26 @@ https://github.com/Nokse22/mini-text/issues + + +

Fixed bug with shortcuts

+

Draggable only by the side

+
+
- -

Increased padding

-
+ +

Increased padding

+
- -

Added buttons to quickly copy and paste

-
+ +

Added buttons to quickly copy and paste

+
- -

First release

-
+ +

First release

+
diff --git a/src/main.py b/src/main.py index 8083142..cbcfd1a 100644 --- a/src/main.py +++ b/src/main.py @@ -51,6 +51,7 @@ def __init__(self): self.create_action('about', self.on_about_action) self.create_action('preferences', self.on_preferences_action) self.create_action('increase-font', self.on_increase_font_action, ['plus']) + self.create_action('increase-font-too', self.on_increase_font_action, ['=']) self.create_action('decrease-font', self.on_decrease_font_action, ['minus']) def on_increase_font_action(self, widget, _): @@ -89,10 +90,10 @@ def update_controls(self, a=None, b=None): def on_about_action(self, widget, _): """Callback for the app.about action.""" about = Adw.AboutWindow(transient_for=self.props.active_window, - application_name='mini-text', + application_name='Mini Text', application_icon='io.github.nokse22.minitext', developer_name='Nokse', - version='0.1.0', + version='0.1.6', developers=['Nokse'], copyright='© 2023 Nokse') about.present() diff --git a/src/window.ui b/src/window.ui index 3c772be..5b6ba1a 100644 --- a/src/window.ui +++ b/src/window.ui @@ -5,30 +5,32 @@