Commit graph

610 commits

Author SHA1 Message Date
Sophie Herold
1f28884847 image/zoom: Fix forcing center aim not working 2024-09-11 10:31:51 +00:00
Sophie Herold
2412fb90ee slidingView: Set current page before starting animation
If animations are disabled, the animation ends when calling play
returns. Therefore, everything has to be set before calling play when
animations can be disabled.

Closes #368
2024-09-04 20:38:52 +02:00
Sophie Herold
be32072d7a image: Keep texture around until new is available
Keep previous texture around during image reloads to avoid flickering.
2024-08-16 13:30:18 +02:00
nibon7
10c6f3a0cb
svg: Fix sandbox selecting
Closes #397
2024-08-10 21:13:43 +08:00
Sophie Herold
ea3563493e image/rotation: Fix issuing edit for 0deg rotation
Rotating by 0 degrees went through the complete rotation pipeline including a image reload. Now, 0 deg rotations are ignored.
2024-08-06 14:08:24 +02:00
Sophie Herold
959a047816 image/rotation: Name variables more clearly 2024-08-06 14:02:52 +02: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
7e227097ef metadata: Merge memory_format correctly 2024-08-05 23:43:52 +02:00
Sophie Herold
8ddaf34e87 window: Prefer wide window over properties overlay 2024-08-05 23:37:10 +02:00
Sophie Herold
e61b3357ea svg: Report frame info
Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/442>
2024-08-05 17:30:12 +00:00
Sophie Herold
1ea4a3ad5d metadata: Report if image can be transparent
This feature was not implemented before and would always return true,
triggering a line detection for the background color in large JPEG
images.

Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/442>
2024-08-05 17:30:12 +00:00
Sophie Herold
4eb1e66d44 code: Update copyright 2024-08-02 21:48:44 +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
9063f4d2ba help-overlay: Update keyboard shortcuts
Using actions no longer works since they are not global anymore. Also
add "Open with" to the list.

Closes #254
2024-07-31 01:33:45 +02:00
Sophie Herold
f75e64f73b window: Disable more actions if error is shown
Many operations don't make sense while an image is loading or can't be
shown like zoom or print. In these cases the actions should now be
disabled.

Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/440>
2024-07-30 18:24:53 +00:00
Balló György
9556bd3be0 application: Set icon for the window
Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/411>
2024-07-30 17:38:45 +00:00
Sophie Herold
f2bc4a66b5 imagePage: Show spinner with small delay
That way, when quickly scrolling through images (holding down arrow
keys) no restarting spinner animations are shown in between.
2024-07-29 16:53:01 +02:00
Sophie Herold
053aa5da7e window: Add reload button and F5 shortcut
Reloading makes sense for out of memory situations or filesystems that
don't support inotify.
2024-07-29 15:53:40 +02:00
Sophie Herold
c3547f82fc svg: Handle errors for additional tiles gracefully
Some SVGs run into issues when zooming in due to memory limitations.
These errors are now ignored and the existing tiles are used.

Issue #358
2024-07-29 03:49:14 +02:00
Sophie Herold
b33943fbe2 imagePage: Show specific error for out of memory
Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/435>
2024-07-26 21:01:27 +00:00
Sophie Herold
aab0c711b6 gtk: No longer default to gl renderer
It looks like the Vulkan renderer has fixed is performance issues

Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/428>
2024-07-26 19:46:00 +00:00
Sophie Herold
e08866a1da image: Use enum for specific errors 2024-07-19 21:24:11 +00:00
Sophie Herold
134c488dbd errorDetails: Redesign the dialog a bit
Closes #378
2024-07-19 21:24:11 +00:00
Sophie Herold
7ab4c66e1f css: Rename bottom-properties class 2024-07-19 15:45:58 +02:00
Sophie Herold
ab83116fd8 docs: Update main widgets tree 2024-07-19 15:25:19 +02:00
Sophie Herold
f5cd2b822e windowContent: Remove unneeded template child 2024-07-19 15:09:45 +02:00
Sophie Herold
6070939382 window: Let is_showing_image return false on error 2024-07-19 15:02:29 +02:00
Sophie Herold
cd72a30d5f windowContents: Rename from fullscreenWidget
Also change some naming, comments, and bindings.
2024-07-19 14:31:36 +02:00
Christopher Davis
bb9b834a22 window: Rework properties adaptivity
Ports the sidebar to AdwOverlaySplitView, and uses AdwMultiLayoutView
to use a box at narrow sizes. A bottom sheet also
overlays the content when the window is both narrow and short.
2024-07-18 17:39:17 -04:00
Christopher Davis
230ffd5c77 general: Add fullscreen widget 2024-07-18 17:25:09 -04:00
Sophie Herold
0811a14198 cargo: Update glycin 2024-07-18 01:51:51 +02:00
Sophie Herold
0b33553144 util/gettext: Parse unicode escape sequences
Closes #351

Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/426>
2024-07-17 19:33:52 +02:00
Sophie Herold
3ad5560e2c decoder: Increase animation buffer size to 10 2024-07-17 14:04:39 +02:00
Sophie Herold
c2df5586c1 tiling: Don't completely empty buffer in animation
Previously, this would lead to flickering if the decoder was too slow.
Now, the last frame will be shown until a new one is available.

Closes #382
2024-07-17 14:01:37 +02:00
Sophie Herold
9b56f30c3b meson: Cleanups 2024-07-17 13:28:14 +02:00
Christopher Davis
cd68778890 image_page: Use AdwSpinner
Depends on
https://gitlab.gnome.org/GNOME/libadwaita/-/merge_requests/1201/

AdwSpinner automatically handles pausing the animation
when unmapped.

Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/420>
2024-07-17 10:55:11 +00:00
Sophie Herold
1b70686105 Use glycin devel env auto detection
We don't need to disable the sandbox for development environments
manually anymore. Glycin should take care of that now.
2024-07-05 22:29:06 +02:00
Sophie Herold
19fa9644cb main: Enable tracing via RUST_LOG as well 2024-07-04 19:52:59 +02:00
Lukáš Tyrychtr
ecc32af664 a11y: Ensure that the "Open containing folder" label is read
Just get rid of the in this case unwanted relations on the button.

Fixes #374.

Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/413>
2024-07-03 09:37:12 +00:00
Fina Wilke
5956aa6460 code: clone macro: Use convenience attributes instead of upgrade_or_else
Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/412>
2024-07-02 22:54:24 +00:00
Sophie Herold
798f2584ee code: Update copyright headers 2024-06-28 23:00:14 +02:00
Sophie Herold
afcc24e235 editor: Apply rotation to files 2024-06-21 13:11:29 +02:00
Sophie Herold
4164fa61c3 propertiesView: Bring back activatable-widget 2024-06-18 02:06:58 +02:00
Sophie Herold
e9dc3d810c code: Use new glib::clone! syntax 2024-06-18 00:37:38 +02:00
Sophie Herold
4650e6766a cargo: Update to gtk4-rs 0.9 and core 0.20 2024-06-14 17:46:33 +02:00
DaPigGuy
dfd74b060f
window: Port delete confirmation to AdwAlertDialog 2024-06-11 23:32:45 -07:00
Yiğit Burak
b688ee6de7 propertiesView: Disable markup for all fields 2024-06-11 16:44:44 +03:00
Yiğit Burak
2d8747728f propertiesView: Disable markup for folder field
If a folder's name contains an ampersand (&) pango tries interpreting it
as markup and folder field stays empty/fails to update
Simply disabling markup fixes this
2024-06-11 01:39:57 +03:00
Anders Jonsson
6f42e31f88 imagePage: Fix typo 2024-06-01 13:40:55 +00:00
Andre Klapper
4ca5f9e03d About dialog: Link to GitLab Issues instead of New Issue URL
When not logged in, the New Issue URL only redirects to an unhelpful
login page while the Issues page allows you to search for existing
issues and still offers a "New Issue" button.
2024-05-20 17:44:27 +02:00