1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:38:12 +00:00

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

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