Skip to content

Commit

Permalink
Minor documentation improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
maoschanz committed Oct 22, 2019
1 parent ad151d9 commit b18369e
Show file tree
Hide file tree
Showing 22 changed files with 46 additions and 147 deletions.
15 changes: 3 additions & 12 deletions .github/ISSUE_TEMPLATE/bug_report.md
Expand Up @@ -11,20 +11,14 @@ assignees: ''

<!--Describe the bug, clearly and concisely-->

<!--If applicable, add screenshots to help explain your problem.-->

## Steps to reproduce the bug:

1. ...
2. ...
3. ...

## Expected behavior

<!--A clear and concise description of what you expected to happen.-->

## Screenshots

<!--If applicable, add screenshots to help explain your problem.-->

----

## System
Expand All @@ -34,9 +28,6 @@ assignees: ''
- Device (desktop computer/tablet/phone/...):
- OS:
- Desktop environment:
- Package format (flatpak, DEB, AUR ?):
- Package format (flatpak, native package, snap?):
- App version:

## Additional context

<!--Add any other context about the problem here.-->
19 changes: 15 additions & 4 deletions README.md
Expand Up @@ -31,7 +31,7 @@ More screenshots (version 0.4.x):
- [elementaryOS UI](./docs/screenshots/elementary.png)
- [Cinnamon UI](./docs/screenshots/cinnamon.png)
- [MATE UI](./docs/screenshots/mate_scale.png)
- The default "GNOME" UI can be resized to be compatible with the Purism Librem 5 phone. [Screenshot](./docs/screenshots/librem_options.png) and [screencast on Youtube](https://www.youtube.com/watch?v=xwfDnPd5NDU) (version 0.2).
- The default "GNOME" UI can be resized to be compatible with the Purism Librem 5 phone. [Screenshot](./docs/screenshots/librem_options.png) and [screencast on Youtube](https://www.youtube.com/watch?v=xwfDnPd5NDU) (version 0.2, which is old).

----

Expand Down Expand Up @@ -81,7 +81,12 @@ You can install it from flathub.org using the instructions on [this page](https:
- Line (options: arrow, dashes, blur, gradient, …)
- Arc (options: arrow, dashes, …)
- Insert text (options: font, shadow, font size, …)
- Shape (rectangle/circle/oval/polygon/free shape, options: filling, …)
- Shape (options: filling, gradient, …):
- rectangle
- circle
- oval
- polygon
- free shape
- Color picker
- Paint (options: remove a color, …)

Expand All @@ -98,10 +103,16 @@ cut, copy, paste, edit with canvas tools, export, open as a new image, etc.

These tools allow to edit the whole image, or to edit a selected part of it.

- Crop (remark: the previewed picture isn't at the actual scale)
- Crop
- Scale (options: keep proportions or not)
- Rotate (rotate or flip)
- Filters (blur, increase or decrease saturation, transparency, invert colors, pixelate, …)
- Filters:
- Blur
- Saturation (increase or decrease)
- Transparency
- Invert colors
- Pixelate
- …

----

Expand Down
20 changes: 8 additions & 12 deletions com.github.maoschanz.drawing.json
Expand Up @@ -10,16 +10,12 @@
"--socket=wayland",
"--metadata=X-DConf=migrate-path=/com/github/maoschanz/drawing/"
],
"modules" : [
{
"name" : "drawing",
"buildsystem" : "meson",
"sources" : [
{
"type" : "git",
"url" : "https://github.com/maoschanz/drawing"
}
]
}
]
"modules" : [{
"name" : "drawing",
"buildsystem" : "meson",
"sources" : [{
"type" : "git",
"url" : "https://github.com/maoschanz/drawing"
}]
}]
}
2 changes: 1 addition & 1 deletion meson.build
@@ -1,6 +1,6 @@
project(
'drawing',
version: '0.5.0',
version: '0.5.1',
meson_version: '>= 0.50.0',
)

Expand Down
12 changes: 0 additions & 12 deletions po/de_DE.po
Expand Up @@ -1343,18 +1343,6 @@ msgstr "Auswahl skalieren"
msgid "Scaling the canvas"
msgstr "Leinwand skalieren"

#~ msgid "From Selection"
#~ msgstr "Aus Auswahl"

#~ msgid "From Clipboard"
#~ msgstr "Aus Zwischenablage"

#~ msgid "Filled (main color)"
#~ msgstr "Gefüllt (Hauptfarbe)"

#~ msgid "Filled (secondary color)"
#~ msgstr "Gefüllt (Zweitfarbe)"

#~ msgid "Default zoom"
#~ msgstr "Standard-Zoom"

Expand Down
1 change: 0 additions & 1 deletion po/drawing.pot
Expand Up @@ -3,7 +3,6 @@
# This file is distributed under the same license as the drawing package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: drawing\n"
Expand Down
12 changes: 0 additions & 12 deletions po/es.po
Expand Up @@ -1353,18 +1353,6 @@ msgstr "Escalando la selección"
msgid "Scaling the canvas"
msgstr "Escalando el lienzo"

#~ msgid "From Selection"
#~ msgstr "Desde la selección"

#~ msgid "From Clipboard"
#~ msgstr "Desde el portapapeles"

#~ msgid "Filled (main color)"
#~ msgstr "Relleno (color principal)"

#~ msgid "Filled (secondary color)"
#~ msgstr "Relleno (color secundario)"

#~ msgid "Default zoom"
#~ msgstr "Ampliación predeterminada"

Expand Down
2 changes: 1 addition & 1 deletion po/fr.po
Expand Up @@ -796,7 +796,7 @@ msgstr "Barre de boutons"

#: src/preferences.py:162
msgid "Toolbar only (symbolic icons)"
msgstr "Boutons seulement (icônes symboliques)"
msgstr "Boutons (icônes symboliques)"

#: src/utilities.py:22
msgid "All pictures"
Expand Down
14 changes: 0 additions & 14 deletions po/he.po
Expand Up @@ -1381,20 +1381,6 @@ msgstr "שינוי קנה מידה של הבחירה"
msgid "Scaling the canvas"
msgstr "שינוי קנה מידה של לוח הציור"

#, fuzzy
#~ msgid "From Selection"
#~ msgstr "בחירה חופשית"

#, fuzzy
#~ msgid "From Clipboard"
#~ msgstr "בחירה מהלוח"

#~ msgid "Filled (main color)"
#~ msgstr "ממולא (צבע ראשי)"

#~ msgid "Filled (secondary color)"
#~ msgstr "ממולא (צבע משנה)"

#~ msgid "Close"
#~ msgstr "סגירה"

Expand Down
12 changes: 0 additions & 12 deletions po/it.po
Expand Up @@ -1349,18 +1349,6 @@ msgstr "Ridimensionamento della selezione"
msgid "Scaling the canvas"
msgstr "Ridimensionamento della tela"

#~ msgid "From Selection"
#~ msgstr "Dalla selezione"

#~ msgid "From Clipboard"
#~ msgstr "Dagli Appunti"

#~ msgid "Filled (main color)"
#~ msgstr "Riempito (colore primario)"

#~ msgid "Filled (secondary color)"
#~ msgstr "Riempito (colore secondario)"

#~ msgid "Close"
#~ msgstr "Chiudi"

Expand Down
12 changes: 0 additions & 12 deletions po/nl.po
Expand Up @@ -1340,18 +1340,6 @@ msgstr "Bezig met wijzigen van selectiegrootte"
msgid "Scaling the canvas"
msgstr "Bezig met wijzigen van canvasgrootte"

#~ msgid "From Selection"
#~ msgstr "Uit selectie"

#~ msgid "From Clipboard"
#~ msgstr "Van klembord"

#~ msgid "Filled (main color)"
#~ msgstr "Opvullen (hoofdkleur)"

#~ msgid "Filled (secondary color)"
#~ msgstr "Opvullen (alternatieve kleur)"

#~ msgid "Default zoom"
#~ msgstr "Standaard zoomniveau"

Expand Down
12 changes: 0 additions & 12 deletions po/pt_BR.po
Expand Up @@ -1351,18 +1351,6 @@ msgstr "Redimensionar a seleção"
msgid "Scaling the canvas"
msgstr "Redimensionar a tela"

#~ msgid "From Selection"
#~ msgstr "Da seleção"

#~ msgid "From Clipboard"
#~ msgstr "Do clipboard"

#~ msgid "Filled (main color)"
#~ msgstr "Preenchimento (Cor primaria)"

#~ msgid "Filled (secondary color)"
#~ msgstr "Preenchimento (Cor secundaria)"

#~ msgid "Close"
#~ msgstr "Fechar"

Expand Down
10 changes: 0 additions & 10 deletions po/ru.po
Expand Up @@ -1355,16 +1355,6 @@ msgstr "Масштабировать выделенное"
msgid "Scaling the canvas"
msgstr "Масштабировать холст"

#, fuzzy
#~ msgid "From Selection"
#~ msgstr "Свободное выделение"

#~ msgid "Filled (main color)"
#~ msgstr "Заполнение (основной цвет)"

#~ msgid "Filled (secondary color)"
#~ msgstr "Заполнение (вторичный цвет)"

#~ msgid "Close"
#~ msgstr "Закрыть"

Expand Down
17 changes: 0 additions & 17 deletions po/tr.po
Expand Up @@ -1340,18 +1340,6 @@ msgstr "Seçimi ölçeklendir"
msgid "Scaling the canvas"
msgstr "Tuvali ölçeklendir"

#~ msgid "From Selection"
#~ msgstr "Seçimden"

#~ msgid "From Clipboard"
#~ msgstr "Panodan"

#~ msgid "Filled (main color)"
#~ msgstr "Dolgulu (ana renk)"

#~ msgid "Filled (secondary color)"
#~ msgstr "Dolgulu (ikincil renk)"

#~ msgid "Default zoom"
#~ msgstr "Öntanımlı yakınlaştırma"

Expand Down Expand Up @@ -1382,8 +1370,3 @@ msgstr "Tuvali ölçeklendir"
#~ msgid "Similar color selection"
#~ msgstr "Benzer renk seçimi"

#~ msgid "Selection actions"
#~ msgstr "Seçim eylemleri"

#~ msgid "Add"
#~ msgstr "Ekle"
3 changes: 1 addition & 2 deletions src/color_popover.py
Expand Up @@ -15,9 +15,8 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

from gi.repository import Gtk, Gdk
import cairo

from gi.repository import Gtk, Gdk
from .utilities import utilities_get_rgba_name

class DrawingColorPopover(Gtk.Popover):
Expand Down
6 changes: 4 additions & 2 deletions src/custom_image.py
@@ -1,4 +1,4 @@
# properties.py
# custom_image.py
#
# Copyright 2019 Romain F. T.
#
Expand All @@ -16,7 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.

from gi.repository import Gtk, Gdk

from .utilities import utilities_add_px_to_spinbutton

class DrawingCustomImageDialog(Gtk.Dialog):
__gtype_name__ = 'DrawingCustomImageDialog'
Expand All @@ -40,10 +40,12 @@ def build_ui(self):
self.get_content_area().add(props_content_area)

self.width_btn = builder.get_object('spin_width')
utilities_add_px_to_spinbutton(self.width_btn, 4, 'px')
default_w = self.appwindow._settings.get_int('default-width')
self.width_btn.set_value(default_w)

self.height_btn = builder.get_object('spin_height')
utilities_add_px_to_spinbutton(self.height_btn, 4, 'px')
default_h = self.appwindow._settings.get_int('default-height')
self.height_btn.set_value(default_h)

Expand Down
4 changes: 2 additions & 2 deletions src/image.py
Expand Up @@ -15,9 +15,8 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

from gi.repository import Gtk, Gdk, Gio, GdkPixbuf, GLib, Pango
import cairo

from gi.repository import Gtk, Gdk, Gio, GdkPixbuf, GLib, Pango
from .utilities import utilities_save_pixbuf_at
from .selection_manager import DrawingSelectionManager

Expand Down Expand Up @@ -489,6 +488,7 @@ def get_event_coords(self, event):
return event_x, event_y

def get_corrected_coords(self, x1, x2, y1, y2, with_selection_coords):
"""..."""
# TODO comprendre à quoi sert cette méthode et la documenter
# FIXME incorrect avec le zoom
x1 -= self.scroll_x
Expand Down
2 changes: 2 additions & 0 deletions src/message_dialog.py
Expand Up @@ -56,3 +56,5 @@ def add_widget(self, widget):
self.get_content_area().add(widget)
self.get_content_area().show_all()

############################################################################
################################################################################
3 changes: 1 addition & 2 deletions src/minimap.py
Expand Up @@ -15,9 +15,8 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

from gi.repository import Gtk, Gdk, GdkPixbuf
import cairo

from gi.repository import Gtk, Gdk, GdkPixbuf
from .utilities import utilities_show_overlay_on_context

class DrawingMinimap(Gtk.Popover):
Expand Down
1 change: 0 additions & 1 deletion src/options_manager.py
Expand Up @@ -16,7 +16,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.

from gi.repository import GLib
import cairo

class DrawingOptionsManager():
__gtype_name__ = 'DrawingOptionsManager'
Expand Down
1 change: 0 additions & 1 deletion src/preferences.py
Expand Up @@ -16,7 +16,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.

from gi.repository import Gtk, Gio, GLib, Gdk

from .utilities import utilities_add_px_to_spinbutton

SETTINGS_SCHEMA = 'com.github.maoschanz.drawing'
Expand Down

0 comments on commit b18369e

Please sign in to comment.