mcp-image-previewer 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/ui/main.slint +18 -0
package/package.json
CHANGED
package/ui/main.slint
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export component MainWindow inherits Window {
|
|
2
|
+
in-out property <image> current-image;
|
|
3
|
+
in property <string> image-info: "";
|
|
4
|
+
in property <bool> stay-on-top: false;
|
|
5
|
+
|
|
6
|
+
title: image-info != "" ? "MCP Image Previewer — " + image-info : "MCP Image Previewer";
|
|
7
|
+
always-on-top: stay-on-top;
|
|
8
|
+
background: #1e1e1e;
|
|
9
|
+
preferred-width: 800px;
|
|
10
|
+
preferred-height: 600px;
|
|
11
|
+
|
|
12
|
+
VerticalLayout {
|
|
13
|
+
Image {
|
|
14
|
+
source: current-image;
|
|
15
|
+
image-fit: contain;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|