fix: move privacy note to top right with readable shadow
This commit is contained in:
@@ -113,7 +113,7 @@ export component AppWindow inherits Window {
|
|||||||
panel := Rectangle {
|
panel := Rectangle {
|
||||||
visible: root.countdown == 0 && !root.awaiting-release;
|
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;
|
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);
|
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;
|
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;
|
border-radius: 22px * root.ui-scale;
|
||||||
@@ -154,7 +154,7 @@ export component AppWindow inherits Window {
|
|||||||
|
|
||||||
if root.awaiting-release: Rectangle {
|
if root.awaiting-release: Rectangle {
|
||||||
x: (root.width - self.width) / 2;
|
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;
|
width: panel.width;
|
||||||
height: release-german.height + release-english.height + 6px * root.ui-scale + 36px * root.ui-scale;
|
height: release-german.height + release-english.height + 6px * root.ui-scale + 36px * root.ui-scale;
|
||||||
background: #fffffff5;
|
background: #fffffff5;
|
||||||
@@ -184,18 +184,34 @@ export component AppWindow inherits Window {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
privacy-note := Text {
|
// Offset glyphs provide a shadow without adding a panel over the video.
|
||||||
x: panel.x;
|
Text {
|
||||||
y: root.height - self.height - root.inset - root.safe-area-insets.bottom;
|
visible: root.flash-opacity == 0;
|
||||||
width: panel.width;
|
x: privacy-note.x + 1px * root.ui-scale;
|
||||||
height: self.preferred-height;
|
y: privacy-note.y + 2px * root.ui-scale;
|
||||||
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.";
|
width: privacy-note.width;
|
||||||
font-size: 12px * root.ui-scale;
|
height: privacy-note.height;
|
||||||
color: root.flash-opacity > 0 ? #20302b : #ffffffee;
|
text: privacy-note.text;
|
||||||
stroke: root.flash-opacity > 0 ? transparent : #20302bb0;
|
font-size: privacy-note.font-size;
|
||||||
stroke-width: 0.5px * root.ui-scale;
|
font-weight: privacy-note.font-weight;
|
||||||
horizontal-alignment: center;
|
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;
|
wrap: word-wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user