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:
Linus Groh 2020-12-12 18:12:17 +00:00 committed by Andreas Kling
parent dd198e1a29
commit af80d71abc
Notes: sideshowbarker 2024-07-19 00:54:49 +09:00

View file

@ -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);