mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 19:29:16 +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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user