mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 11:37:16 +02:00
Userland: Use Widget::add_spacer() everywhere
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 18:38:54 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/9561ec15f4 Pull-request: https://github.com/SerenityOS/serenity/pull/17495 Reviewed-by: https://github.com/awesomekling ✅
@@ -34,7 +34,7 @@ WizardPage::WizardPage(DeprecatedString const& title_text, DeprecatedString cons
|
||||
m_subtitle_label = header_widget.add<Label>(subtitle_text);
|
||||
m_subtitle_label->set_text_alignment(Gfx::TextAlignment::TopLeft);
|
||||
m_subtitle_label->set_fixed_height(m_subtitle_label->font().glyph_height());
|
||||
header_widget.layout()->add_spacer();
|
||||
header_widget.add_spacer().release_value_but_fixme_should_propagate_errors();
|
||||
|
||||
auto& separator = add<SeparatorWidget>(Gfx::Orientation::Horizontal);
|
||||
separator.set_fixed_height(2);
|
||||
|
||||
Reference in New Issue
Block a user