Commit graph

449 commits

Author SHA1 Message Date
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
Sophie Herold
9b95a4706b code: Don't use mod.rs based on Rust Style Guide 2024-05-15 13:17:45 +02:00
Sophie Herold
c15e73274e print: Use new GTK API 2024-05-15 10:51:49 +00:00
Sophie Herold
db1bb785e1 meta: Update copyright info 2024-05-09 23:27:45 +02:00
Sophie Herold
57d8bba071 window: Use shortcuts instead of accels
Application level accels will also work if AdwDialogs are open.
Therefore, use shortcuts wherever possible.
2024-05-09 23:12:20 +02:00
Sophie Herold
e129e842a6 imagePage: Make error output look better
Make the errors on the status page translatable. Hide detailed errors
behind an extra error dialog that can be opened.
2024-05-09 14:25:06 +02:00
Dexter Reed
b99575d8d0 feat: Port about window to adw::Dialog (Adw.Dialog)
Other Changes:

Change window height to 294 to fit the HIG:
https://developer.gnome.org/hig/guidelines/adaptive.html#small-size-handling

Change adw features version in `Cargo.toml` from `v1_4` to `v1_5` to use
the new dialog widget(s)
2024-05-08 20:54:25 +00:00
Sophie Herold
74482bf6b6 util: Remove unused code 2024-05-08 22:53:50 +02:00
Sophie Herold
46a17367bd print: Do everything in request-page-setup
Otherwise we are too late to layout the page and the orientation will
not be honored by the actual printing.
We also have to use the per-page PageSetup because they are already
specualized at this point.

Closes #348
2024-04-06 18:45:42 +02:00
Sophie Herold
37ac3de2b8 metadata: Properly display exposure times > 0.5s
Closes #349
2024-04-06 17:24:24 +02:00
Sophie Herold
0757bf5a5c main: Set GDK_DEBUG=gl-no-fractional by default 2024-04-04 22:45:42 +02:00
Sophie Herold
5295c63b91 data: Update changelog 2024-04-03 01:41:21 +02:00