Commit Graph

350 Commits

Author SHA1 Message Date
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
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