Sophie Herold
33bcd4a7ac
imageView: Remove expression for fullscreen icon
2023-12-04 18:22:47 +01:00
Sophie Herold
5b3ad7c257
code: Fix typos
2023-11-30 21:58:26 +01:00
Sophie Herold
b56d650086
code: Reformat with new rules
2023-11-29 21:16:11 +01:00
Sophie Herold
4b510412e1
window: Fix title not changed when no image shown
...
Closes #279
2023-11-29 20:15:42 +01:00
Sophie Herold
390f16792a
imageView: Use properties macro
2023-11-29 19:10:57 +01:00
Sophie Herold
5a905cd53f
ui: Move .ui-files to src/
...
Closes #46
2023-11-29 01:50:54 +01:00
Julian Hofer
cd8188a1bb
Simplify async code
...
- Update Cargo.lock
- Use new gtk-core API
- Remove unneeded async
- Remove unneeded clones
Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/310 >
2023-11-22 09:12:36 +01:00
Starccy
8d185e1e10
chore: display original error
...
Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/314 >
2023-11-21 20:25:37 +00:00
Sophie Herold
4994ec9b59
imageView: Update SlidingView after removing image
...
When unsupported images formats were detected the image
was not removed from the SlidingView if already preloaded.
This caused weird hickups.
Fixes #233
2023-09-05 19:55:09 +00:00
Sophie Herold
0cff205c9d
general: Update to gtk-rs 0.7
2023-08-06 11:24:01 +02:00
Sophie Herold
172ce9d976
print: Code cleanup
...
Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/240 >
2023-08-06 02:28:54 +00:00
Sophie Herold
d13acea38a
imageView: Deny DragSource for touchscreens
...
Before, the DragSource gesture was claimed on touchscreens,
while no dnd was available there anyways. This caused swiping
through images to only work unreliably.
Issue #176
Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/264 >
2023-07-31 22:01:27 +02:00
Sophie Herold
55551ae6a2
general: Update copyright notices
...
Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/258 >
2023-07-18 17:48:43 +00:00
Sophie Herold
cf8fa499d9
window: New way to detect own window in d+d
...
This is a (hopefully) cleaner way to detect if we are
dragging out of the own window to not show drag indicator
in that case.
Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/258 >
2023-07-18 17:48:43 +00:00
Sophie Herold
06d688e79e
src: Format let-else statements
2023-07-07 19:22:51 +00:00
FineFindus
bc9aff5068
refactor: Use is_some_and
2023-06-26 11:59:17 +00:00
Christopher Davis
439286be40
general: Use std's OnceCell where possible
...
Rust's standard library now provides a drop-in replacement
for `OnceCell`. It requires no API changes from `once_cell`'s
version.
This commit replaces the version from `once_cell` with the
new `std` struct where possible. We still need to use
`once_cell` for properties until
https://github.com/gtk-rs/gtk-rs-core/pull/1113
is merged. We also still need it for Lazy until that lands.
Part-of: <https://gitlab.gnome.org/GNOME/Incubator/loupe/-/merge_requests/241 >
2023-06-23 18:59:09 +00:00
Sophie Herold
291fa13d1f
meta: Update copyright headers
2023-06-07 23:44:20 +02:00
Huan Nguyen
735451250c
imageView: Merge set_image_from_file with set_images_from_files
...
Also changing behavior when opening with multiple command line
arguments or when multiple images were selected from other
applications.
Old behavior: Spawn an instance of Loupe for each argument.
New behavior: One Loupe instance containing all arguments.
Closes #195
2023-05-30 12:52:59 +00:00
FineFindus
a3a0ccdf52
imageView: Replace magic values with adw::ToastPriority
2023-05-25 10:56:38 +00:00
FineFindus
32be6c8246
imageView: Check set wallpaper response
...
Closes #166
2023-05-24 15:34:52 +00:00
Sophie Herold
3dc9e40bcb
imageView: Fix vertical minimum size in measure
2023-05-03 23:47:40 +02:00
Sophie Herold
24bbd7eae2
window: Show controls on mouse click
2023-05-03 22:22:03 +02:00
Sophie Herold
6db58463bf
imageView: Skip unsupported formats when sliding
...
If an image with unsupported format is opened directly,
the error is shown.
Closes #92
Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/212 >
2023-05-03 18:58:02 +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
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
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
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
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
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
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
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
889c818c14
code: Use pub(super) in GObject impl structs
...
This helps with getting warnings for fields we no longer use
Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/143 >
2023-03-14 21:25:45 +00:00
Sophie Herold
a2a9b4134b
propertiesView: Use decoder format
...
Use the format that we actually used when decoding.
The mime type is usually derived from the file extension
which might not always be correct.
Issue #43
Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/132 >
2023-03-14 00:50:40 +00:00
Sophie Herold
6a4ee11c76
imageView: Add only viewed images to recently used
...
Only adding images expclicitly opened via file browser
or drag and drop. Do not add images while browsing
SlidingView to avoid spamming recently used files.
Closes #53
2023-03-08 02:24:27 +00:00
Sophie Herold
05ef429b86
image: Add newly designed thumbnail for DnD
...
The old method stopped working with the new decoder setup.
The new design features a frame for contrast and rotates
images based on EXIF information.
Closes #89
2023-03-08 01:48:34 +00:00
Sophie Herold
f12ff1ea4d
widgets: Add some widget descriptions
2023-03-06 22:59:40 +01:00
Sophie Herold
f80ec7db56
decoder: Use image-rs, libheif-rs, librsvg
...
This adds proper support for a lot of image formats including SVGs.
It will be the basis for many features to come. The technical core
is an asynchronous renderer that can arrange textures in smaller tiles
which might be generated on demand.
Closes #34 , #40 , #41 , #49
Basis for fixing the following issues #7 , #27 , #36 , #43 , #68 , #71
2023-03-04 21:48:51 -05:00
Christopher Davis
3d445f25fe
window: Use GSignalGroup to watch zoom levels
...
This allows us to git rid of more expression code.
2023-03-05 02:13:41 +00:00
Christopher Davis
aab50af31a
image_view: Switch from expressions to signal groups
...
Expressions have the leak issue mentioned in the previous
commit, but we were using them in a few scenarios where
they couldn't be used in UI files.
Since these expressions don't set a property but instead
trigger behavior, the appropriate API to use is GSignalGroup.
This commit switches the expressions on the image to use
GSignalGroup instead.
2023-03-05 02:13:41 +00:00
Lubosz Sarnecki
30136f9050
code: Fix some typos.
...
Fix some typos, mainly in comments with the power of
Builder's spell correction.
2023-02-21 00:19:05 +01:00
Sophie Herold
004ebd5615
cargo: Update dependencies
2023-02-15 17:04:59 +01:00
Sophie Herold
70d8d00a3d
imageView: Reset zoom and rotation on page change
...
Keeping zoom or rotation would be inconsistent since it's
only preserved while images are cached.
Close #65
2023-02-12 20:39:40 +00:00
Sophie Herold
19c8d69dca
code: Fix clippy warnings
2023-02-12 19:31:22 +01:00
Sophie Herold
69889820cd
window: Add Home/End shortcuts for first/last img
...
This is the same as in EOG.
Also add PageUp/Down for image navigation from EOG.
Cleanup the navigation enums as well.
2023-02-06 19:14:55 +01:00
Sophie Herold
7cf04d290a
clipboard: Use same ContentProvider as for D+D
...
FileList is working in more cases than PNGs and has fewer drawbacks.
Also, it's the same that has been used elsewhere for a long time.
Closes #50
2023-01-31 05:17:39 +00:00
Sophie Herold
4eb8b939b3
application: Add shortcuts for paning the view
...
Closes #54
2023-01-31 04:56:58 +00:00