aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-07-31 04:33:39 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-07-31 04:35:04 +0200
commitab70b30053c524735df75fc881b01accde1cd4f7 (patch)
tree62f7a015461467fe461711f8f3f7bdaf287d0a4f
parentea75579b33498cde54c34485aee28a69956ccaaf (diff)
downloadfiv-ab70b30053c524735df75fc881b01accde1cd4f7.tar.gz
fiv-ab70b30053c524735df75fc881b01accde1cd4f7.tar.xz
fiv-ab70b30053c524735df75fc881b01accde1cd4f7.zip
Centre ultra-wide items vertically
Overall, this looks better, even though we lose a baseline of sorts.
-rw-r--r--fiv-browser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fiv-browser.c b/fiv-browser.c
index a11119a..db46bd3 100644
--- a/fiv-browser.c
+++ b/fiv-browser.c
@@ -257,7 +257,7 @@ item_extents(FivBrowser *self, const Item *item, const Row *row)
int height = cairo_image_surface_get_height(item->entry->thumbnail);
return (GdkRectangle) {
.x = row->x_offset + item->x_offset,
- .y = row->y_offset + self->item_height - height,
+ .y = row->y_offset + (self->item_height - height) / 2,
.width = width,
.height = height,
};