Set backSet background color on pop up dialog windows (#87)

This commit is contained in:
philmoz
2023-03-22 19:43:10 +10:00
committed by GitHub
parent 3e49724e11
commit d56d641fb0
+2
View File
@@ -66,6 +66,8 @@ std::string DialogWindowContent::getName() const
Dialog::Dialog(Window* parent, std::string title, const rect_t& rect) :
ModalWindow(parent), content(new DialogWindowContent(this, rect))
{
lv_obj_set_style_bg_color(content->getLvObj(), makeLvColor(COLOR_THEME_SECONDARY3), 0);
lv_obj_set_style_bg_opa(content->getLvObj(), LV_OPA_100, LV_PART_MAIN);
bringToTop();
if (!title.empty()) content->setTitle(std::move(title));
}