Files
kryon/examples/18_accessibility.kry
T
2026-08-09 19:52:01 -03:00

25 lines
573 B
Plaintext

#import "kryon.h"
app "Kryon Accessibility" {
size 800 600
fps 60
font examples
theme THEME_SKY light
}
state {
enabled: int = 1
}
screen AccessibilityExample(viewport: Rectangle) {
Background(GetThemeBackground())
Text("Accessibility overlay", 40, 40, UI_TEXT_24, GetThemeText())
Checkbox(1801,40,90,"Show focus/debug overlay",&enabled)
if GenericButton(101, 40, 140, 200, 40, "Focusable Button", UI_BUTTON_STYLE_PRIMARY, 0, NULL) {
enabled = !enabled
}
if enabled {
Focus((Rectangle){36,136,208,48})
}
}