mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 09:39:39 +00:00
LibGUI: Use new layout system for basic widgets
This commit is contained in:
parent
bfbaad9f41
commit
19fac58e49
Notes:
sideshowbarker
2024-07-17 11:29:41 +09:00
Author: https://github.com/frhun
Commit: 19fac58e49
Pull-request: https://github.com/SerenityOS/serenity/pull/14261
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/MacDue
Reviewed-by: https://github.com/mjz19910
17 changed files with 85 additions and 18 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue