mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 21:58:12 +00:00
LibGUI: Remove Layout::try_add_spacer()
And fall back to the infallible add_spacer(). Work towards #20557.
This commit is contained in:
parent
8322b31b97
commit
58e482a06d
22 changed files with 28 additions and 35 deletions
|
@ -39,7 +39,7 @@ ErrorOr<void> WizardPage::build(String title, String subtitle)
|
|||
m_subtitle_label = TRY(header_widget->try_add<Label>(move(subtitle)));
|
||||
m_subtitle_label->set_text_alignment(Gfx::TextAlignment::TopLeft);
|
||||
m_subtitle_label->set_fixed_height(m_subtitle_label->font().pixel_size_rounded_up());
|
||||
TRY(header_widget->add_spacer());
|
||||
header_widget->add_spacer();
|
||||
|
||||
auto separator = TRY(try_add<SeparatorWidget>(Gfx::Orientation::Horizontal));
|
||||
separator->set_fixed_height(2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue