From 8a0dc6f5bd9e8b49b9911bcb59c5fac8581d2773 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 8 Nov 2026 14:22:39 +0100 Subject: [PATCH] feat: add bilingual privacy note below instructions --- ui/app-window.slint | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/ui/app-window.slint b/ui/app-window.slint index 3ef1cfd..f459959 100644 --- a/ui/app-window.slint +++ b/ui/app-window.slint @@ -113,7 +113,7 @@ export component AppWindow inherits Window { panel := Rectangle { visible: root.countdown == 0 && !root.awaiting-release; x: root.safe-area-insets.left + (root.width - root.safe-area-insets.left - root.safe-area-insets.right - self.width) / 2; - y: root.height - self.height - root.inset - root.safe-area-insets.bottom; + y: privacy-note.y - self.height - 12px * root.ui-scale; width: min(1040px * root.ui-scale, root.width - root.inset * 2 - root.safe-area-insets.left - root.safe-area-insets.right); height: root.compact ? first.height + second.height + 44px * root.ui-scale : max(first.height, second.height) + 32px * root.ui-scale; border-radius: 22px * root.ui-scale; @@ -154,7 +154,7 @@ export component AppWindow inherits Window { if root.awaiting-release: Rectangle { x: (root.width - self.width) / 2; - y: root.height - self.height - root.inset - root.safe-area-insets.bottom; + y: privacy-note.y - self.height - 12px * root.ui-scale; width: panel.width; height: release-german.height + release-english.height + 6px * root.ui-scale + 36px * root.ui-scale; background: #fffffff5; @@ -183,4 +183,19 @@ export component AppWindow inherits Window { wrap: word-wrap; } } + + privacy-note := Text { + x: panel.x; + y: root.height - self.height - root.inset - root.safe-area-insets.bottom; + width: panel.width; + height: self.preferred-height; + text: "Bilder werden nie gespeichert und ausschließlich zum Drucken eines Fotos verarbeitet.\nImages are never stored and are processed only to print a photo."; + font-size: 12px * root.ui-scale; + color: root.flash-opacity > 0 ? #20302b : #ffffffee; + stroke: root.flash-opacity > 0 ? transparent : #20302bb0; + stroke-width: 0.5px * root.ui-scale; + horizontal-alignment: center; + wrap: word-wrap; + } + }