add iOS and macOS icons

This commit is contained in:
2019-09-23 18:06:20 +02:00
parent 3f28fd9229
commit cfdf428a9b
26 changed files with 173 additions and 38 deletions

View File

@@ -19,7 +19,10 @@ void NodeMessageBox::init()
m_title = m_template->find<NodeText>("title");
m_message = m_template->find<NodeText>("message");
btn_ok = m_template->find<NodeButton>("btn-ok");
btn_ok->on_click = [&](Node*) { destroy(); };
btn_ok->on_click = [&](Node*) {
if (on_submit)
on_submit(this);
};
btn_cancel = m_template->find<NodeButton>("btn-cancel");
on_submit = btn_cancel->on_click = [&](Node*) { destroy(); };
m_capture_children = false; // don't capture children events on mouse_capture