Add initial image viewer
This commit is contained in:
17
ui/global.slint
Normal file
17
ui/global.slint
Normal file
@@ -0,0 +1,17 @@
|
||||
import { ImageBucket, ImagePreview } from "types.slint";
|
||||
|
||||
export global Global {
|
||||
in-out property <length> min-image-size: 100px;
|
||||
in-out property <length> image-margin: 2px;
|
||||
in-out property <ImagePreview> previewed-image;
|
||||
in-out property <[ImageBucket]> image-buckets: [
|
||||
{ key: "2026-02-01", title: "Feb 1, 2026", count: 12 },
|
||||
{ key: "2026-02-02", title: "Feb 2, 2026", count: 12 },
|
||||
{ key: "2026-02-03", title: "Feb 3, 2026", count: 12 },
|
||||
];
|
||||
in property <length> timeline-height;
|
||||
in property <length> timeline-width;
|
||||
in property <length> timeline-scroll;
|
||||
callback set-timeline-width(length);
|
||||
callback timeline-scrolled(length);
|
||||
}
|
||||
Reference in New Issue
Block a user