feat(ui): Change dialog background color to make buttons more visible (#2903)
* Change background colour of the ConfirmDialog box to make the buttons more visible. * Change background colour of the ColorEditorPopup box to make the buttons more visible.
This commit is contained in:
@@ -66,6 +66,8 @@ class ColorEditorPopup : public Dialog
|
|||||||
Dialog(parent, std::string(), rect_t{}),
|
Dialog(parent, std::string(), rect_t{}),
|
||||||
_setValue(std::move(_setValue))
|
_setValue(std::move(_setValue))
|
||||||
{
|
{
|
||||||
|
lv_obj_set_style_bg_color(content->getLvObj(), makeLvColor(COLOR_THEME_SECONDARY3), 0);
|
||||||
|
|
||||||
setCloseWhenClickOutside(true);
|
setCloseWhenClickOutside(true);
|
||||||
auto form = &content->form;
|
auto form = &content->form;
|
||||||
|
|
||||||
|
|||||||
@@ -34,6 +34,8 @@ ConfirmDialog::ConfirmDialog(Window* parent, const char* title,
|
|||||||
auto msg = new StaticText(form, rect_t{}, message);
|
auto msg = new StaticText(form, rect_t{}, message);
|
||||||
msg->padAll(lv_dpx(16));
|
msg->padAll(lv_dpx(16));
|
||||||
|
|
||||||
|
lv_obj_set_style_bg_color(content->getLvObj(), makeLvColor(COLOR_THEME_SECONDARY3), 0);
|
||||||
|
|
||||||
auto box = new FormGroup(form, rect_t{});
|
auto box = new FormGroup(form, rect_t{});
|
||||||
box->setFlexLayout(LV_FLEX_FLOW_ROW);
|
box->setFlexLayout(LV_FLEX_FLOW_ROW);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user