Add initial image viewer
This commit is contained in:
28
ui/types.slint
Normal file
28
ui/types.slint
Normal 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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user