Commit graph

100 commits

Author SHA1 Message Date
Sophie Herold
d4f351bf5b propertiesView: Activatable rows not selectable
Inputs get to mixed up if the subtitle in rows that
are activatable are also selectable.

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
Gotam Gorabh
8e0ab20e05 used correct verb phrase for print preview window title
used appropriate title for print preview window.

Fixes: https://gitlab.gnome.org/Incubator/loupe/-/issues/152
Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/198>
2023-04-27 02:12:20 +00: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
1f2be8353a help-overlay: Fix for 'delete' action appearing too long
The 'delete' action contains several shortcuts, which makes it appear too long on the help-overlay.

This patch resolves the issue by displaying only one shortcut for it.

Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/200>
2023-04-25 17:34:52 +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
d0abea4284 data: Update screenshots, description, and URLs
Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/203>
2023-04-25 01:31:25 +02:00
Sophie Herold
9dc58baf17 meta: Prepare v44.2 2023-04-22 13:51:00 +00:00
Sophie Herold
b55b51a0f3 imageView: Fullscreen button at typical position
My muscle memory, research, and the proximity to "zoom in"
tells me we should try moving it to the right.

Closes #105

Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/194>
2023-04-20 20:37:41 +00: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
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
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
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
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
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
Sophie Herold
22fe8e3404 data: Prepare 44.1 release 2023-04-06 23:19:06 +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
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
6d0c5a4665 css: Make OSD circular selector more specific
This avoids applying it to other circular buttons in the app.
Also, remove padding to make size independent of icon size.

Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/152>
2023-03-25 14:32:21 +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
Sophie Herold
42d558d22f propertiesView: Use image dimensions from decoder
This also shows the units for SVG dimensions if not pixels.

Issue #43

Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/136>
2023-03-14 02:31:07 +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
Sabri Ünal
8743149cbb ui: Mark two tooltips translatable
- Copy to Clipboard
- Move to Trash
2023-03-11 00:49:03 +00:00
Anders Jonsson
f67d354026 data: Grammar fixes in description 2023-03-10 18:53:38 +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
Automeris naranja
9535b33b11 help_overlay: Rename "Primary Menu" to "Main Menu"
"Main Menu" is correct name.

https://developer.gnome.org/hig/patterns/controls/menus.html#primary-menus
2023-03-05 17:05:21 +00:00
Automeris naranja
d65bbc11f1 help_overlay: Show missing actions
This change adds the following actions to the help overlay:
- Copy image to clipboard
- Move image to trash
2023-03-05 17:05:21 +00:00
Automeris naranja
5d3f74b1df window: Add mnemonic to the "Open File" button 2023-03-05 13:59:54 +00:00
Automeris naranja
e1d81fe57b window: Set Main Menu button as primary
By setting the Main Menu button as primary,
the F10 key is automatically assigned to this button.
Setting a shortcut with GtkShortcutController is no longer necessary.
2023-03-05 07:29:10 -03: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
ae41a77521 properties_view: Move expressions to UI files
Currently Loupe leaks expressions created in-code. This
is because expressions need to be unwatched in order to be
dropped. Since we'd need to hold a reference to the watch
ourselves and unwatch them in dispose, our code would
become more cumbersome if we were to try to handle this properly.

This commit moves the expressions on LpPropertiesView to the
UI file, as GTK handles cleaning up the expressions it creates,
without any extra consideration on the app side.
2023-03-05 02:13:41 +00:00
Automeris naranja
6857f2c921 window: Change AdwStatusPage title to "View Images"
Fixes https://gitlab.gnome.org/Incubator/Submission/-/issues/1#note_1654093
2023-02-24 19:14:44 -03:00
Sophie Herold
8a46ef32c6 propertiesView: Fix opening flap on drag gesture
This only fixes opening the flap on touchscreens. Preventing
close is much harder. But hopefully wil be fixed upstream.
2023-02-14 22:42:20 +00:00
Sophie Herold
f87a1b7131 data: Update metadata for incubation
Also add some missing appstream information
2023-02-12 19:49:06 +00:00
Sophie Herold
6077292117 helpOverlay: Show correct gestures for RTL
Closes #38
2023-02-07 21:22:12 +00: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
169dd454cc image: Add double click for zoom/fullscreen
Zooms on touchscreens and fullscreens otherwise.
Using the fullscreen behavior for now, since that's what
a lot of other apps do.
2023-02-06 18:40:32 +01:00
Sophie Herold
aa7a2dfd93 window: Add image deletion
Add Flatpak access to GVfs for trash:/// access for being
able to recover files (undo trash operation).

Closes #26
2023-02-02 00:45:40 +00:00
Christopher Davis
04e8646daa properties_view: Make subtitles selectable
Closes #23
2023-02-01 16:02:08 +00:00
Sophie Herold
4eb8b939b3 application: Add shortcuts for paning the view
Closes #54
2023-01-31 04:56:58 +00:00
Christopher Davis
0d74083cf8 propertiesView: Do not propagate natural height
Propagating the height resulted in new window dimensions not
fitting to images.
Use ScrolledWindow instead of PreferencesPage to have
control over propagate-natural-height.
2023-01-31 04:29:29 +00:00
Sophie Herold
f2357513da imageView: Use custom slide widget and IndexSet
Use IndexSet to allow direct access by Path and also allow
an arbitrary ordering that was not possible with Vec. Also
add monitoring of file changes in the directory.

Use a custom LpSlidingView instead of AdwCarousel because
Carousel was never designed for this job and suffered of
bugs. LpSlidingView does not support swiping gestures yet
since they currently don't work yet anyways #24.

Use a new algorithm to fill the LpSlidingView that is
stateless and covers all potential changes in the directory.
This not only fixes bugs but would also work with changed
sorting orders.

This also adds build time template XML validation since it
was useful for the refactoring #46.

Closes #9, #11, #30, #33, #42
2023-01-30 01:08:57 +00:00
sunflowerskater
6e632e7281 window: Update AdwStatusPage description
This change applies @bertob suggestion for an updated AdwStatusPage description:
https://gitlab.gnome.org/Incubator/Submission/-/issues/1#note_1641740
2023-01-20 03:13:45 +00:00
Tobias Bernard
9008c394f4 icon: New, unique app icon 2023-01-10 22:57:28 +01:00
sunflowerskater
2817e9bca6 window.ui: Rename Primary Menu to Main Menu
Currently, the "Main Menu" tooltip is "Primary Menu". However, HIG advises to use "Main Menu" instead:
https://developer.gnome.org/hig/patterns/feedback/tooltips.html

This commit changes the button tooltip to "Main Menu".
2022-12-21 19:03:59 -03:00
Sophie Herold
cc52f7a542 propertiesView: Move location to top of section
It just looks better with icon and it makes sense content wise imo
2022-12-19 18:44:23 +01:00
Sophie Herold
4b9c91f8df exif: Show device maker more consitently
Also, don't call it camera because it can be a scanner etc as well
2022-12-19 18:44:08 +01:00
Sabri Ünal
cbde386126 help-overlay: Improve some shortcuts and help-overlay 2022-12-17 17:07:22 +00:00