Spreadsheet: Reduce top bar default height
50px is a bit extreme, it's down to 26px high now. Still a bit larger than a regular GUI::TextBox but enough to look decent, even with the help button in there. Closes #3905.
This commit is contained in:
parent
dd198e1a29
commit
af80d71abc
Notes:
sideshowbarker
2024-07-19 00:54:49 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/af80d71abcd Pull-request: https://github.com/SerenityOS/serenity/pull/4391 Issue: https://github.com/SerenityOS/serenity/issues/3905
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ SpreadsheetWidget::SpreadsheetWidget(NonnullRefPtrVector<Sheet>&& sheets, bool s
|
|||
|
||||
auto& top_bar = container.add<GUI::Frame>();
|
||||
top_bar.set_layout<GUI::HorizontalBoxLayout>().set_spacing(1);
|
||||
top_bar.set_preferred_size(0, 50);
|
||||
top_bar.set_preferred_size(0, 26);
|
||||
top_bar.set_size_policy(GUI::SizePolicy::Fill, GUI::SizePolicy::Fixed);
|
||||
auto& current_cell_label = top_bar.add<GUI::Label>("");
|
||||
current_cell_label.set_preferred_size(50, 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue