Commit graph

345 commits

Author SHA1 Message Date
Sophie Herold
4410b49487 po: Update POTFILES.in
Add all files that can potentially contain translations

Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/187>
2023-04-19 21:44:14 +02:00
Anders Jonsson
1f6851af31 Update POTFILES.in
Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/186>
2023-04-19 19:15:03 +00:00
Sophie Herold
2f9fad47a1 src: Update or add auto generated license headers
Closes #55

Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/169>
2023-04-19 20:02:01 +02:00
Philipp Kiemle
4b24628409 imageView: Add translator comment 2023-04-19 19:57:21 +02:00
Sophie Herold
792968e51b window: Set action states based on current_page
Fixes actions not getting enabled and disabled

Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/184>
2023-04-19 01:46:15 +00:00
Sophie Herold
4eae4503bf data: Generate list of mime types in meson
First, this format is more easy to maintain.
Second, future image decoder dependencies will be
opt-out via build options. This way we can also not
add the mime types in that case.

Closes #125

Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/181>
2023-04-19 01:17:24 +00:00
Sophie Herold
83b95a58bd image: Also allow drag with middle button
Closes #138

Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/180>
2023-04-19 00:51:00 +00:00
Sophie Herold
e5d5841e5d tiling: Store tiling for each layer and fix bugs
Tilings now have a flexible origin and are stored with the
tile layer. This allows to make the first tile centered
in the viewport, allowing for faster getting a complete
viewport.

This also fixes some rendering bugs caused by forgetting
tiles the were still needed. But not all of them.

Fixes #83, #94
Issue #82

Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/179>
2023-04-19 02:16:37 +02:00
Sophie Herold
587599f50b print: Render SVG for correct size
Closes #140

Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/165>
2023-04-18 23:52:53 +00:00
Sophie Herold
ae5ca76176 printing: Add printing support
Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/165>
2023-04-18 23:52:53 +00:00
Sophie Herold
e96b9ccac9 image: More fine-grained zoom instructions
Add parameters to use zoom_to without animation or
snapping to best fit. Hopefully fixing 100%/200% snapping
to best fit when close to filling the window and
fixing high res scroll wheel bugs.

Closes #120, #134

Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/177>
2023-04-18 23:23:18 +00:00
Sophie Herold
44e265374b image: Fix thumbnail for auto rotated images
Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/175>
2023-04-18 22:35:19 +00:00
Sophie Herold
3684a9c02e image: Use lighter background for light theme
Closes #124

Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/171>
2023-04-18 21:49:43 +00:00
Sophie Herold
8669b870af image: Fix textures and bg color not reloading
The reload procedure for changed image files is triggered
but the old data has to be deleted to be re-generated.

Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/176>
2023-04-18 21:03:02 +00:00
Sophie Herold
aca49427a1 window: Support dropping multiple files
This allows to scroll through all dropped files.
No further images from directories are loaded in
this mode.

Closes #35
2023-04-18 22:29:30 +02:00
Sophie Herold
e710419a22 decoder: Add basic color profile support
This only covers 8bit RGB(A) JPEG, PNG, and HEIF.
Should only be a temporary solution until GTK supports
color profiles.

Closes #36

Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/172>
2023-04-18 21:22:09 +02:00
Philipp Kiemle
3b6cc8c404 Update German translation 2023-04-18 19:13:46 +00:00
Sophie Herold
3264d7813d propertiesView: Use local datetime
Closes #130

Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/166>
2023-04-18 18:32:21 +00:00
Sophie Herold
e8aa5451c3 decoder: Avoid unwraps and report issues to UI
Those are mostly cases that should never occur.
But especially for rare erros it can be helpful to
directly display them in the UI.
2023-04-18 17:57:41 +00:00
Sophie Herold
5a93ec71da image: Do not require monitor information
Before, monitor information not being available lead to panic.

Closes #77

Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/167>
2023-04-18 17:08:35 +00:00
Sophie Herold
fad8bb7939 decoder: Use GFile instead of PathBuf
This allows to show images from locations that don't
have a representation with path.

This also works around not being able to read files in trash:///

Closes #56

Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/174>
2023-04-18 16:22:49 +00:00
Sophie Herold
032707a210 fileModel: Use GFile with URI as key
Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/174>
2023-04-18 16:22:49 +00:00
Sophie Herold
3b0c32ecee cargo: Update lock to avoid yanked enumflags2 vers 2023-04-17 06:38:27 +02:00
Balázs Úr
dd5c339b37 Update Hungarian translation 2023-04-13 21:45:37 +00:00
Fran Dieguez
6e61d3929f Update Galician translation 2023-04-13 17:09:43 +00:00
Yaron Shahrabani
48d64c7fa4 Update Hebrew translation 2023-04-13 11:26:40 +00:00
Sophie Herold
183411bfe3 cargo: Update dependencies 2023-04-12 20:18:28 +02:00
Sophie Herold
fe0554672c cargo: Fix deny configuration
Looks like we were using a broken config format
2023-04-12 20:09:22 +02:00
Sophie Herold
f8cc9f5f84 i18n: Use gettext function instead of wrapper
No need to deviate from the default here.

Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/170>
2023-04-12 12:58:40 +00:00
kramo
695693cf74 Add missing MIME types to desktop file
Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/164>
2023-04-10 16:48:18 +00:00
Piotr Drąg
85c4692d56 Update Polish translation 2023-04-09 10:15:01 +00:00
Jürgen Benvenuti
700949fb0d Add German translation 2023-04-07 10:47:49 +00:00
Sophie Herold
ab34ad9f51 NEWS: Fix version number 2023-04-06 23:24:49 +02:00
Sophie Herold
22fe8e3404 data: Prepare 44.1 release 2023-04-06 23:19:06 +02:00
Sophie Herold
8b3cfd000a cargo: Remove gtk-macros dependency
Using the crate is depreacted. Replaced spawn! macro
with our own spawn function
2023-04-06 21:08:33 +00:00
Sophie Herold
ca672552be decoder: Bring back support for still WebP images
We manually have to use the static decoder instead of
the frames api as for PNG.

Issue #115
2023-04-06 21:08:23 +00:00
Sophie Herold
65e967c235 decoder: Detect HEIC/HEIF via guessed mime type
This will not cover files with wrong extensions. But
we don't have a magic byte sniffer in place yet.

Issue #115
2023-04-06 21:08:10 +00:00
Sophie Herold
c041dcad3d meson: Require GTK 4.11.1 because of texture fixes
Scaled textures don't work in some situations with GTK 4.10

Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/160>
2023-04-06 21:06:47 +00:00
Sabri Ünal
755103c2c3 Add Turkish translation 2023-04-06 18:01:15 +00:00
Quentin PAGÈS
5831e2a7df Update Occitan translation 2023-04-06 14:27:42 +00:00
Kukuh Syafaat
26515a4548 Update Indonesian translation 2023-04-06 11:07:21 +00:00
Anders Jonsson
1f067eaf13 Update Swedish translation 2023-04-05 16:37:31 +00:00
Sophie Herold
1b18486826 image: Move background color guess to other thread
Also, skip it completely for JPEG and BMP

Issue #111
2023-04-04 22:13:36 +00:00
Sophie Herold
114c292225 cargo: Update dependencies
And fix a meson warning
2023-04-04 23:20:42 +02:00
Yuri Chornoivan
620270db9c Update Ukrainian translation 2023-04-04 18:35:33 +00:00
Martin
d08b107640 Update Slovenian translation 2023-04-04 06:26:48 +00:00
Sophie Herold
5d7cbe026f image: Remove debug prints from bg color guesser
Closes #111
2023-04-03 16:56:54 +02:00
Danial Behzadi
9b8bce3551 Update Persian translation 2023-04-03 12:51:29 +00:00
Aleksandr Melman
6d694c6beb Update Russian translation 2023-04-03 07:29:46 +00:00
Ekaterine Papava
36188aece7 Update Georgian translation 2023-04-03 04:40:15 +00:00