Files
kryon/examples/20_inbe_language.kry
T
waozi daa855fd0f dropdown: measured native shape — rounded fill+border r3, diamond indicator
Pixel-measured from the reference frame: the dropdown box is radius-3
rounded on ALL corners (fill and border), width stored unscaled (391
phys), and the indicator is a diamond of converging pixel pairs
(measured at x404-409/y317-322), not a 'v' glyph. Text offset
bracketed; 0 optimal.

Native gate: structural 241 -> 229 of 307200 (0.07%), aa-only ~3970
within tolerance. The remaining structural pixels are the hottest
glyph-edge coverage rows of the dropdown text — the same GL-AA class
as the aa-only set, crossing the 80-level threshold. Geometry is
exact end to end. Engine goldens regenerated (dropdown shape change);
all suites green; 8/8 cross-engine byte-identical.
2026-08-17 07:53:22 -03:00

30 lines
998 B
Plaintext

#import "kryon.h"
# Inner Breeze language screen — values traced from the native app
# (INBE_TEXT_TRACE, UI scale 1.125): title "Choose Language" fs24 at
# phys (159,32); label "Language" fs16 at (45,273); dropdown; "Next"
# fs12 at (230,377). Authored in logical units (phys/1.125).
state {
language_index: int = 0
}
app "Inner Breeze — Language" {
size 480 640
fps 60
frame main
}
frame main {
BeginDrawing()
ClearBackground(GetThemeBackground())
BeginUIFrame(GetScreenWidth(), GetScreenHeight(), GetUIScale())
Background(GetThemeBackground())
Text("Choose Language", ScaleUIPx(141), ScaleUIPx(28), UI_TEXT_24, GetThemeText())
Text("Language", ScaleUIPx(40), ScaleUIPx(243), UI_TEXT_16, GetThemeText())
Dropdown(260, ScaleUIPx(39), ScaleUIPx(266), 391, ScaleUIPx(41), "English;Portugues;Espanol;Deutsch;Francais", &language_index)
Text("Next", ScaleUIPx(204), ScaleUIPx(335), UI_TEXT_12, GetThemeText())
EndUIFocus()
EndDrawing()
}