UI module

Button_Variant

enumextensionexperimentalsince 0.31.0Source

Looks of a button.

Example↗
ui := headless();
defer free_ui(*ui);
frame(*ui, *ui, (u: *UI_State) {
    button("Save", .{ variant = .PRIMARY });
    button("Cancel", .{ variant = .SUBTLE });
});

Members

NORMAL
PRIMARY
the accent colour
SUBTLE
no background until hovered

See also