-
-void Toolbar::on_style_change()
-{
- lbl_title->autosize();
- const GLtk::Geometry &lbl_geom = lbl_title->get_geometry();
- unsigned w = lbl_geom.w+40;
- if(expanded)
- w += content_width+5;
- set_size(w, 40);
-
- lbl_title->set_position(10, (geom.h-lbl_geom.h)/2);
- btn_expand->set_position(lbl_geom.w+15, 10);
- pnl_content->set_position(lbl_geom.w+35, 0);
-}