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
abakkk
352f86018b
center grid overlay
2020-07-11 22:42:48 +02:00
abakkk
19355033ff
regroup first menu items
...
Like old GS system menu.
2020-07-11 22:28:44 +02:00
abakkk
813d6b0f1b
Show the textEntry when ibusCandidatePopup is visible
2020-07-11 15:59:08 +02:00
abakkk
e8140eae88
Text elements as a separated class
2020-07-08 11:47:51 +02:00
abakkk
96efac1e3f
draw.js -> area.js
2020-07-04 08:42:45 +02:00
abakkk
ca96e76d12
draw-to-elements 5
2020-07-04 08:35:59 +02:00
abakkk
78be404571
draw-to-elements 4
...
Merge branch 'elements' into draw-to-elements
2020-07-03 23:37:52 +02:00
abakkk
f4909e021d
draw-to-elements 3
2020-07-03 23:37:09 +02:00
abakkk
35980726fe
draw-to-elements 2
2020-07-03 23:32:26 +02:00
abakkk
b2b6a6a8fe
draw-to-elements 1
2020-07-03 23:27:52 +02:00
abakkk
92e1c0d299
osd.js -> helper.js
2020-07-03 23:25:20 +02:00
abakkk
0c311ae477
draw-to-osd 5
2020-07-03 23:16:43 +02:00
abakkk
303a93b721
draw-to-osd 4
...
Merge branch 'osd' into draw-to-osd
2020-07-03 23:09:39 +02:00
abakkk
9269022d0f
draw-to-osd 3
2020-07-03 23:08:50 +02:00
abakkk
27872b84db
draw-to-osd 2
2020-07-03 23:03:09 +02:00
abakkk
da7ad4069a
draw-to-osd 1
2020-07-03 22:59:54 +02:00
abakkk
ef51bb8bf9
draw-to-menu 5
2020-07-03 22:51:23 +02:00
abakkk
34baae6df2
draw-to-menu 4
...
Merge branch 'menu' into draw-to-menu
2020-06-30 23:44:41 +02:00
abakkk
1abdb528a2
draw-to-menu 3
2020-06-30 23:43:52 +02:00
abakkk
9b7e7cc3cb
draw-to-menu 2
2020-06-30 23:41:54 +02:00
abakkk
80163fcca8
draw-to-menu 1
2020-06-30 23:40:15 +02:00
abakkk
3ddaa28400
Update Simplified Chinese translation
...
related to #34 , #35
2020-06-30 14:43:58 +02:00
abakkk
8ce87b8f1f
Create french translation
...
related to #35
2020-06-30 14:33:49 +02:00
abakkk
55efba0b3c
Small pot fix
...
"stroke" -> "outline"
related to #35
2020-06-30 13:01:47 +02:00
abakkk
1e8a9492ba
Merge branch 'dev' into 'master'
...
v6.1
Closes #28 , #31 , #30 , #27 , #34 , and #29
See merge request abakkk/DrawOnYourScreen!12
2020-06-29 16:07:29 +02:00
abakkk
040b0138bb
version -> v6.1
2020-06-29 15:58:09 +02:00
abakkk
3f0fce3bc6
Add "duplicate an element" how-to in readme
2020-06-29 15:40:37 +02:00
abakkk
e50a8c80a7
"Modeless/modal" -> "Grab/ungrab keyboard and pointer"
...
And add an OSD notification.
2020-06-29 12:21:21 +02:00
abakkk
0d42d69f91
Pointer cursor when writing
2020-06-28 18:37:42 +02:00
abakkk
9199fbd82b
Reorder pot file
2020-06-28 18:28:15 +02:00
abakkk
be36fd4de2
Prefs, notifications and pot file
...
* Add a long timeout for some OSD notifications.
* Change some pref strings.
* "Stroke" -> "Outline"
* Clean pot file
2020-06-28 18:27:23 +02:00
abakkk
f02d076ce2
GS 3.24 compatibility
2020-06-27 22:35:43 +02:00
abakkk
75c20c34d2
Fix elementGrabberHandler
...
* Do not start several handler.
* Do not stop handler when toggling drawing mode.
2020-06-27 22:31:31 +02:00
abakkk
6a5481ff05
Clean prefs and fix pot file
2020-06-27 16:55:26 +02:00
abakkk
06e931ffd2
Fix color icon
...
Reduce svg size to avoid strange behaviour on menu opened.
2020-06-27 16:23:28 +02:00
abakkk
fbe044a2b9
Add text alignment
...
Left or right.
Replace unused `rtl`.
2020-06-27 15:10:01 +02:00
abakkk
dc73000a1d
Minor, reorder pot file
2020-06-27 14:00:21 +02:00
abakkk
c5f604a80a
Evenodd switch and svg attributes
...
* Menu: `fillRule` submenu -> `Evenodd` switch.
* Rework SVG attributes in order to bypass useless attributes.
* Fix gjs bug: `Cairo.LineCap.SQUASH` -> `SQUARE`.
* Not to draw dashes if dash.array is `[0, 0]` (case line width is 0).
2020-06-27 13:59:07 +02:00
abakkk
8fae815ed8
Change color and tool icons
2020-06-27 11:42:53 +02:00
abakkk
e341b36d65
cr.$dispose on painting error
...
Put repaint process in a "try catch" so cr.$dispose is always called.
2020-06-27 11:41:46 +02:00
abakkk
119c6725ef
Font stretch and variant
...
Add minimal (no UI) `font-stretch` and `font-variant` support.
`font-stretch` css attribute is not recognized.
Cannot find a working usage for both.
2020-06-26 19:01:56 +02:00
abakkk
8519948c3b
Render texts with Pango
...
Cairo "toy" text tool does not render non-latin and emoji characters.
Moreover Pango provides a larger set of font attributes.
Fixes #29 , #34
2020-06-26 13:04:28 +02:00
abakkk
5bf0ccc4f1
Use a St.Entry for text tool.
...
All key events go through a hidden St Entry.
* Ibus inputs support.
* GS keyboard support, by moving the keyboard box above the drawing area.
* All convenience keybindings of a St Entry (cursor moves, delete, paste, select all ...).
* Add a writing action mode so some keybindings are disabled when writing (e.g. `Delete` and `Ctrl + A`).
* Draw a thin rectangle as text cursor instead of a text character, so moving the cursor is smoother.
Close #29 , #34
2020-06-25 11:41:15 +02:00
abakkk
b0c06b8a73
Fix modal toggling criterion
...
Use `Main._findModal` instead of `Main.actionMode` as the criterion of the toggle direction.
Main.actionMode is not a safe criterion to know if the area is modal. For example, `Main.actionMode` is modified when toggling overview while drawing.
2020-06-24 23:16:22 +02:00
abakkk
3c72b84a5c
Improve text shape
...
* transform: translate
* add rtl capacity (currently disabled)
2020-06-24 09:18:24 +02:00
abakkk
579a6bfa32
Persistent attributes
...
While attributes are not changed in user.css, they are persistent through drawing mode toggling. Css attributes that are modifiable in the user interface are just default attributes.
Close #27
2020-06-23 09:10:25 +02:00
abakkk
64507ba483
Fix menu
...
* Populate 'Open' and 'Save' submenu on opening. It prevents the 'jump'.
* By removing the previous trick, it now give the key-focus to the first item when opening the menu with 'Menu' key.
2020-06-22 14:42:24 +02:00