fix: tune kiosk scaling for 1280x1024 displays
This commit is contained in:
@@ -10,3 +10,4 @@
|
|||||||
- 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.
|
- Display the countdown as a large semi-transparent number directly over the lighting overlay, without a box or supporting text.
|
||||||
|
- The primary kiosk monitor is a 19-inch 1907FPVT LCD at 1280×1024 (5:4). Check overlays at that resolution; constrain scaling by width as well as height, keep instructions in two columns, and leave the central camera area clear.
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ component Instruction inherits Rectangle {
|
|||||||
height: self.preferred-height;
|
height: self.preferred-height;
|
||||||
text: root.german;
|
text: root.german;
|
||||||
color: #20302b;
|
color: #20302b;
|
||||||
font-size: 18px * root.ui-scale;
|
font-size: 20px * root.ui-scale;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
wrap: word-wrap;
|
wrap: word-wrap;
|
||||||
}
|
}
|
||||||
@@ -46,7 +46,7 @@ component Instruction inherits Rectangle {
|
|||||||
height: self.preferred-height;
|
height: self.preferred-height;
|
||||||
text: root.english;
|
text: root.english;
|
||||||
color: #52635d;
|
color: #52635d;
|
||||||
font-size: 14px * root.ui-scale;
|
font-size: 15px * root.ui-scale;
|
||||||
wrap: word-wrap;
|
wrap: word-wrap;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -60,8 +60,9 @@ export component AppWindow inherits Window {
|
|||||||
in property <int> countdown: 0;
|
in property <int> countdown: 0;
|
||||||
in property <float> flash-opacity: 0;
|
in property <float> flash-opacity: 0;
|
||||||
in property <bool> awaiting-release: false;
|
in property <bool> awaiting-release: false;
|
||||||
// Scale by the shorter screen edge so 1080p and 4K displays remain readable.
|
// Use width as well as height: a 1280×1024 (5:4) monitor should not
|
||||||
private property <float> ui-scale: clamp(min(root.width / 800px, root.height / 800px), 0.85, 2.5);
|
// enlarge the UI just because it is taller than a widescreen display.
|
||||||
|
private property <float> ui-scale: clamp(min(root.width / 1280px, root.height / 800px), 0.85, 2.5);
|
||||||
private property <color> primary: #84bf65;
|
private property <color> primary: #84bf65;
|
||||||
private property <color> secondary: #4caee3;
|
private property <color> secondary: #4caee3;
|
||||||
private property <length> inset: 24px * root.ui-scale;
|
private property <length> inset: 24px * root.ui-scale;
|
||||||
@@ -164,7 +165,7 @@ export component AppWindow inherits Window {
|
|||||||
width: parent.width - 36px * root.ui-scale;
|
width: parent.width - 36px * root.ui-scale;
|
||||||
height: self.preferred-height;
|
height: self.preferred-height;
|
||||||
text: "Senke deine Hand, um einen neuen Countdown zu starten.";
|
text: "Senke deine Hand, um einen neuen Countdown zu starten.";
|
||||||
font-size: 18px * root.ui-scale;
|
font-size: 20px * root.ui-scale;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #20302b;
|
color: #20302b;
|
||||||
horizontal-alignment: center;
|
horizontal-alignment: center;
|
||||||
@@ -176,7 +177,7 @@ export component AppWindow inherits Window {
|
|||||||
width: release-german.width;
|
width: release-german.width;
|
||||||
height: self.preferred-height;
|
height: self.preferred-height;
|
||||||
text: "Lower your hand to start a new countdown.";
|
text: "Lower your hand to start a new countdown.";
|
||||||
font-size: 14px * root.ui-scale;
|
font-size: 15px * root.ui-scale;
|
||||||
color: #52635d;
|
color: #52635d;
|
||||||
horizontal-alignment: center;
|
horizontal-alignment: center;
|
||||||
wrap: word-wrap;
|
wrap: word-wrap;
|
||||||
|
|||||||
Reference in New Issue
Block a user