Skip to content

Commit

Permalink
fixed bugs, changed drag area
Browse files Browse the repository at this point in the history
  • Loading branch information
Nokse22 committed Sep 1, 2023
1 parent 4f80564 commit ef6c94e
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 30 deletions.
31 changes: 20 additions & 11 deletions data/io.github.nokse22.minitext.appdata.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@
<project_license>GPL-3.0-or-later</project_license>
<name>Mini Text</name>
<description>
<p>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.</p>
<p>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.
</p>
</description>
<summary>Ephemeral text edits</summary>
<developer_name>Nokse</developer_name>
<developer_name>Nokse</developer_name>
<content_rating type="oars-1.0">
</content_rating>

Expand All @@ -18,20 +21,26 @@
<url type="bugtracker">https://github.com/Nokse22/mini-text/issues</url>

<releases>
<release version="0.1.6" date="2023-09-01">
<description>
<p>Fixed bug with shortcuts</p>
<p>Draggable only by the side</p>
</description>
</release>
<release version="0.1.5" date="2023-08-06">
<description>
<p>Increased padding</p>
</description>
<description>
<p>Increased padding</p>
</description>
</release>
<release version="0.1.4" date="2023-08-04">
<description>
<p>Added buttons to quickly copy and paste</p>
</description>
<description>
<p>Added buttons to quickly copy and paste</p>
</description>
</release>
<release version="0.1.3" date="2023-08-04">
<description>
<p>First release</p>
</description>
<description>
<p>First release</p>
</description>
</release>
</releases>

Expand Down
5 changes: 3 additions & 2 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, ['<control>plus'])
self.create_action('increase-font-too', self.on_increase_font_action, ['<control>='])
self.create_action('decrease-font', self.on_decrease_font_action, ['<control>minus'])

def on_increase_font_action(self, widget, _):
Expand Down Expand Up @@ -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()
Expand Down
37 changes: 20 additions & 17 deletions src/window.ui
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,32 @@
<template class="MiniTextWindow" parent="AdwApplicationWindow">
<property name="modal">true</property>
<property name="title"></property>
<!-- <property name="height-request">178</property> -->
<property name="width-request">300</property>
<child>
<object class="GtkWindowHandle">
<object class="GtkBox">
<child>
<object class="GtkBox">
<object class="GtkScrolledWindow">
<!-- <property name="margin-end">46</property> -->
<child>
<object class="GtkScrolledWindow">
<!-- <property name="margin-end">46</property> -->
<object class="GtkBox">
<child>
<object class="GtkBox">
<child>
<object class="GtkTextView" id="text_view">
<property name="css-classes">textviewer</property>
<property name="wrap-mode">word-char</property>
<property name="hexpand">true</property>
</object>
</child>
<child>
<object class="GtkSeparator">
</object>
</child>
<object class="GtkTextView" id="text_view">
<property name="css-classes">textviewer</property>
<property name="wrap-mode">word-char</property>
<property name="hexpand">true</property>
</object>
</child>
<child>
<object class="GtkSeparator">
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="GtkWindowHandle">
<child>
<object class="GtkBox">
<property name="orientation">1</property>
Expand All @@ -46,13 +48,14 @@
<property name="margin-start">6</property>
<property name="margin-top">6</property>
<property name="margin-end">6</property>
<!-- <property name="margin-bottom">9</property> -->
</object>
</child>
<child>
<object class="GtkBox">
<property name="vexpand">true</property>
</object>
</child>"
</child>
<child>
<object class="GtkButton">
<property name="margin-top">6</property>
Expand Down

0 comments on commit ef6c94e

Please sign in to comment.