fix: soften privacy text shadow and avoid unnecessary wrapping
This commit is contained in:
@@ -184,33 +184,37 @@ export component AppWindow inherits Window {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Offset glyphs provide a shadow without adding a panel over the video.
|
// Sample a small Gaussian kernel behind the glyphs. This softens the
|
||||||
Text {
|
// 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;
|
visible: root.flash-opacity == 0;
|
||||||
x: privacy-note.x + 1px * root.ui-scale;
|
x: privacy-note.x;
|
||||||
y: privacy-note.y + 2px * root.ui-scale;
|
y: privacy-note.y + (1px + row.offset * 1px) * root.ui-scale;
|
||||||
width: privacy-note.width;
|
width: privacy-note.width;
|
||||||
height: privacy-note.height;
|
height: privacy-note.height;
|
||||||
text: privacy-note.text;
|
background: transparent;
|
||||||
font-size: privacy-note.font-size;
|
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 {
|
||||||
font-weight: privacy-note.font-weight;
|
x: column.offset * 1px * root.ui-scale;
|
||||||
color: #000000cc;
|
width: privacy-note.width;
|
||||||
stroke: #00000080;
|
height: privacy-note.height;
|
||||||
stroke-width: 1px * root.ui-scale;
|
text: privacy-note.text;
|
||||||
horizontal-alignment: right;
|
font-size: privacy-note.font-size;
|
||||||
wrap: word-wrap;
|
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 {
|
privacy-note := Text {
|
||||||
x: root.width - root.inset - root.safe-area-insets.right - self.width;
|
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;
|
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;
|
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.";
|
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-size: 13px * root.ui-scale;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: root.flash-opacity > 0 ? #20302b : white;
|
color: root.flash-opacity > 0 ? #20302b : white;
|
||||||
stroke: root.flash-opacity > 0 ? transparent : #20302bb0;
|
|
||||||
stroke-width: 0.5px * root.ui-scale;
|
|
||||||
horizontal-alignment: right;
|
horizontal-alignment: right;
|
||||||
wrap: word-wrap;
|
wrap: word-wrap;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user