center floppy icons

This commit is contained in:
Brad Grantham 2016-12-06 00:16:43 -08:00
parent 9db796961f
commit f7b76a8631

View File

@ -1449,7 +1449,7 @@ struct floppy_icon : public widget
switched = new switcher({disk_out, disk_in, disk_in_active}); switched = new switcher({disk_out, disk_in, disk_in_active});
switched->which = inserted_ ? 1 : 0; switched->which = inserted_ ? 1 : 0;
widget *label = new text_widget(to_string(number_ + 1)); widget *label = new text_widget(to_string(number_ + 1));
labeled = new widgetbox(widgetbox::HORIZONTAL, {new centering(label), new centering((widget*)switched)}); labeled = new widgetbox(widgetbox::HORIZONTAL, {new centering(label), new centering((widget*)switched), new centering(new text_widget(" "))});
} }
virtual tuple<float, float> get_min_dimensions() const virtual tuple<float, float> get_min_dimensions() const
{ {