Commit graph

32 commits

Author SHA1 Message Date
Christopher Davis
293dc3c124 window: Bind headerbar opacity to controls
No purpose yet, but will help when we want to implement
fading. Need to have support for closures in Rust first.
2021-09-24 05:58:55 -07:00
Christopher Davis
e45b89f854 window: Rework fullscreen
We can use AdwFlap and have one single headerbar for both
fullscreen and unfullscreened.
2021-09-24 01:18:31 -07:00
Christopher Davis
e589028f1b application: Set the active window for show_uri () 2021-09-23 08:05:34 -07:00
Christopher Davis
0c62962d06 application: Subclass AdwApplication
AdwApplication automatically handles styling for us.
2021-09-23 08:05:34 -07:00
Christopher Davis
1687411536 general: clippy lint fixes 2021-09-22 22:57:54 -07:00
Christopher Davis
4fbf0e2203 build: Version bump
40 and 41 are both out now, we're starting the 42 cycle.
2021-09-22 22:40:00 -07:00
Christopher Davis
decba30212 css: Use @theme_base_color
This works better with the new OSD styling and with
transparency.
2021-09-22 22:39:12 -07:00
Christopher Davis
52af944521 css: Make checkerboard style less specific 2021-09-22 22:13:32 -07:00
Christopher Davis
f15491af78 css: Remove custom header styling
Adwaita handles this well enough now.
2021-09-22 22:12:33 -07:00
Christopher Davis
b85255a6be application: Stop using add_window ()
This isn't needed since we use an ApplicationWindow
2021-09-22 21:56:15 -07:00
Christopher Davis
f9ac6470ad window: Use gtk_widget_class_install_action ()
Simplifies our action handling a lot - we no longer need
to use the `action!` macro here, and we don't need
`lookup_action ()` to set the action state or activate
actions.
2021-09-22 21:33:47 -07:00
Christopher Davis
c6ff46a578 css: Add styling for checkerboard 2021-09-22 20:49:31 -07:00
Christopher Davis
51ae806d7a Update README.md 2021-09-14 19:49:17 -07:00
Christopher Davis
1ea7ff9b09 image_view: Set focus-on-click to true 2021-09-14 19:48:24 -07:00
Christopher Davis
84208d2887 image_view: Add directory navigation
This commit adds directory navigation to Image Viewer.
Currently it only sorts images by name, instead of following
directory sorting like the mockups.
2021-09-14 04:21:34 -07:00
Christopher Davis
1841789525 Update rust dependencies 2021-08-17 20:37:04 -07:00
Christopher Davis
73188840ae general: Use stable rust dependencies 2021-06-27 15:28:35 -07:00
Christopher Davis
4ef2b61ecd flatpak: Use updated libadwaita 2021-06-27 15:26:57 -07:00
Christopher Davis
fef57b242d window, image_view: Resize window based on image size
Allows us to have a more appropriate size for the window
based on the content, instead of sticking with the small
default window size.
2021-03-02 16:43:17 -08:00
Christopher Davis
f056c82ced Update rust dependencies 2021-03-02 16:42:04 -08:00
Julian Hofer
15dede1f1b Run cargo fmt on source files
Also add rust-analyzer and flatpak-vscode specific folders to .gitignore
2021-02-06 20:59:17 +01:00
Christopher Davis
4561b1f4f8 Update Rust deps
Updates to subclassing and templates.
2021-01-30 15:52:32 -08:00
Christopher Davis
b2a15242be image_view: Bind properties in UI file 2021-01-23 23:57:55 -08:00
Christopher Davis
f621fedbba window: bind properties in UI file
This is possible, and allows us to clean up constructed
a bit.
2021-01-23 23:46:33 -08:00
Christopher Davis
f49ef9b2d9 image_view: Use AdwBin
Gives us a little bit less manual work.
2021-01-23 23:36:28 -08:00
Christopher Davis
5dc42c776a window: remove show-title-buttons
This is true by default.
2021-01-23 22:24:18 -08:00
Christopher Davis
7d68e62e07 flatpak: Pin libadwaita branch
flatpak-builder can't detect main as the main branch
currently.
2021-01-15 09:27:51 -08:00
Christopher Davis
e34f4055e4 Exchange libhandy-4 for libadwaita
libhandy-4 is dead. Long live libadwaita.
2021-01-14 21:36:30 -08:00
Christopher Davis
28bf2b9213 Stop using .get() for template children
We can drop this completely now that Deref is implemented.
2021-01-13 23:16:02 -08:00
Christopher Davis
f1fa94fca7 Use instance_init() for composite templates
Drops the incorrect use of instance_init() within
constructed.
2021-01-13 23:05:45 -08:00
Christopher Davis
5d8c6756e2 data: Disable appdata test
This test isn't needed for now.
2020-12-29 20:29:08 -08:00
Christopher Davis
f692ab5626 Initial Commit
The initial commit of gnome-image-viewer.
Things are in an MVP state, with image viewing and
opening from the desktop functional. We also can
open images externally, print them, and set them as
backgrounds.
2020-12-26 02:18:23 -08:00