feat(color): Add support for information bubble popups (#3903)

* Add information bubble popup window.

* Use fixed BLACK and WHITE colors.
This commit is contained in:
philmoz
2023-09-21 19:47:46 +10:00
committed by GitHub
parent cd88057d02
commit 22a4e67117
6 changed files with 84 additions and 0 deletions
+7
View File
@@ -43,6 +43,13 @@ void MainWindow::run(bool trash)
auto opaque = Layer::getFirstOpaque();
if (opaque) opaque->checkEvents();
auto copy = children;
for (auto child: copy) {
if (!child->deleted() && child->isBubblePopup()) {
child->checkEvents();
}
}
if (trash) emptyTrash();
auto delta = ticksNow() - start;
@@ -41,6 +41,7 @@ lv_obj_t* etx_modal_content_create(lv_obj_t* parent);
lv_obj_t* etx_modal_title_create(lv_obj_t* parent);
lv_obj_t* etx_bar_create(lv_obj_t* parent);
lv_obj_t* etx_checkbox_create(lv_obj_t* parent);
lv_obj_t* etx_bubble_popup_create(lv_obj_t* parent);
lv_obj_t* input_mix_line_create(lv_obj_t* parent);
lv_obj_t* input_mix_group_create(lv_obj_t* parent);
+2
View File
@@ -204,6 +204,8 @@ class Window
virtual bool isTopBar() { return false; }
virtual bool isWidgetsContainer() { return false; }
virtual bool isBubblePopup() { return false; }
protected:
static std::list<Window*> trash;