You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
Add padding for code blocks in the editor help
This improves their appearance, making them look closer to code blocks in the online manual.
This commit is contained in:
@@ -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_table(1);
|
||||||
p_rt->push_cell();
|
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_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);
|
p_rt->push_color(code_color);
|
||||||
codeblock_tag = true;
|
codeblock_tag = true;
|
||||||
pos = brk_end + 1;
|
pos = brk_end + 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user