Commit graph

458 commits

Author SHA1 Message Date
Sophie Herold
4037b124d2 window: Properties button insensitive for no image
Make the toggle button insensitve if no image is shown.
Also close the properties if no image is shown anymore.

Closes #60

Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/193>
2023-04-20 20:11:17 +00:00
Sophie Herold
2dbc7fa585 window: Drop AdwFlap for Headerbar
Redo everything headerbar related with new Adw widgets
when there is a working concept.

Closes #112

Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/192>
2023-04-20 19:49:16 +00:00
Sophie Herold
dab333e510 image: Include alpha<1 in bg color detection
Only ignore alpha=0 pixels instead of alpha<1 pixels.
Also apply agorithm to non transparent images.

Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/191>
2023-04-20 18:36:40 +00:00
Sophie Herold
916514604c imageView: Hide controls after mouse inactivity
Closes #25

Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/189>
2023-04-20 15:18:06 +00:00
Sophie Herold
7b6ee24651 decoder: Only warn about invalid ICC profile
Before the image failed loading

Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/190>
2023-04-20 14:27:34 +00:00
Yosef Or Boczko
670329cd95 Update Hebrew translation 2023-04-20 14:02:32 +00:00
Yuri Chornoivan
aa1342af0d Update Ukrainian translation 2023-04-20 12:46:07 +00:00
Ekaterine Papava
1fdc5c018a Update Georgian translation 2023-04-20 05:38:20 +00:00
Kukuh Syafaat
d7f0a38961 Update Indonesian translation 2023-04-20 04:25:23 +00:00
Martin
165a3ce367 Update Slovenian translation 2023-04-19 22:11:35 +00:00
Enrico Nicoletto
4467b3c07e Add Brazilian Portuguese translation 2023-04-19 21:44:19 +00:00
Sophie Herold
e3612c2967 ci: Avoid multiple builds and opt for tests
Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/188>
2023-04-19 20:49:12 +00:00
Sophie Herold
997cab9d8d CI: Check for missing files in POTFILES.in
Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/188>
2023-04-19 20:49:12 +00:00
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