Download images when clicking on them

This commit is contained in:
2026-05-24 13:53:30 +02:00
parent 7d75e010c7
commit fc721ba817
9 changed files with 118 additions and 35 deletions

View File

@@ -21,7 +21,7 @@ export component ImageViewer inherits Rectangle {
interval: 0.2s;
triggered => {
self.running = false;
Global.previewed-image.asset-id = "";
Global.viewed-image.asset-id = "";
}
}
@@ -64,6 +64,8 @@ export component ImageViewer inherits Rectangle {
Image {
source: image;
image-fit: ImageFit.contain;
width: root.width;
height: root.height;
function calc-y() -> length {
parent.y + parent.height / 2 - self.height / 2