mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-10-19 03:52:05 +00:00
feat(ui-lvgl): settings kit, choice picker, reorganised Settings
group() / settingRow / listRow / actionRow / choiceRow / groupNote: one card per section, hairlines between rows, hints that wrap. Dropdowns replaced by a centred picker list. Settings regrouped (Device, Connections, Map & data, System); Display & power split into Display, Power and Time on L2 only (the shared schema is unchanged), Keyboard and About get their own pages. Radio and Repeater share one LoRa parameter block. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -407,15 +407,12 @@ void UITask::pinRowRefresh() {
|
||||
static void onAccent(lv_event_t* e) { s_ui->setAccent((int)(uintptr_t)lv_event_get_user_data(e)); }
|
||||
|
||||
// A row of colour swatches; the current one ringed.
|
||||
void UITask::accentRow(lv_obj_t* body) {
|
||||
lv_obj_t* card = lv_obj_create(body);
|
||||
styleSurface(card, theme::SURFACE);
|
||||
lv_obj_remove_flag(card, LV_OBJ_FLAG_SCROLLABLE);
|
||||
lv_obj_set_size(card, LV_PCT(100), LV_SIZE_CONTENT);
|
||||
lv_obj_set_style_radius(card, theme::RADIUS, 0);
|
||||
lv_obj_set_style_pad_all(card, theme::PAD, 0);
|
||||
lv_obj_set_style_pad_row(card, 8, 0);
|
||||
void UITask::accentRow(lv_obj_t* body) { // a row of a group: the label over the swatches
|
||||
lv_obj_t* card = groupLine(body, false);
|
||||
lv_obj_set_flex_flow(card, LV_FLEX_FLOW_COLUMN);
|
||||
lv_obj_set_flex_align(card, LV_FLEX_ALIGN_START, LV_FLEX_ALIGN_START, LV_FLEX_ALIGN_START);
|
||||
lv_obj_set_style_pad_row(card, 8, 0);
|
||||
lv_obj_set_style_pad_bottom(card, 10, 0);
|
||||
label(card, "Accent colour", THEME_FONT_BODY, theme::TEXT);
|
||||
lv_obj_t* row = lv_obj_create(card);
|
||||
lv_obj_remove_style_all(row);
|
||||
|
||||
Reference in New Issue
Block a user