presets options when empty
This commit is contained in:
@@ -804,8 +804,8 @@ void App::init_menu_tools()
|
||||
{
|
||||
fpanel->m_container->add_child(floating_presets);
|
||||
}
|
||||
popup_time->destroy();
|
||||
popup_exp->destroy();
|
||||
popup_time->destroy();
|
||||
};
|
||||
|
||||
popup_time->find<NodeButtonCustom>("panel-color")->on_click = [this, popup_time, popup_exp, visible](Node*) {
|
||||
@@ -830,8 +830,8 @@ void App::init_menu_tools()
|
||||
{
|
||||
fpanel->m_container->add_child(floating_color);
|
||||
}
|
||||
popup_time->destroy();
|
||||
popup_exp->destroy();
|
||||
popup_time->destroy();
|
||||
};
|
||||
popup_time->find<NodeButtonCustom>("panel-color-adv")->on_click = [this, popup_time, popup_exp, visible](Node*) {
|
||||
if (visible(floating_picker.get()))
|
||||
@@ -855,8 +855,8 @@ void App::init_menu_tools()
|
||||
{
|
||||
fpanel->m_container->add_child(floating_picker);
|
||||
}
|
||||
popup_time->destroy();
|
||||
popup_exp->destroy();
|
||||
popup_time->destroy();
|
||||
};
|
||||
popup_time->find<NodeButtonCustom>("panel-layers")->on_click = [this, popup_time, popup_exp, visible](Node*) {
|
||||
if (visible(layers.get()))
|
||||
@@ -872,8 +872,8 @@ void App::init_menu_tools()
|
||||
layers->SetHeightP(100);
|
||||
layers->SetFlexShrink(0);
|
||||
|
||||
popup_time->destroy();
|
||||
popup_exp->destroy();
|
||||
popup_time->destroy();
|
||||
};
|
||||
popup_time->find<NodeButtonCustom>("panel-brush")->on_click = [this, popup_time, popup_exp, visible](Node*) {
|
||||
if (visible(stroke.get()))
|
||||
@@ -887,8 +887,8 @@ void App::init_menu_tools()
|
||||
stroke->SetWidthP(100);
|
||||
stroke->SetHeightP(100);
|
||||
|
||||
popup_time->destroy();
|
||||
popup_exp->destroy();
|
||||
popup_time->destroy();
|
||||
};
|
||||
popup_time->find<NodeButtonCustom>("panel-grids")->on_click = [this, popup_time, popup_exp, visible](Node*) {
|
||||
if (visible(grid.get()))
|
||||
@@ -902,8 +902,8 @@ void App::init_menu_tools()
|
||||
grid->SetWidthP(100);
|
||||
grid->SetHeightP(100);
|
||||
|
||||
popup_time->destroy();
|
||||
popup_exp->destroy();
|
||||
popup_time->destroy();
|
||||
};
|
||||
}
|
||||
};
|
||||
@@ -1499,7 +1499,7 @@ void App::ui_restore()
|
||||
{
|
||||
floating_presets = f->m_container->add_child_ref<NodePanelBrushPreset>();
|
||||
floating_presets->SetHeightP(100);
|
||||
floating_presets->find("toolbar")->destroy();
|
||||
//floating_presets->find("toolbar")->destroy();
|
||||
floating_presets->on_brush_changed = [this](Node* target, std::shared_ptr<Brush>& b) {
|
||||
auto c = Canvas::I->m_current_brush->m_tip_color;
|
||||
*Canvas::I->m_current_brush = *b;
|
||||
|
||||
Reference in New Issue
Block a user