fix color picker, add project delete button with message box
This commit is contained in:
@@ -66,10 +66,14 @@ void NodeButton::parse_attributes(kAttribute ka, const tinyxml2::XMLAttribute* a
|
||||
{
|
||||
switch (ka)
|
||||
{
|
||||
case kAttribute::Color:
|
||||
m_border->parse_attributes(ka, attr);
|
||||
color_normal = m_border->m_color;
|
||||
color_hover = glm::clamp(m_border->m_color + glm::vec4(.1, .1, .1, 0), {0,0,0,0}, {1,1,1,1});
|
||||
color_down = glm::clamp(m_border->m_color + glm::vec4(.2, .2, .2, 0), {0,0,0,0}, {1,1,1,1});
|
||||
case kAttribute::Padding:
|
||||
case kAttribute::Width:
|
||||
case kAttribute::Height:
|
||||
case kAttribute::Color:
|
||||
case kAttribute::Thickness:
|
||||
case kAttribute::BorderColor:
|
||||
m_border->parse_attributes(ka, attr);
|
||||
|
||||
Reference in New Issue
Block a user