mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-12-01 16:56:34 +01:00
13 lines
383 B
C
13 lines
383 B
C
#include <LCUI.h>
|
|
|
|
void select_basic_init(ui_widget_t *parent)
|
|
{
|
|
ui_widget_t *select = ui_create_select();
|
|
|
|
ui_select_set_placeholder(select, "Choose a theme");
|
|
ui_select_add_item(select, "Light", "light");
|
|
ui_select_add_item(select, "Dark", "dark");
|
|
ui_select_add_item(select, "System", "system");
|
|
ui_widget_append(parent, select);
|
|
}
|