summaryrefslogtreecommitdiff
path: root/LibGUI/GTextEditor.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-16 23:16:37 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-03-16 23:16:37 +0100
commitec8bffb06d9d4e7609f6aa0969e77f16731d7ea5 (patch)
treeaaf4b87882d43534c691bb56187a10e9125fe683 /LibGUI/GTextEditor.h
parent78039ef057b3251b5db9052483a277c0cf6e535a (diff)
downloadserenity-ec8bffb06d9d4e7609f6aa0969e77f16731d7ea5.zip
LibGUI: Let GTextEditor deal with its horizontal padding internally.
I originally wanted to have the padding concept in GScrollableWidget but it's really finicky with the ruler and everything.
Diffstat (limited to 'LibGUI/GTextEditor.h')
-rw-r--r--LibGUI/GTextEditor.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/LibGUI/GTextEditor.h b/LibGUI/GTextEditor.h
index 9259737c9a..b4eb35b5d3 100644
--- a/LibGUI/GTextEditor.h
+++ b/LibGUI/GTextEditor.h
@@ -157,7 +157,8 @@ private:
bool m_cursor_state { true };
bool m_in_drag_select { false };
bool m_ruler_visible { true };
- int m_line_spacing { 2 };
+ int m_line_spacing { 4 };
int m_soft_tab_width { 4 };
+ int m_horizontal_content_padding { 2 };
GTextRange m_selection;
};