diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2022-07-17 22:55:20 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2022-07-17 22:55:20 +0200 |
commit | 976d12c3c1916b5b9a3f1c40f0e3f75bd9bc39e0 (patch) | |
tree | 79e8619966c9cb3477c9bf7fe1a584095005cf87 | |
parent | e3a8ab68ce7497b3752d29965c6a54c50d548144 (diff) |
Add padding for code blocks in the editor help
This improves their appearance, making them look closer to code blocks
in the online manual.
-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; |