diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-07-17 23:28:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-17 23:28:59 +0200 |
commit | ecc86afc00c6ace07bfc05ea6ebe8a971d40934b (patch) | |
tree | 9c7878036fb3435cec7f0d11893e980dae70876d | |
parent | d94253271011e9fa4f74fdbd02991732c0d8f8e6 (diff) | |
parent | 976d12c3c1916b5b9a3f1c40f0e3f75bd9bc39e0 (diff) |
Merge pull request #63124 from Calinou/editor-help-codeblock-add-padding
-rw-r--r-- | editor/editor_help.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp index 086a3ad028..68141dd4a3 100644 --- a/editor/editor_help.cpp +++ b/editor/editor_help.cpp @@ -1844,6 +1844,7 @@ static void _add_text_to_rt(const String &p_bbcode, RichTextLabel *p_rt) { p_rt->push_table(1); p_rt->push_cell(); p_rt->set_cell_row_background_color(Color(0.5, 0.5, 0.5, 0.15), Color(0.5, 0.5, 0.5, 0.15)); + p_rt->set_cell_padding(Rect2(10 * EDSCALE, 10 * EDSCALE, 10 * EDSCALE, 10 * EDSCALE)); p_rt->push_color(code_color); codeblock_tag = true; pos = brk_end + 1; |