Skip to content

Commit

Permalink
feat(ui): Change dialog background color to make buttons more visible (
Browse files Browse the repository at this point in the history
…#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.
  • Loading branch information
philmoz authored and pfeerick committed Dec 23, 2022
1 parent 135c022 commit fa1844e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions radio/src/gui/colorlcd/color_picker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 2 additions & 0 deletions radio/src/gui/colorlcd/confirm_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit fa1844e

Please sign in to comment.