diff --git a/AGENTS.md b/AGENTS.md index 1f71cd4..59f95d4 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -10,3 +10,4 @@ - 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. - 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. diff --git a/ui/app-window.slint b/ui/app-window.slint index 990b5c7..3ef1cfd 100644 --- a/ui/app-window.slint +++ b/ui/app-window.slint @@ -35,7 +35,7 @@ component Instruction inherits Rectangle { height: self.preferred-height; text: root.german; color: #20302b; - font-size: 18px * root.ui-scale; + font-size: 20px * root.ui-scale; font-weight: 600; wrap: word-wrap; } @@ -46,7 +46,7 @@ component Instruction inherits Rectangle { height: self.preferred-height; text: root.english; color: #52635d; - font-size: 14px * root.ui-scale; + font-size: 15px * root.ui-scale; wrap: word-wrap; } } @@ -60,8 +60,9 @@ export component AppWindow inherits Window { in property countdown: 0; in property flash-opacity: 0; in property awaiting-release: false; - // Scale by the shorter screen edge so 1080p and 4K displays remain readable. - private property ui-scale: clamp(min(root.width / 800px, root.height / 800px), 0.85, 2.5); + // Use width as well as height: a 1280×1024 (5:4) monitor should not + // enlarge the UI just because it is taller than a widescreen display. + private property ui-scale: clamp(min(root.width / 1280px, root.height / 800px), 0.85, 2.5); private property primary: #84bf65; private property secondary: #4caee3; private property inset: 24px * root.ui-scale; @@ -164,7 +165,7 @@ export component AppWindow inherits Window { width: parent.width - 36px * root.ui-scale; height: self.preferred-height; 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; color: #20302b; horizontal-alignment: center; @@ -176,7 +177,7 @@ export component AppWindow inherits Window { width: release-german.width; height: self.preferred-height; text: "Lower your hand to start a new countdown."; - font-size: 14px * root.ui-scale; + font-size: 15px * root.ui-scale; color: #52635d; horizontal-alignment: center; wrap: word-wrap;