Spreadsheet: Use a fixed-width font in the cell editor

This commit is contained in:
Andreas Kling 2020-08-26 16:57:54 +02:00
parent c5278dac99
commit d125c624c6
Notes: sideshowbarker 2024-07-19 03:07:30 +09:00

View file

@ -69,6 +69,7 @@ SpreadsheetWidget::SpreadsheetWidget(NonnullRefPtrVector<Sheet>&& sheets, bool s
};
auto& cell_value_editor = top_bar.add<GUI::TextEditor>(GUI::TextEditor::Type::SingleLine);
cell_value_editor.set_font(Gfx::Font::default_fixed_width_font());
cell_value_editor.set_scrollbars_enabled(false);
cell_value_editor.set_syntax_highlighter(make<CellSyntaxHighlighter>());