mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 17:35:08 +00:00
LibGUI: Disable whitespace visualization in single-line text editors
You can enable it manually if you really want it, of course. :^)
This commit is contained in:
parent
aa70d8c217
commit
dec3998b3c
1 changed files with 2 additions and 0 deletions
|
@ -57,6 +57,8 @@ TextEditor::TextEditor(Type type)
|
|||
set_background_role(ColorRole::Base);
|
||||
set_foreground_role(ColorRole::BaseText);
|
||||
set_document(TextDocument::create());
|
||||
if (is_single_line())
|
||||
set_visualize_trailing_whitespace(false);
|
||||
set_scrollbars_enabled(is_multi_line());
|
||||
if (is_multi_line())
|
||||
set_font(Gfx::Font::default_fixed_width_font());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue