diff --git a/ui/app-window.slint b/ui/app-window.slint index fea0dbb..5508c99 100644 --- a/ui/app-window.slint +++ b/ui/app-window.slint @@ -184,33 +184,37 @@ export component AppWindow inherits Window { } } - // Offset glyphs provide a shadow without adding a panel over the video. - Text { + // Sample a small Gaussian kernel behind the glyphs. This softens the + // shadow on Linux KMS's software renderer without a box or hard outline. + for row in [{offset: -2, weight: 0.06}, {offset: -1, weight: 0.24}, {offset: 0, weight: 0.40}, {offset: 1, weight: 0.24}, {offset: 2, weight: 0.06}]: Rectangle { visible: root.flash-opacity == 0; - x: privacy-note.x + 1px * root.ui-scale; - y: privacy-note.y + 2px * root.ui-scale; + x: privacy-note.x; + y: privacy-note.y + (1px + row.offset * 1px) * 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; + background: transparent; + for column in [{offset: -2, weight: 0.06}, {offset: -1, weight: 0.24}, {offset: 0, weight: 0.40}, {offset: 1, weight: 0.24}, {offset: 2, weight: 0.06}]: Text { + x: column.offset * 1px * 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: black; + opacity: row.weight * column.weight * 0.9; + horizontal-alignment: right; + wrap: privacy-note.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)); + width: min(740px * 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; }