From f02bae87ebb161149dc00d45209d587c9aeb4d55 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 8 Nov 2026 14:24:51 +0100 Subject: [PATCH] fix: move privacy note to top right with readable shadow --- ui/app-window.slint | 44 ++++++++++++++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 14 deletions(-) diff --git a/ui/app-window.slint b/ui/app-window.slint index f459959..fea0dbb 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: privacy-note.y - self.height - 12px * root.ui-scale; + y: root.height - self.height - root.inset - root.safe-area-insets.bottom; 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: privacy-note.y - self.height - 12px * root.ui-scale; + y: root.height - self.height - root.inset - root.safe-area-insets.bottom; width: panel.width; height: release-german.height + release-english.height + 6px * root.ui-scale + 36px * root.ui-scale; background: #fffffff5; @@ -184,18 +184,34 @@ export component AppWindow inherits Window { } } - 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; + // Offset glyphs provide a shadow without adding a panel over the video. + Text { + visible: root.flash-opacity == 0; + x: privacy-note.x + 1px * root.ui-scale; + y: privacy-note.y + 2px * root.ui-scale; + width: privacy-note.width; + height: privacy-note.height; + text: privacy-note.text; + font-size: privacy-note.font-size; + font-weight: privacy-note.font-weight; + color: #000000cc; + stroke: #00000080; + stroke-width: 1px * root.ui-scale; + horizontal-alignment: right; + wrap: word-wrap; + } + privacy-note := Text { + x: root.width - root.inset - root.safe-area-insets.right - self.width; + y: root.compact ? header.y + header.height + 12px * root.ui-scale : header.y + 10px * root.ui-scale; + width: min(560px * root.ui-scale, root.width - root.inset * 2 - root.safe-area-insets.left - root.safe-area-insets.right - (root.compact ? 0px : header.width + 16px * root.ui-scale)); + height: self.preferred-height; + text: "Bilder werden nie gespeichert und ausschließlich zum Drucken deines Fotos verarbeitet.\nImages are never stored and are processed only to print your photo."; + font-size: 13px * root.ui-scale; + font-weight: 500; + color: root.flash-opacity > 0 ? #20302b : white; + stroke: root.flash-opacity > 0 ? transparent : #20302bb0; + stroke-width: 0.5px * root.ui-scale; + horizontal-alignment: right; wrap: word-wrap; } - }