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:
@@ -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
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user