Sophie Herold
fab6558285
image: Cancel scroll deceleration on gesture
...
Seems like the deceleration from kinetic scrolling can
interact with gestures, making the image jump around.
Closes #103
Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/211 >
2023-05-03 19:50:47 +00:00
Sophie Herold
3d6940cd45
image: Show window after 2 secs if dims unknown
...
Usually we want to wait for dimensions to show the window in correct
apsect ration. But especially for large SVGs dimensions are only known pretty late.
Show the image to give UI feedback instead of waiting for dimensions.
Closes #146
Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/209 >
2023-05-03 19:16:17 +00: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
0a94484bab
window: Leave fullscreen when status page is shown
...
We don't allow to fullscreen without image. So if last image
is deleted, let's leave fullscreen since there are no controls
to leave it.
Closes #150
Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/208 >
2023-05-03 18:14:19 +00:00
Sophie Herold
bea6ad018b
propertiesView: Disable open folder for non-native
...
The GTK API only support native files for opening the
parent directory.
Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/207 >
2023-05-03 16:41:51 +00:00
Sophie Herold
c42fe235c6
imagePage: Make crossfade from spinner work
...
It did not work before because the spinner page did
not take up the complete stack.
Also hiding the spinner when animating out of it
since it can be pretty dominant. Especially, since
it's usually not really shown before but the animation
starts emediately instead.
Closes #153
Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/205 >
2023-05-03 15:54:51 +00:00
Sophie Herold
7c227f75a8
decoder: Cancel file loading on decoder drop
...
That will probably at least work for scrolling quickly
through images. It will however usually not cancel an ongoing
decoding process.
Issue #155
Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/210 >
2023-05-03 14:45:07 +00:00
Sophie Herold
fac2d360b6
meta: Update copyright headers
2023-04-26 18:19:23 +02:00
Sabri Ünal
32ee47d08f
app: Split rotate actions
...
To ensure simplicity of the process, replace the rotate actions
with new two actions, without modifying the existing rotate_image method.
Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/201 >
2023-04-25 17:51:43 +00:00
Sabri Ünal
c92a47a992
application: Remove ctrl+x shortcut
...
Remove Ctrl+X shortcut to comply GNOME HIG.
More information: https://developer.gnome.org/hig/reference/keyboard.html
Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/202 >
2023-04-25 17:18:26 +00:00
Sophie Herold
b30296f994
window: Hide cursor with controls fullscreened
...
Closes #149
Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/197 >
2023-04-25 00:05:24 +00:00
Sophie Herold
9d5dfd8728
window: i18n for filter name and add 'all files'
...
Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/195 >
2023-04-21 16:53:12 +02:00
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
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
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
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
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
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
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
5d7cbe026f
image: Remove debug prints from bg color guesser
...
Closes #111
2023-04-03 16:56:54 +02: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
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
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
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
Sophie Herold
67207bb215
image: Use mipmaps for zoom-out and NN for zoom-in
...
Before we always used "linear" filtering. This gave
a harsh image with moire patterns when zooming out
and washed out images when zooming in.
Closes #68 , #71
Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/125 >
2023-03-25 15:32:31 +00:00
Sophie Herold
7bcc5e210b
cargo: Update and cleanup dependencies
...
- Replace one remaining use of util::spawn with gio
- Replace pretty_env_logger with env_logger
Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/149 >
2023-03-25 14:01:28 +00:00
Sophie Herold
0e24f347e6
imagePage: Move popover out of LpImage
...
It cause 'not measured' errors and we have enough
things to handle in LpImage already.
Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/146 >
2023-03-18 21:24:45 +00:00