abakkk
3c67bf3398
colored SVG images
...
Color (fill) SVG images by pressing the `Shift` key.
2020-09-22 23:21:48 +02:00
abakkk
532b9242c9
image element, minor
...
* image.toJson -> image.toJSON.
* remove unused 'fill' and 'operator' properties.
2020-09-22 18:22:41 +02:00
abakkk
dd18ca3051
bunch of menu optimizations
...
* A minimum width for the menu, the same as the aggregate menu, in order to prevent the menu with from growing on submenu open.
* A maximum width for uncontrolled content (font, image and drawing names). Same value and same reason.
* Style the font family labels in idle loop to open the submenu fastly.
* Add the drawing gicons in idle loop to open the submenu smoothly.
2020-09-20 15:40:45 +02:00
abakkk
af694382c8
add color picker
...
It wraps the upstream color picker, that is designed for DBus access.
There is a shortcut and a menu button.
2020-09-20 15:40:45 +02:00
abakkk
5e43b05740
fix Jsons directory monitor
...
`directory.monitor(...)` -> `directory.monitor_directory(...)`.
It is important to specify that the file to monitor is a directory because maybe the directory does not exist yet and remove events would not be monitored.
2020-09-18 12:54:06 +02:00
abakkk
277a3b244b
trim clipboad text lines
...
Since 3.38 there is a line terminator character, that has to be removed with .trim().
2020-09-18 11:05:44 +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
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
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
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
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
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
a128664921
minor, add 'exported' directive for linters
2020-08-31 11:05:33 +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
1abe0b735f
Fix image submenu items sorting
...
Uppercases, non-ascii characters, etc
2020-08-05 23:34:40 +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
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