Commit Graph

271 Commits

Author SHA1 Message Date
abakkk 6f76640146 Merge branch 'dev' into 'master'
v6.3

Closes #42

See merge request abakkk/DrawOnYourScreen!14
2020-09-17 22:39:36 +02:00
abakkk b4d680b5ba version -> 6.3 2020-09-17 22:34:00 +02:00
abakkk 509fa0be29 adjust some translated strings 2020-09-17 22:31:39 +02:00
abakkk 23eea44661 add "Persistent over toggles' setting
* Rename "Persistent" to "Persistent over restarts".
* If disabled, "Persistent over toggles" has priority over "Persistent over restarts" and "Drawing on the desktop".

Close issue #42.
2020-09-17 17:30:30 +02:00
abakkk 072adde856 group menu items at the bottom
In addition, 'Save as a SVG file' -> "Export to a SVG file'.
2020-09-17 17:29:59 +02:00
abakkk f9e25fa8f6 clean svg exports
* Group "transform" attributes.
* Round "transform" attribute values.
* Remove unused stroke attributes.
* Add an "eraser" class attribute to let user retrieve the element role.
2020-09-16 22:10:40 +02:00
abakkk 1d73d9f0e3 pass color and font when duplacting
Fix commit 42b4c9c0 .
2020-09-16 17:38:54 +02:00
abakkk 81bce359f9 improve icons, minor 2020-09-16 13:42:22 +02:00
abakkk e3b32ace3b fix ImageFromJson
Do not use the same content for insertable image and gicon. The former depends on the area size whereas the later is square.
2020-09-16 08:52:36 +02:00
abakkk 99964991c0 change some shortcuts
Replace some `Shift + Ctrl + ...` to `Ctrl + Alt + ...`.
2020-09-15 02:06:39 +02:00
abakkk cde5bab27d fix icons
* Old Adwaita icon theme does not contain 'view-mirror-symbolic' icon.
* Redraw `tool-no-symbolic.svg` because of bad rendering in old GNOMEs.
2020-09-15 01:48:01 +02:00
abakkk 42b4c9c00c color and font
* Pass Clutter color and Pango fontDescription objects to elements, not strings.
* Do not use the color format '#rrggbbaa' in svg since it is not supported in GNOME 3.24.
2020-09-15 00:29:02 +02:00
abakkk b63c1e9ffa add possibility to insert an image directly from drawing save (.json)
The Image object is got from the Jsons objects of the openDrawing sub menu.
2020-09-14 22:44:20 +02:00
abakkk a8633f1fbc add gicons to menu openDrawingSubMenu items 2020-09-14 01:38:00 +02:00
abakkk 60091a94b6 rework of Files.Jsons
In the same way as Files.Images.
2020-09-13 23:50:09 +02:00
abakkk e53e69efcf minor, use array instead of object for "OTHER" shortcuts
Array is more semantically appropriate.
For example 2 actions may have the same translations (error of a translator). With an object (or a map), only the second would be displayed, which is problematic to alert to the problem.

Additionally, handle the case where some GSettings keybinding values are empty.
2020-09-13 15:46:22 +02:00
abakkk 464aae77c6 improve images again
* Files.Images does the same thing, with just a new accessor (getSorted).
* Files.Image is splited and the new subclass manage gicons.
2020-09-13 15:44:42 +02:00
abakkk 24682db69c add a lot of icons
* Complete Files.Icons.
* Add a lot of icons in the menu and the osd notifications.
2020-09-12 15:25:42 +02:00
abakkk 771bad2d59 improve images
* Let the user choose the directory.
* Rework of Files.Images.
* area.currentImage is now an ... image, not an index.
* Add 'switch-image-file-reverse' keybinding.
* Add image gicons (from thumbnails) in the submenu.
* Images are reset on drawing mode left or on images added from the clipboard.
2020-09-11 14:22:18 +02:00
abakkk a06d318646 rework of shortcuts.js 2020-09-10 15:55:19 +02:00
abakkk 8277710510 get all icons from Files.Icons 2020-09-10 15:19:17 +02:00
abakkk 442d20b387 paste image files from clipboard 2020-09-09 22:25:56 +02:00
abakkk 56008f3041 add ranges to drawing settings schema
* It is no longer required to clamp the setting value in area.js.
* Add a "range" property, completed with another 'step' property, to PixelSpinButton in order to directly initiate the lower and upper values of the adjustment from the relevant setting range.
* Not related: fix an inversion between Pango and Cairo in element.js.
2020-09-09 12:12:29 +02:00
abakkk 03b73862cc .pot rework
* .pot file can be generated automaticaly from new locale/POTFILES.in.
* move shortcuts key and strings to new shortcut.js
2020-09-09 09:40:45 +02:00
abakkk 2dd900bddf new DisplayStrings object
Group the most strings to display in a new DisplayStrings object.
It is used by both menu and osd notifications.
2020-09-07 18:56:48 +02:00
abakkk f9769c11f2 default font and font description
* Use interface font as default font
* Work with a `Pango.FontDescription` instead of separate font properties.
2020-09-05 00:03:05 +02:00
abakkk 5af13a1e12 add reset button to prefs 2020-09-03 09:04:01 +02:00
abakkk 2195aed3c0 move eraser/svg note
Remove the note about eraser and svg export from the prefs and add it to readme "Tips and tricks".
2020-09-02 16:40:19 +02:00
abakkk c1689cac75 rework prefs, settings, locales
Although there is a lot of changes, nothing is important.
2020-09-02 16:16:23 +02:00
abakkk 6a8afcc20a use timestamps instead of Math.random in elementGrabber 2020-08-31 14:06:47 +02:00
abakkk 89067a8dd9 use an Extension class 2020-08-31 13:05:41 +02:00
abakkk 1d95fac3bf add warning log on activation for unsupported GNOME Shell versions
As the extension may work in further GNOME Shell versions without targeted developpement, just add a small warning log without blocking anything.
2020-08-31 11:13:49 +02:00
abakkk a128664921 minor, add 'exported' directive for linters 2020-08-31 11:05:33 +02:00
abakkk ecab1e2bed 'open-previous/next-drawing' shortcuts
Reuse `Ctrl + O` keybinding that have been freed by the previous commit (remove 'open-user-stylesheet')
2020-08-31 10:04:43 +02:00
abakkk b3a1a77160 replace user stylesheet with proper drawing settings
Since the most drawing params can be changed via menu or shortcuts, remove default.css and user.css.

* Missing params like palettes, dash, grid, etc, are added to prefs.
* Add palette choice to menu and shortcuts.
* Some defaults like fonts, line width, etc, are no longer modifiable by the user.
2020-08-31 09:43:00 +02:00
abakkk 01701538bb minor, rework settings 2020-08-23 11:49:26 +02:00
abakkk 0fe72b7746 Merge branch 'dev' into 'master'
v6.2

See merge request abakkk/DrawOnYourScreen!13
2020-08-23 11:19:46 +02:00
abakkk 9585d3c80b version -> 6.2 2020-08-08 01:13:52 +02:00
abakkk 4e0455af34 GS 3.24 compatibility
* item actor
* Gio.File.load_bytes not available
2020-08-08 00:27:41 +02:00
abakkk 075b080aaf fix submenu scrollview adjustment
* auto-scroll when pointer is near the top or the bottom
* scroll with keyboard arrows

copy files-view extension
2020-08-06 22:10:12 +02:00
abakkk a1ce4aaf79 Add font family reversed switching 2020-08-06 00:26:10 +02:00
abakkk 39ec1ba888 toggle -> switch 2020-08-06 00:06:01 +02:00
abakkk 1abe0b735f Fix image submenu items sorting
Uppercases, non-ascii characters, etc
2020-08-05 23:34:40 +02:00
abakkk c78f5e82da Extend font family possibilities
To fix in the future: memory usage of font-styled item labels
2020-08-05 23:30:25 +02:00
abakkk 80e2955f8c fix menu item name and sensitivity stynchronization 2020-08-05 02:49:52 +02:00
abakkk 408929848d minor, property name 2020-08-05 02:13:56 +02:00
abakkk 11b90ecc0a put json file stuff in files.js
In the same way than image files.
2020-08-05 02:01:17 +02:00
abakkk e686f03082 minor, remove Lang.bind 2020-08-01 15:00:49 +02:00
abakkk 1172e9da6f new image shape
Images files are picked from `~/DrawOnYourScreen/images/` (and `extensiondir/images/`)
svg, png, jpeg, ...(pixbuf)
2020-08-01 14:08:17 +02:00
abakkk 7a41c6157c improve menu grouped action items
* Fix style: use 'popup-menu' and 'popup-menu-item' style classes to provide theme colors
* Synchonize button sensitivity
2020-07-13 12:53:01 +02:00