fix: show translucent countdown without a panel
This commit is contained in:
@@ -9,3 +9,4 @@
|
|||||||
- Size instruction panels to their content and use consistent padding at the screen edges.
|
- Size instruction panels to their content and use consistent padding at the screen edges.
|
||||||
- Scale branding, icons, typography, and spacing with screen dimensions; cap the centered instruction panel width on large monitors.
|
- Scale branding, icons, typography, and spacing with screen dimensions; cap the centered instruction panel width on large monitors.
|
||||||
- The monitor provides room lighting: keep the translucent white overlay on throughout the countdown and until photo capture returns; do not fade it out early.
|
- The monitor provides room lighting: keep the translucent white overlay on throughout the countdown and until photo capture returns; do not fade it out early.
|
||||||
|
- Display the countdown as a large semi-transparent number directly over the lighting overlay, without a box or supporting text.
|
||||||
|
|||||||
@@ -140,40 +140,15 @@ export component AppWindow inherits Window {
|
|||||||
active: root.hand-detected;
|
active: root.hand-detected;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if root.countdown > 0: Rectangle {
|
if root.countdown > 0: Text {
|
||||||
x: (root.width - self.width) / 2;
|
width: root.width;
|
||||||
y: (root.height - self.height) / 2;
|
height: root.height;
|
||||||
width: min(420px * root.ui-scale, root.width - root.inset * 2);
|
text: root.countdown;
|
||||||
height: 340px * root.ui-scale;
|
color: #20302b77;
|
||||||
border-radius: 32px * root.ui-scale;
|
font-size: min(240px * root.ui-scale, min(root.width * 0.6, root.height * 0.45));
|
||||||
background: #fffffff0;
|
font-weight: 700;
|
||||||
VerticalLayout {
|
horizontal-alignment: center;
|
||||||
padding: 24px * root.ui-scale;
|
vertical-alignment: center;
|
||||||
spacing: 8px * root.ui-scale;
|
|
||||||
Text {
|
|
||||||
text: root.countdown;
|
|
||||||
color: #20302b;
|
|
||||||
font-size: 180px * root.ui-scale;
|
|
||||||
font-weight: 700;
|
|
||||||
horizontal-alignment: center;
|
|
||||||
vertical-alignment: center;
|
|
||||||
}
|
|
||||||
Text {
|
|
||||||
text: "Bitte in die Kamera schauen.";
|
|
||||||
color: #20302b;
|
|
||||||
font-size: 18px * root.ui-scale;
|
|
||||||
font-weight: 600;
|
|
||||||
horizontal-alignment: center;
|
|
||||||
wrap: word-wrap;
|
|
||||||
}
|
|
||||||
Text {
|
|
||||||
text: "Please look at the camera.";
|
|
||||||
color: #52635d;
|
|
||||||
font-size: 14px * root.ui-scale;
|
|
||||||
horizontal-alignment: center;
|
|
||||||
wrap: word-wrap;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if root.awaiting-release: Rectangle {
|
if root.awaiting-release: Rectangle {
|
||||||
|
|||||||
Reference in New Issue
Block a user