apiraino
597f0055b9
feat(cli): add configure options for filename save
2020-12-12 13:03:38 -05:00
Jeremy Attali
717ab0c2d1
fix(text): properly handle utf-8 chars
...
UTF-8 characters are now handled porperly. Also re-worked some helper
functions with UTF-8 in mind.
I secretly no real C developers will look at this. I might have to ask
for witness protection.
Closes #43
2020-07-08 21:48:31 -04:00
Jeremy Attali
204a93eb0f
refactor!(wayland): remove wayland code
...
BREAKING CHANGE: We do no support the `-g` option anymore.
This tool simply makes more sense as the output of `grim` rather than
trying to be `grim`.
RIP my ugly wayland code, long live maintainable code.
Next stop, rust?
2020-06-20 21:19:40 -04:00
Jeremy Attali
307f57956f
feat(config): add show_panel config
...
Allows to toggle paint panel on/off upon startup.
Closes #12
2020-06-17 23:04:57 -04:00
Jeremy Attali
7a9be5d2a6
refactor(application): remove scaling logic
2020-06-16 23:07:25 -04:00
Jeremy Attali
0e9f66ad5b
perf(render): improve rendering for scaled surfaces
2020-06-16 23:07:25 -04:00
Jeremy Attali
7674d7db8b
feat(ui): add toggle panel button
...
Closes #24
2020-06-14 11:57:09 -04:00
Jeremy Attali
361be6aa80
feat(blur): remove blur configuration
2020-06-13 14:42:50 -04:00
Jeremy Attali
46fb08dce1
fix(blur): use rendered surface after commit
...
- Fix blur logic
- Reused rendered surface to optimize future render on comitted blur
- Include gaussian kernel function
Closes #20
Closes #22
2020-06-13 14:42:50 -04:00
Jeremy Attali
416b0adad9
chore(wayland): remove unused variable
2020-06-13 14:42:50 -04:00
Jeremy Attali
6b2ec90efd
fix(blur): adjust blur bounding box based on scaled monitor
2020-06-02 00:08:21 -04:00
Jeremy Attali
1be7798a8b
feat(blur): use rect blur instead of brush
...
Use a rectangle to blur instead of brushes.
Does not improve the performance that much, will come in a later patch.
Will fix the UX of the feature though.
Closes #17
2020-06-01 23:32:07 -04:00
Jeremy Attali
fae0aeacab
feat(tool): introduce blurring capability
...
The blur algorithm is largely inspired from Kristian Høgsberg & Chris
Wilson in [this file](https://www.cairographics.org/cookbook/blur.c/ )
Closes #17
2020-05-31 23:25:37 -04:00
Jeremy Attali
445980bbf4
fix(ui/render): adjust rendering based on window size
...
Compute the size of the GTK window based on sane compute that works well
for single monitor. Still not sure how this behaves on multi monitors.
This also fixes the issue where swappy would crop the image on scaled
output displays.
Closes #6
2020-05-18 00:18:03 -04:00
Jeremy Attali
196f7f4dea
feat(application): print final surface to file or stdout
...
This allows a user to output the final surface to `stdout` using:
- `-0`
- `--output-file``
Also adding another keybinding to exit the application `Ctrl+w` which is
pretty standard.
Closes #2
2020-01-19 23:48:55 -05:00
Jeremy Attali
38b96e35f8
refactor(pixvuf): move pixbuf to separate file
2020-01-19 23:48:55 -05:00
Jeremy Attali
ef24851dee
feat(config): have overridable defaults
...
Defaults:
- `save_dir`
- `line_size`
- `text_font`
- `text_size`
Closes #1
2020-01-12 22:00:41 -05:00
Jeremy Attali
f48f36e7fe
revert:"wip(copy): handle data control protocol"
...
This reverts commit c0db845620
.
2020-01-05 16:30:37 -05:00
Jeremy Attali
c03f628de7
feat(text): add controls in toggle panel
2020-01-05 16:17:19 -05:00
Jeremy Attali
c0db845620
wip(copy): handle data control protocol
2020-01-05 15:37:19 -05:00
Jeremy Attali
0c5e458d4c
fix(window): quit when delete event is received
2020-01-04 19:06:35 -05:00
Jeremy Attali
f356ff9b17
refactor(text): use size_t instead of int for cursor
2020-01-04 17:48:02 -05:00
Jeremy Attali
bc3264e9f1
fix(string): fix algo to insert chars at location
2020-01-04 17:22:05 -05:00
Jeremy Attali
3347bf23bf
feat(paint): introduce text paint
2020-01-03 23:53:08 -05:00
Jeremy Attali
49be066079
refactor(swappy): rename painting into settings
2020-01-01 15:21:36 -05:00
Jeremy Attali
cf33f3a4fb
refactor(wayland): make all wayland code optional
2019-12-31 01:25:55 -05:00
Jeremy Attali
02bc464564
feat(buffer): ability to read from stdin
2019-12-29 16:48:13 -05:00
Jeremy Attali
f6c189c7b7
feat(buffer): add file image support
2019-12-29 02:40:30 -05:00
Jeremy Attali
f8494a7873
refactor(screencopy): move code to buffer file
2019-12-29 02:25:11 -05:00
Jeremy Attali
c56df33d18
feat(swappy): introduce file option
2019-12-29 02:12:17 -05:00
Jeremy Attali
7d56f772c1
refactor(config): move file helpers to specific file
2019-12-29 01:47:52 -05:00
Jeremy Attali
e8d377fc29
chore(wayland): remove layer shell remnants
2019-12-28 23:41:04 -05:00
Jeremy Attali
45a0da8293
chore: cleanup
2019-12-28 21:43:44 -05:00
Jeremy Attali
05d87c929f
fix(resources): compile resources and fix error management
2019-12-28 17:02:50 -05:00
Jeremy Attali
8abc5d52ec
fix(meson): able to build on standard platforms
2019-12-27 19:55:34 -05:00
Jeremy Attali
c5ec285ee7
feat(ui): add keybindings for color change
2019-12-27 16:21:13 -05:00
Jeremy Attali
5678545de5
refactor(*): use doubly linked lists
2019-12-27 15:33:16 -05:00
Jeremy Attali
5930c99b9e
fix(ui): add stroke size increase/decrease/reset
2019-12-27 12:27:30 -05:00
Jeremy Attali
a8c8be37ca
feat(ui): life is full of colors and joy
2019-12-26 17:33:29 -05:00
Jeremy Attali
d7e7f2b5ff
feat(ui): add shortcuts for undo/redo
2019-12-26 11:59:34 -05:00
Jeremy Attali
e8d2f12ce1
feat(ui): add binding to toggle panel
2019-12-25 22:59:28 -05:00
Jeremy Attali
bcc13140eb
feat(ui): add undo/redo
2019-12-25 22:44:07 -05:00
Jeremy Attali
8cd3f134bb
feat(ui): replace popover by on screen elements
2019-12-25 21:06:06 -05:00
Jeremy Attali
d348e871ef
refactor(swappy): better glade ui integration
2019-12-24 14:50:49 -05:00
Jeremy Attali
4922feaa51
refactor(paint): move painting code to paint.c
2019-12-23 18:19:20 -05:00
Jeremy Attali
90958ab8fd
refactor(render): rename draw.c into render.c
2019-12-23 17:35:47 -05:00
Jeremy Attali
e946b241bf
refactor: cleanup dead code
2019-12-23 12:24:24 -05:00
Jeremy Attali
f0600e55e7
refactor: insert in a union type
2019-12-22 16:57:47 -05:00
Jeremy Attali
a855e3b370
refactor: move shape into union
2019-12-22 13:14:53 -05:00
Jeremy Attali
be90fffa14
draw: add paint size
2019-12-22 12:09:44 -05:00