Commit Graph

29 Commits

Author SHA1 Message Date
0433c1a027
Add a sidebar with places
It happens to fix an issue with scroll offset resets in the browser.

Otherwise, it's very much WIP.
2021-11-18 10:37:47 +01:00
db7a28b187
Add support for opening Xcursor files
Sadly, they don't have a canonical extension, and they don't show up
in the browser.  We might want to employ some level of sniffing.
The first 16 bytes are enough to identify a lot.
2021-11-17 13:49:15 +01:00
e8754f43a6
Fix zooming in through the keyboard 2021-11-17 08:38:45 +01:00
c4d58cb9ad
Prefer the dark theme variant 2021-11-16 14:57:02 +01:00
9bebb0a3fe
Make this work at all in macOS/Homebrew 2021-11-16 08:51:29 +01:00
11b7969459
Support opaque 16-bit images as RGB30 with Wuffs
Do not check whether the window's visual can make use of them,
since they're arguably rare enough.

With transparent images, we're limited by Cairo's formats.
2021-11-15 14:21:22 +01:00
37adaac965
Let modified wheel events scroll the view 2021-11-14 03:37:09 +01:00
1dce2e079c
Fix a typo 2021-11-14 03:37:08 +01:00
c905f64d12
Expose view settings as GObject properties 2021-11-14 02:48:11 +01:00
7d972e9334
Add scaling to fit, make this the default 2021-11-13 12:47:10 +01:00
b8cc43eb91
Bind the mouse back button on the view 2021-11-13 10:05:05 +01:00
a1db89d91c
Make scaling accessible from the keyboard 2021-11-13 09:51:16 +01:00
f341c8f8c3
Make the 1 key reset the zoom 2021-11-11 22:59:31 +01:00
1c5cc50939
Add very basic SVG support
We need to refactor, so that SVGs are pre-rendered on each change
of scaling by librsvg directly, because some elements may be rasterized.

It would be best to also support building against resvg.
2021-11-10 00:23:19 +01:00
ed39a9b434
Add elementary scrolling support to the view 2021-11-09 06:57:02 +01:00
a135d6f332
Enable opening images from the browser
Also, make it possible to go back, in a roughly implemented manner.
2021-11-09 06:03:02 +01:00
45df774cc9
Fix scaling in the view, as in the browser
The source pattern needs to be padded.
2021-11-04 19:42:22 +01:00
6eecee6b91
Incorporate most clang-format changes 2021-11-01 05:17:26 +01:00
ab283d3988
Split out fastiv-io.h, move media types list 2021-11-01 05:17:26 +01:00
a6972e4c6e
Don't hardcode the background colour
It can be now overriden in the user's gtk.css.
2021-10-17 12:48:15 +02:00
fa7b1631f0
Round coordinates for image centring 2021-10-16 10:07:32 +02:00
70a4729f36
Use bilinear filtering
It could be both faster and more accurate,
though currently it's a good compromise.
2021-10-16 10:04:50 +02:00
cc29f80bb2
Zoom with the scroll wheel 2021-10-12 08:10:57 +02:00
e4d1e50c4a
Split out image loaders into fastiv-io.c 2021-09-20 00:32:25 +02:00
c8d408b428
Check the status of new Cairo surfaces properly 2021-09-18 13:52:52 +02:00
aae6fd4d8b
Add internal support for image scaling 2021-09-17 20:40:11 +02:00
ddcc878424
Make the background black, center the image
It might be a good idea to make the colour adjustable, at least being
able to switch to white, for certain partly-transparent pictures.
2021-09-16 20:14:06 +02:00
913267724a
Add RAW support using LibRaw 2021-09-16 15:51:01 +02:00
97781f6af4
Initial commit 2021-09-15 17:30:16 +02:00