Commit Graph

96 Commits

Author SHA1 Message Date
Přemysl Eric Janouch 5f8dc88fa7
Minor URL-related fix-ups 2021-12-31 00:41:04 +01:00
Přemysl Eric Janouch 380ddd540b
Convert all loading to use GFile
Now we're able to make use of GVfs, with some caveats.
2021-12-30 22:32:29 +01:00
Přemysl Eric Janouch bf47782f0a
Move thumbnails into their own source file
And clean up identifiers.
2021-12-28 20:18:25 +01:00
Přemysl Eric Janouch 336053f24d
Implement trivial wide thumbnail production
Also make libwebp a required dependency.
2021-12-27 21:51:01 +01:00
Přemysl Eric Janouch 035997750e
Add a few keyboard shortcuts 2021-12-25 18:28:37 +01:00
Přemysl Eric Janouch 40c1f8327e
Use Little CMS for JPEG colour management 2021-12-24 14:19:22 +01:00
Přemysl Eric Janouch 2d4cab52b3
Integrate jpeg-quantsmooth
Also, don't pointlessly store JPEGs in an ARGB Cairo surface.
2021-12-22 14:20:39 +01:00
Přemysl Eric Janouch 46edd4406c
Make file information fields selectable
Get rid of useless GtkTreeView.
2021-12-22 08:38:19 +01:00
Přemysl Eric Janouch 9899a26635
Add a file information dialog based on ExifTool
Right now, it isn't very pleasing to use.
2021-12-21 13:05:11 +01:00
Přemysl Eric Janouch 24f9d21ca7
Clean up
Get rid of undesired indentation.
2021-12-21 08:43:47 +01:00
Přemysl Eric Janouch ad29013e44
Add zooming to fit width/height if larger
Also, mildly refactor get_surface_dimensions().
2021-12-21 08:13:31 +01:00
Přemysl Eric Janouch 33851295d8
Bind M-Home to going to the home directory 2021-12-21 07:20:06 +01:00
Přemysl Eric Janouch 9ba3679e89
Make use of GtkShortcutsWindow 2021-12-20 16:04:50 +01:00
Přemysl Eric Janouch 6a61d01f4d
Bind hiding the toolbar 2021-12-20 12:15:52 +01:00
Přemysl Eric Janouch f435252492
Add a checkerboard toggle 2021-12-20 11:53:17 +01:00
Přemysl Eric Janouch 58d11ebbff
Make M-Up go to the parent directory
As in Windows Explorer and other software.
2021-12-20 09:58:41 +01:00
Přemysl Eric Janouch 1221325b3e
Stop forcing a dark theme variant
And make it so that both Adwaita variants look okay.
2021-12-20 07:22:24 +01:00
Přemysl Eric Janouch c3eb5ca170
Simplify toolbar separators 2021-12-20 05:34:12 +01:00
Přemysl Eric Janouch 9c0e9d8d49
Stretch the toolbar across the window
The division is kind of logical, it might make sense for the view
to create the center widget, then we'd get rid of some recently added
GObject boilerplate.

Only make_separator() is kind of annoying.
2021-12-20 05:33:27 +01:00
Přemysl Eric Janouch 63955e881d
Add a convenience dark theme variant toggle 2021-12-20 03:55:53 +01:00
Přemysl Eric Janouch 6130f527d4
Mark a dead end 2021-12-20 03:49:35 +01:00
Přemysl Eric Janouch 56d623fe52
Make C-r also reload the current directory 2021-12-19 12:21:14 +01:00
Přemysl Eric Janouch 2c46ca262b
Add directory history
Not fully polished yet (see FIXME), but it's a start.
2021-12-19 10:59:11 +01:00
Přemysl Eric Janouch 39cd52905b
Control TOOLBAR_FILE_{PREVIOUS,NEXT} sensitivity 2021-12-19 10:14:08 +01:00
Přemysl Eric Janouch 9feb53a792
Use the same iteration order in view/browser 2021-12-19 09:12:06 +01:00
Přemysl Eric Janouch 4427da5343
Store the full path of the loaded image
Fixes a minor inconsistency with the window title.
2021-12-19 09:12:06 +01:00
Přemysl Eric Janouch 92c6ca6c35
Give the zoom label a minimum width
This also hides a GTK+ bug.
2021-12-19 07:32:21 +01:00
Přemysl Eric Janouch ae57c45c2a
Insensivitize inappropriate toolbar actions 2021-12-19 07:04:34 +01:00
Přemysl Eric Janouch 6e903f6f5c
Add a playback toggle button 2021-12-19 05:37:11 +01:00
Přemysl Eric Janouch e23ed245db
Add toolbar toggle buttons for scale-to-fit/filter 2021-12-19 04:43:47 +01:00
Přemysl Eric Janouch b78010ccb1
Adopt shorter identifiers
Also, slightly reformat the source code according to clang-format.
2021-12-18 07:04:01 +01:00
Přemysl Eric Janouch 1c2a441cb5
Add a simple toolbar to the view
There is still considerable work to be done.
2021-12-17 07:01:37 +01:00
Přemysl Eric Janouch 0b6b3d8290
Improve light theme compatibility
@content_view_bg has been there since ever.

Many colours remain hardcoded, but it's a major improvement.
2021-12-16 04:39:38 +01:00
Přemysl Eric Janouch 1db233648f
Add more key bindings 2021-11-29 22:45:36 +01:00
Přemysl Eric Janouch 085f2d7eef
Use GFile a bit more 2021-11-27 02:34:24 +01:00
Přemysl Eric Janouch b97ac26cfb
Allow opening in a new window from the sidebar 2021-11-26 23:02:00 +01:00
Přemysl Eric Janouch 1c40fa8adb
Add an "Open With" context menu to browser items 2021-11-23 20:50:01 +01:00
Přemysl Eric Janouch fee901a590
Improve memory management 2021-11-23 17:13:21 +01:00
Přemysl Eric Janouch 047e49051b
Register for opening directories 2021-11-22 20:37:16 +01:00
Přemysl Eric Janouch 8fed3f5a36
Add a better key binding for switching 2021-11-22 16:46:04 +01:00
Přemysl Eric Janouch 0bec06b55d
Fix further focus issues 2021-11-22 13:01:43 +01:00
Přemysl Eric Janouch 97109b1e58
Fix browsing right after opening a file directly 2021-11-22 12:42:26 +01:00
Přemysl Eric Janouch a719147bf3
Another focus-related fix 2021-11-22 12:07:03 +01:00
Přemysl Eric Janouch cd72ea902f
Fix two issues with browser scrolling 2021-11-22 01:44:57 +01:00
Přemysl Eric Janouch a8796512d2
Improve the window title situation 2021-11-21 21:53:07 +01:00
Přemysl Eric Janouch 8b1a14decb
Bind double click to full screen toggle 2021-11-21 21:22:14 +01:00
Přemysl Eric Janouch 5fea2245f1
Remove insanity 2021-11-21 20:47:07 +01:00
Přemysl Eric Janouch 2b17ed838a
Add ability to use different thumbnail sizes 2021-11-21 20:19:25 +01:00
Přemysl Eric Janouch c77bccccb8
Implement filtering by supported extensions 2021-11-21 11:01:30 +01:00
Přemysl Eric Janouch 8376ae9c4a
Add some custom action buttons to the sidebar
So far they're inactive, and do not do anything.

Change the icon for the current directory to stand out.
2021-11-20 22:02:02 +01:00