import { Nine, Theme } from "base.slint";
import { Pieces } from "pieces.slint";
import { Icons } from "icons.slint";
export component ThumbnailFrame {
in property <image> source;
in property <bool> missing: false;
preferred-width: 144px; preferred-height: 144px;
Rectangle { width: root.width; height: root.height; background: Theme.pane-bg; }
Nine { x: -4px; y: -4px; width: root.width + 8px; height: root.height + 8px; source: Pieces.mod-thumbnail-image-default-base; }
Image { width: root.width; height: root.height; source: root.missing ? Icons.missing-thumbnail : root.source; image-fit: contain; }
Nine { width: root.width; height: root.height; source: Pieces.mod-thumbnail-image-default-shadow; }
}