Add initial image viewer

This commit is contained in:
2026-04-26 12:45:56 +02:00
parent 10fcd546ce
commit 17dfc144b2
6 changed files with 242 additions and 144 deletions

28
ui/types.slint Normal file
View File

@@ -0,0 +1,28 @@
export enum PreviewKind {
None,
Thumbhash,
Thumbnail,
}
export struct ImagePreview {
asset_id: string,
image: image,
kind: PreviewKind,
}
export enum Visibility {
Hidden,
NearView,
InView,
}
export struct ImageBucket {
key: string,
title: string,
count: int,
previews: [ImagePreview],
y: length,
height: length,
visibility: Visibility,
}