You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
596 B
Plaintext

osState = {
palette = {
visible = True,
query = "",
focusedIndex = 0,
},
};
init = {};
update = state event \ event
| _ \ state;
view = state viewport \
ui.stack {
children = [
ui.rect { w = viewport.width, h = viewport.height, color = "#012" },
osState.palette.visible
| True \ palette {
state = osState.palette,
search = storeSearch,
onSelect = item \ (debug "selected" item),
viewport = viewport,
}
| False \ text { content = "" }
]
};
os = { init = init, update = update, view = view }