LibGUI: Use new layout system for basic widgets

This commit is contained in:
FrHun 2022-02-22 20:25:30 +01:00 committed by Sam Atkins
commit 19fac58e49
Notes: sideshowbarker 2024-07-17 11:29:41 +09:00
17 changed files with 85 additions and 18 deletions

View file

@ -30,8 +30,8 @@ CheckBox::CheckBox(String text)
{ CheckBoxPosition::Left, "Left" },
{ CheckBoxPosition::Right, "Right" });
set_min_width(32);
set_fixed_height(22);
set_min_size({ 22, 22 });
set_preferred_size({ SpecialDimension::OpportunisticGrow, 22 });
}
void CheckBox::paint_event(PaintEvent& event)