Commit graph

382 commits

Author SHA1 Message Date
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
Sophie Herold
7bf9baa581 image: Ensure contrast for transparent images
Determine if the image is transparent and has low
contrast with default background color. If so,
use a different background color.

Closes #31

Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/151>
2023-04-02 23:08:51 +00:00
Christopher Davis
2e237d41e8 build: Add dist script
This script will vendor the Rust dependencies
of the app so that our tarballs can be built
offline.
2023-04-02 22:10:07 +00:00
Sophie Herold
533158bb69 image: Request tiles on size_allocate
Fixes tiles for SVG might be missing when enlarging window.

Closes #104

Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/155>
2023-04-02 21:36:24 +00:00
Hugo Carvalho
01a5120cd1 Update Portuguese translation 2023-04-02 20:30:10 +00:00
Christopher Davis
2965799374 general: Remove help-related code
Our help documents are unfinished, and we shouldn't ship
unfinished documentation in our initial release.

We can revert this commit when we're ready to write the
documents properly.

Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/156>
2023-04-02 18:36:17 +00:00
Sophie Herold
9281a32ca9 data: Update metadata and dependencies
Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/154>
2023-04-02 17:23:55 +00:00
Sophie Herold
750fbfd305 image: Settle with either rotate or zoom gesture
Add thresholds after which the gesture is assumed to be
only zoom or rotate.

Closes #95, #29

Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/145>
2023-04-02 16:47:57 +00:00
Sophie Herold
7b7ece1dc3 slidingView: Allocate LpImage more correctly
Allocate the ScrolledWindow instead of the LpImage
to include non-overlayed scrollbars.

General cleanup how we measure things.

Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/150>
2023-04-02 15:42:42 +00:00
Sophie Herold
e5fc4bc85c image: Add high DPI support
Always interpret the scaling percentag in physical pixels.
This makes 100% show the image 1:1 in screen pixels.

Closes #37
2023-04-02 15:22:12 +00:00
Piotr Drąg
4ce48c5e26 Add Polish translation 2023-04-02 11:57:59 +00:00
Jiri Grönroos
b60656cf5c Add Finnish translation 2023-03-30 17:53:03 +00:00
Kukuh Syafaat
844b990928 Add Indonesian translation 2023-03-28 04:33:22 +00:00
Asier Sarasua Garmendia
7164ec592a Update Basque translation 2023-03-26 08:23:23 +00:00