Sophie Herold
32a4d0f0aa
image/zoom: Allow 50% zoom via menu for 16px images
...
Zoom out for 16px or smaller images is usually blocked. But allow it for
zoom menu as we allow 50% via zoom menu in other situations where it is
blocked otherwise. Also, this is probably much less complex
implementation wise.
Closes #544
2025-12-23 23:09:39 +01:00
pieterd
f34f9dd988
Constrain minimum zoom level
2025-12-23 22:39:37 +01:00
Sophie Herold
a761eb5b2d
image/zoom: Zoom >=1 no best fit for ExactVolatile
...
The best-fit calculation would consider levels >=1 for best-fit. This
seems fundamentally wrong since that should be reserved for LargeFit.
This caused zoom-in to fail since best-fit was considered instead. But
that best-fit was computed with BestFit mode since the mode changed in
between in zoom_to_full.
Fixes #556
2025-12-22 14:14:38 +01:00
Sophie Herold
73c921b042
image/zoom: Improve tracing messages
2025-12-22 14:11:59 +01:00
Sophie Herold
4d6d771ab4
Use tracing for logging
2025-12-18 23:15:46 +01:00
Sophie Herold
f255af9f6a
image/zoom: Keep best-fit zoom in gesture
...
Don't change the zoom in configure best fit if currently in gesture.
2025-12-10 22:19:37 +01:00
Sophie Herold
1565fab160
Prepare 48.beta
2025-01-31 14:11:28 +01:00
Sophie Herold
e25b9aead6
image/zoom: Allow levels smaller best-fit from menu
...
Closes #437 , #414
2025-01-29 19:24:34 +00: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
5b184e6be9
edit: Scale cropping selection area with image
2024-12-22 20:27:33 +01:00
Sophie Herold
6867e0b13f
Add cropping
2024-12-22 20:27:33 +01:00
Sophie Herold
0b4c69459f
ui: Non-circular overlays and less buttons
...
Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/450 >
2024-09-16 16:01:50 +02:00
Sophie Herold
1f28884847
image/zoom: Fix forcing center aim not working
2024-09-11 10:31:51 +00:00
Sophie Herold
f16bd898d6
image/zoom: No different callbacks for animation
...
We actually don't need different callbacks for zooms with different
targets anymore since the target is an object property anyways.
2024-08-06 14:02:46 +02:00
Sophie Herold
c1e6ccedab
image/zoom: Use viewport center for buttons
...
Before, the image center was used, which would cause a jump if the
viewport was changed before.
Fixes #392
2024-08-01 01:18:05 +02:00
Sophie Herold
e9dc3d810c
code: Use new glib::clone! syntax
2024-06-18 00:37:38 +02:00
Sophie Herold
2f0150ade1
image/zoom: Create animation with a fake target
...
This avoids warnings when contructing the animation.
2024-01-20 14:44:29 +01:00
Sophie Herold
aa3e517a1b
image/zoom: Use more trace instead of debug
2024-01-19 15:47:16 +00:00
Sophie Herold
b1d1d547cf
image/zoom: Force zoom to center for buttons
...
Before, using buttons on touchscreen could zoom to the cursor position.
2024-01-04 14:37:11 +01:00
Sophie Herold
88099b1ec9
image/zoom: Make code more readable
2024-01-04 14:37:11 +01:00
Sophie Herold
56625f2309
image/zoom: Store pointer target through animation
...
Closes #48 #287
2024-01-04 14:37:04 +01:00
Sophie Herold
a0e4791e6b
image/zoom: Functions to calculate required adj
2024-01-03 00:49:50 +01:00
Sophie Herold
fe43bc3a4c
metadata: Centralize many loose ends
2024-01-01 22:43:30 +01:00
Sophie Herold
db6a7e7f2a
image: Move most functions to imp module
2023-12-27 00:12:35 +01:00
Sophie Herold
6827a9c176
print: Use LpImage for preview
2023-12-26 21:51:39 +01:00
Sophie Herold
057ca6a3d0
image/rendering: Use scale instead of scale-factor
...
`GdkSurface:scale` supports fractional scaling available as
"scale-monitor-framebuffer" on Mutter. Use this value everywhere
instead of the integer scale-factor
Closing #182
2023-12-06 23:39:09 +01:00
Sophie Herold
9c8d3dc63f
image/rendering: Do not config adj in snapshot
...
This caused warnings and scrollbars to disappear under certain
conditions.
2023-12-05 21:35:03 +01:00
Sophie Herold
d69d0d5e47
image/scrollable: Abstract adjustment access
2023-12-05 21:26:09 +01:00
Sophie Herold
3ab4d82d36
image: Reorganize into several sub-modules
2023-12-05 16:00:46 +01:00