screen setup: bigger centered "remove screen" button
This commit is contained in:
committed by
Raphael Coeffic
parent
27de2e2449
commit
2ff3ffbc04
@@ -296,7 +296,16 @@ void ScreenSetupPage::build(FormWindow * form)
|
||||
|
||||
// Prevent removing the last page
|
||||
if (customScreens[1] != nullptr) {
|
||||
new TextButton(form, rect_t{}, STR_REMOVE_SCREEN, removeScreen(menu, idx));
|
||||
line = form->newLine();
|
||||
btn = new TextButton(line, rect_t{}, STR_REMOVE_SCREEN, removeScreen(menu, idx));
|
||||
obj = btn->getLvObj();
|
||||
lv_obj_set_style_min_width(obj, LV_DPI_DEF / 2, LV_PART_MAIN);
|
||||
lv_obj_set_style_min_height(obj, LV_DPI_DEF / 3, LV_PART_MAIN);
|
||||
lv_obj_set_style_pad_all(obj, 8, LV_PART_MAIN);
|
||||
lv_obj_set_style_radius(obj, 8, LV_PART_MAIN);
|
||||
|
||||
lv_obj_set_width(obj, lv_pct(50));
|
||||
lv_obj_center(obj);
|
||||
}
|
||||
|
||||
form->updateSize();
|
||||
|
||||
Reference in New Issue
Block a user