void List::on_style_change()
{
- items_part = (style ? style->get_part("items") : nullptr);
+ items_part = (style ? style->find_part("items") : nullptr);
}
void List::move_focus(Navigation nav, bool select)
Widget *child = children.front()->widget;
child->autosize();
- if(const Part *part = style->get_part("children"))
+ if(const Part *part = style->find_part("children"))
{
const Sides &margin = part->get_margin();
child->set_position(margin.left, margin.bottom);
if(!style)
return;
- const Part *part = style->get_part("children");
+ const Part *part = style->find_part("children");
if(!part)
return;