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:
philmoz
2022-12-20 08:52:12 +10:00
committed by GitHub
parent 2206506c82
commit 37779a5aaf
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -66,6 +66,8 @@ class ColorEditorPopup : public Dialog
Dialog(parent, std::string(), rect_t{}),
_setValue(std::move(_setValue))
{
lv_obj_set_style_bg_color(content->getLvObj(), makeLvColor(COLOR_THEME_SECONDARY3), 0);
setCloseWhenClickOutside(true);
auto form = &content->form;
@@ -34,6 +34,8 @@ ConfirmDialog::ConfirmDialog(Window* parent, const char* title,
auto msg = new StaticText(form, rect_t{}, message);
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{});
box->setFlexLayout(LV_FLEX_FLOW_ROW);