diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-16 23:16:37 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-16 23:16:37 +0100 |
commit | ec8bffb06d9d4e7609f6aa0969e77f16731d7ea5 (patch) | |
tree | aaf4b87882d43534c691bb56187a10e9125fe683 /LibGUI/GTextEditor.h | |
parent | 78039ef057b3251b5db9052483a277c0cf6e535a (diff) | |
download | serenity-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.h | 3 |
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; }; |