18 lines
693 B
Plaintext
18 lines
693 B
Plaintext
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);
|
|
}
|