Commit graph

52 commits

Author SHA1 Message Date
Sophie Herold
4d6d771ab4 Use tracing for logging 2025-12-18 23:15:46 +01:00
Sophie Herold
83b2c7cae1 util/root: Add window_show_error() to avoid unwrap
Fixes #553
2025-12-09 22:07:30 +01:00
Sophie Herold
f2dbee5ef8 image_view: Make space for always on scrollbars
Increase the margin of the overlay if scrollbars are set to always
visible.

Fixes #528
2025-12-04 21:33:19 +01:00
Sophie Herold
4439499cda code: Reformat with Rust 2024 edition 2025-12-04 06:17:55 +01:00
Sophie Herold
0e6ddb0227 Add missing implementations 2025-08-22 15:03:55 +02:00
Sophie Herold
ef5f94859b editing: Fix preroateted images
Editing does not work correctly if PNGs or JPEGs are already rotated via
an Exif orientation entry before editing. This needs the glycin-image-rs
1.2.1 loader to work correctly.

Closes #481
2025-04-11 14:48:50 +02:00
Sophie Herold
8983f61558 edit/crop: Select correct orientation on open
Closes #468
2025-03-05 23:35:07 +01:00
Aleksandr Melman
ededb183ab Edit crop.ui 2025-03-05 18:15:30 +00:00
Sophie Herold
11551456e9 NEWS: Add missing entries 2025-02-27 22:16:44 +01:00
Sophie Herold
c9e5c9ed42 edit/crop: Orient aspect ratio icons
Orient the icons for aspect ratio selection based on the selected
orientation.
2025-02-27 12:49:22 +00:00
Sophie Herold
281080a21f edit/crop: Fix edge resize for fixed aspect ratio
Allow to decrease the size when dragging an edge with fixed aspect
ratio.

Issue #409
2025-02-26 14:48:39 +01:00
Sophie Herold
6920fda2be edit/crop: Rename a document some code 2025-02-26 14:42:52 +01:00
Sophie Herold
5706b2eaeb edit: Stop saving operation on using "Cancel" 2025-01-29 14:25:19 +01:00
Sophie Herold
129d1cfc7a edit/crop: Add keyboard shortcuts
Closes #442
2025-01-29 13:05:45 +01:00
Sophie Herold
d1a9d9dddc edit/crop: Work around gesture bug
After clicking the "apply crop" button, the drag button to change the
selection is getting stuck. Adding manual claim for the click gesture
for the button early fixes this.
2025-01-29 01:26:13 +01:00
Sophie Herold
51883734f5 edit/crop: Enable reset and save on selection change 2025-01-29 00:20:03 +01:00
Sophie Herold
6fa42d542b edit/crop: Update apply crop visibility in allocate 2025-01-28 23:58:10 +01:00
Sophie Herold
9fbe091f1a edit: Use filename with (Edited) suffix for "Save As" 2025-01-28 23:45:46 +01:00
Sophie Herold
e2785d9154 edit/crop: Read rendered image size from selection
Closes #454
2025-01-27 19:15:51 +00:00
Sophie Herold
1f250b6465 edit/crop: Use manual allocation
Don't use a grid for the position of grayed out area and crop selection.

Fixes #454
2025-01-27 19:15:51 +00:00
Sophie Herold
9a5ec50f66 code: Fix clippy warnings 2025-01-27 12:38:26 +01:00
Sophie Herold
9c5600efb7 edit/crop: Allow draging from edges 2025-01-23 15:15:00 +01:00
Sophie Herold
29e807a7b0 edit/crop: Implement crop apply as overlay 2025-01-23 14:22:59 +01:00
Sophie Herold
9a5170de34 edit/crop: Apply crop via checkmark overlay 2025-01-22 22:19:10 +01:00
Sophie Herold
40d425ac80 edit: Visual feedback while saving image
Closes #441
2025-01-22 20:49:19 +01:00
Sophie Herold
729f5249ed edit/crop: Apply crop on save 2025-01-22 15:10:16 +00:00
Sophie Herold
9cb08d288d edit/crop: Apply crop on rotation and flip 2025-01-22 15:10:16 +00:00
Sophie Herold
e66203783e edit/crop: Apply aspect ration change internally 2025-01-22 15:10:16 +00:00
Hubert Figuière
302139c5ce edit/crop: Fix typo in name coordiantes -> coordinates
Signed-off-by: Hubert Figuière <hub@figuiere.net>
2025-01-19 00:30:15 -05:00
Sophie Herold
a2147bb8bd edit/crop: Pre-select correct orientation 2025-01-17 16:51:06 +01:00
Sophie Herold
c97db38788 edit/crop: Add orientation toggles for desktop 2025-01-17 13:50:25 +01:00
Sophie Herold
c042f8ed41 edit/crop: Set aspect ratio to default on reset 2025-01-13 23:14:37 +01:00
Sophie Herold
2a5ca41991 NEWS: Fix 47.3 being released as 47.4 2025-01-13 23:01:53 +01:00
Sophie Herold
2adefc5241 code: Fix clippy warnings 2025-01-13 15:02:01 +01:00
Sophie Herold
f9f86e718f editing: Fix wrong orientation for rotation 2025-01-01 15:30:21 +01:00
Sophie Herold
4a09750864 edit/crop: Add missing tooltips and mnemonics 2024-12-22 20:27:33 +01:00
Sophie Herold
7611b11b55 edit/crop: Track selection correctly on widget resize 2024-12-22 20:27:33 +01:00
Sophie Herold
5c31272605 edit/crop: Support vertical mirroring 2024-12-22 20:27:33 +01:00
Sophie Herold
df9589aa9a clip: Remove 16:10 preset 2024-12-22 20:27:33 +01:00
Sophie Herold
a5e20baaa0 editing: Only show apply button if needed 2024-12-22 20:27:33 +01:00
Sophie Herold
cb31b93ee1 imageWindow: Fix shortcuts not always working 2024-12-22 20:27:33 +01:00
Sophie Herold
b9f22ebfc3 window: Don't store window to avoid ref cycles
Use root() instead and move one constructor to on root for having the
root available.
2024-12-22 20:27:33 +01:00
Sophie Herold
8345640757 editing: Handle errors 2024-12-22 20:27:33 +01:00
Sophie Herold
5b51237203 editing: Add error handling for saving files 2024-12-22 20:27:33 +01:00
Sophie Herold
59082b7314 edit/crop: Implement updated designs
These designs are different for mobile and desktop sizes.
2024-12-22 20:27:33 +01:00
Sophie Herold
05dbee6a0b editing: Add save edited file 2024-12-22 20:27:33 +01:00
Sophie Herold
a2d5493714 editing: Use toolbar style 2024-12-22 20:27:33 +01:00
Sophie Herold
367fdf207d editing: Preview cropping/rotate/mirror operations 2024-12-22 20:27:33 +01:00
Sophie Herold
e9869bcb40 edit: Use proper styling for toolbar 2024-12-22 20:27:33 +01:00
Sophie Herold
1fc9674cb8 edit: Init crop view with selecting complete image 2024-12-22 20:27:33 +01:00