Commit graph

453 commits

Author SHA1 Message Date
Sophie Herold
f1f8ba9a88 SlidingView: Fix animation for deleting images 2024-01-28 20:57:19 +00:00
Sophie Herold
47cb0e0acb SlidingView: Stop using gtk_widget_get_allocation
It got deprecated. Hopefully "width" does what we need.
2024-01-28 20:57:19 +00: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
0d060f6790 image: Occupy 40% instead of 30% screen area
Closes #272
2024-01-19 15:47:16 +00:00
Sophie Herold
aa3e517a1b image/zoom: Use more trace instead of debug 2024-01-19 15:47:16 +00:00
Sophie Herold
e0df6fc725 image/rendering: Clamp natural size correctly 2024-01-19 15:47:16 +00:00
Sophie Herold
171077ffc7 window: Resize to natural on map
Only at this point we can be certain about the screen info like size an
scaling factor.
2024-01-19 15:47:16 +00:00
Sophie Herold
446ae5063a window: Limit HeaderBar to min width as nat width
Before we were doing the same with just the title in the HeaderBar. This
gave problems with correctly measuring for ADW_CENTERING_POLICY_LOOSE.
2024-01-09 20:12:02 +01:00
Sophie Herold
7ebc902838 image/rotation: Configure adj during rotation
This was missing after we stopped configuring adjustments in snapshots.

Closes #302
2024-01-09 14:19:16 +01:00
Sophie Herold
784c53b318 slidingView: Use stacked cards animation for steps
Use an animation with less motion for navigation through images with
arrow keys and buttons. For skipping multiple images and for using the
touchpad, the animations stay the same.

Closes #245
2024-01-08 20:31:40 +00:00
Sophie Herold
0d21222dcd meta: Release 46.alpha 2024-01-08 17:41:54 +01:00
Sophie Herold
0c53c75127 image/inputHandling: Stop kinetic after zoom
Stop kinetic scrolling after having used Ctrl + Touchpaad to zoom.

Closes #165
2024-01-04 21:50:34 +01: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
de0446bc32 print: Fix height entry having wrong upper limit
Fixes #294
2023-12-30 22:26:38 +01:00
Sophie Herold
0e490f38ad print: Init preview image more cleanly 2023-12-27 00:12:44 +01:00
Sophie Herold
db6a7e7f2a image: Move most functions to imp module 2023-12-27 00:12:35 +01:00
Sophie Herold
3d5ef4038e image: Rename background_color module 2023-12-26 22:28:45 +01:00
Sophie Herold
139bd4ebb2 decoder/tiling: Make shared frame buffer a struct 2023-12-26 22:09:07 +01:00
Sophie Herold
6827a9c176 print: Use LpImage for preview 2023-12-26 21:51:39 +01:00
Sophie Herold
e387d8dc66 image: Check realized before using surface
This avoids crashes in early calls to scaling()
2023-12-26 18:36:26 +01:00
Sophie Herold
d3cd32e090 code: Drop async-std dependeny 2023-12-25 20:53:46 +00:00
Sophie Herold
2864eb7cc3 print: Only show one size input for percent 2023-12-22 21:46:41 +01:00
Sophie Herold
d138750448 print: Adjust 100% to SVG physical dimensions
Some SVGs store there size in cm or inch. With this change, the 100% in
the print dialog is calculated according to that physical size.

Closes #141
2023-12-22 21:44:36 +01:00
Automeris naranja
26abaa73e7 print: Fix indentation 2023-12-21 22:59:27 -03:00
Automeris naranja
02762a394d print: Add missing mnemonics
Closes https://gitlab.gnome.org/GNOME/loupe/-/issues/292
2023-12-21 22:59:24 -03:00
Sophie Herold
476abf1612 slidingView: Don't notify page updates emmediately
This allows to add new pages after clearing without triggering an empty
state in between. This also fixes opening a new image leaving the
fullscreen mode.

Fixes #286
2023-12-21 21:28:37 +01:00
Sophie Herold
d185973815 windowTitle: Add custom window title widget
Fixes #202
2023-12-20 19:28:22 +00:00
Sophie Herold
2648295a18 code: Reformat with group_imports=StdExternalCrate 2023-12-07 20:33:19 +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
Sophie Herold
cfed1d3d63 image: File doesn't have to be a property anymore 2023-12-04 18:42:21 +01:00
Sophie Herold
33bcd4a7ac imageView: Remove expression for fullscreen icon 2023-12-04 18:22:47 +01:00
Sophie Herold
fceec31971 print: Remove obsolete callback code 2023-12-04 18:08:44 +01:00
Sophie Herold
2fdfe5657c image: Refresh file info after file rename 2023-12-04 18:08:25 +01:00
Sophie Herold
c0f435386d metadata: Move file info and format to metadata 2023-12-04 18:08:25 +01:00
Sophie Herold
c36e7f4eb6 code: Replace many uses of GtkExpressions
Closes #276, #100
2023-12-04 18:08:20 +01:00
Sophie Herold
5b3ad7c257 code: Fix typos 2023-11-30 21:58:26 +01:00
Sophie Herold
307c864c6e window: Copy metadata instead of image if selected 2023-11-30 01:20:13 +01:00
Sophie Herold
b56d650086 code: Reformat with new rules 2023-11-29 21:16:11 +01:00
Sophie Herold
4b510412e1 window: Fix title not changed when no image shown
Closes #279
2023-11-29 20:15:42 +01:00
Sophie Herold
7d36c93029 slidingView: Use properties macro 2023-11-29 19:28:27 +01:00
Sophie Herold
4ca7c71538 imagePage: Use properties macro 2023-11-29 19:19:49 +01:00
Sophie Herold
390f16792a imageView: Use properties macro 2023-11-29 19:10:57 +01:00
Sophie Herold
55811a2bb7 image: Use macro for object properties 2023-11-29 18:52:31 +01:00