Přemysl Eric Janouch
c4d58cb9ad
Prefer the dark theme variant
2021-11-16 14:57:02 +01:00
Přemysl Eric Janouch
9bebb0a3fe
Make this work at all in macOS/Homebrew
2021-11-16 08:51:29 +01:00
Přemysl Eric Janouch
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
Přemysl Eric Janouch
37adaac965
Let modified wheel events scroll the view
2021-11-14 03:37:09 +01:00
Přemysl Eric Janouch
1dce2e079c
Fix a typo
2021-11-14 03:37:08 +01:00
Přemysl Eric Janouch
c905f64d12
Expose view settings as GObject properties
2021-11-14 02:48:11 +01:00
Přemysl Eric Janouch
7d972e9334
Add scaling to fit, make this the default
2021-11-13 12:47:10 +01:00
Přemysl Eric Janouch
b8cc43eb91
Bind the mouse back button on the view
2021-11-13 10:05:05 +01:00
Přemysl Eric Janouch
a1db89d91c
Make scaling accessible from the keyboard
2021-11-13 09:51:16 +01:00
Přemysl Eric Janouch
f341c8f8c3
Make the 1 key reset the zoom
2021-11-11 22:59:31 +01:00
Přemysl Eric Janouch
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
Přemysl Eric Janouch
ed39a9b434
Add elementary scrolling support to the view
2021-11-09 06:57:02 +01:00
Přemysl Eric Janouch
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
Přemysl Eric Janouch
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
Přemysl Eric Janouch
6eecee6b91
Incorporate most clang-format changes
2021-11-01 05:17:26 +01:00
Přemysl Eric Janouch
ab283d3988
Split out fastiv-io.h, move media types list
2021-11-01 05:17:26 +01:00
Přemysl Eric Janouch
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
Přemysl Eric Janouch
fa7b1631f0
Round coordinates for image centring
2021-10-16 10:07:32 +02:00
Přemysl Eric Janouch
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
Přemysl Eric Janouch
cc29f80bb2
Zoom with the scroll wheel
2021-10-12 08:10:57 +02:00
Přemysl Eric Janouch
e4d1e50c4a
Split out image loaders into fastiv-io.c
2021-09-20 00:32:25 +02:00
Přemysl Eric Janouch
c8d408b428
Check the status of new Cairo surfaces properly
2021-09-18 13:52:52 +02:00
Přemysl Eric Janouch
aae6fd4d8b
Add internal support for image scaling
2021-09-17 20:40:11 +02:00
Přemysl Eric Janouch
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
Přemysl Eric Janouch
913267724a
Add RAW support using LibRaw
2021-09-16 15:51:01 +02:00
Přemysl Eric Janouch
97781f6af4
Initial commit
2021-09-15 17:30:16 +02:00