revert old color picker, enable animation toolbar
This commit is contained in:
@@ -220,11 +220,11 @@ void App::init_sidebar()
|
||||
if (auto* button = layout[main_id]->find<NodeButtonCustom>("btn-color"))
|
||||
{
|
||||
button->on_click = [this, button](Node*) {
|
||||
// panels->get_child_index(color.get()) == -1 ? panels->add_child(color) : panels->remove_child(color.get());
|
||||
// panels->fix_scroll();
|
||||
// button->set_color(panels->get_child_index(color.get()) == -1 ? color_button_normal : color_button_hlight);
|
||||
auto pick = layout[main_id]->add_child<NodeColorPicker>();
|
||||
pick->m_color_cur->m_color = ui::Canvas::I->m_current_brush.m_tip_color;
|
||||
panels->get_child_index(color.get()) == -1 ? panels->add_child(color) : panels->remove_child(color.get());
|
||||
panels->fix_scroll();
|
||||
button->set_color(panels->get_child_index(color.get()) == -1 ? color_button_normal : color_button_hlight);
|
||||
// auto pick = layout[main_id]->add_child<NodeColorPicker>();
|
||||
// pick->m_color_cur->m_color = ui::Canvas::I->m_current_brush.m_tip_color;
|
||||
};
|
||||
}
|
||||
if (auto* button = layout[main_id]->find<NodeButtonCustom>("btn-layer"))
|
||||
@@ -577,7 +577,7 @@ void App::initLayout()
|
||||
YGNodeStyleSetPosition(n->y_node, YGEdgeLeft, 15);
|
||||
n->SetSize(30, 45);
|
||||
layout[main_id]->add_child(n);
|
||||
/*
|
||||
|
||||
if (auto* slider = layout[main_id]->find<NodeSliderH>("frames-slider"))
|
||||
{
|
||||
slider->on_value_changed = [this](Node*, float value)
|
||||
@@ -601,7 +601,6 @@ void App::initLayout()
|
||||
}
|
||||
};
|
||||
}
|
||||
*/
|
||||
};
|
||||
LOG("initializing layout xml");
|
||||
if (layout.m_loaded)
|
||||
|
||||
Reference in New Issue
Block a user