Merge pull request #11253 from djrm/pr_better_docs
Improved editor docs
This commit is contained in:
commit
8c08f2380d
12 changed files with 239 additions and 166 deletions
|
|
@ -706,7 +706,8 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) {
|
|||
|
||||
//RichTextLabel
|
||||
Color rtl_combined_bg_color = dark_color_1.linear_interpolate(script_bg_color, script_bg_color.a);
|
||||
Color rtl_font_color = (rtl_combined_bg_color.r + rtl_combined_bg_color.g + rtl_combined_bg_color.b > 0.5 * 3) ? Color(0, 0, 0) : Color(1, 1, 1);
|
||||
Color rtl_mono_color = (rtl_combined_bg_color.r + rtl_combined_bg_color.g + rtl_combined_bg_color.b > 1.5) ? Color(0, 0, 0) : Color(1, 1, 1);
|
||||
Color rtl_font_color = rtl_mono_color.linear_interpolate(rtl_combined_bg_color, 0.25);
|
||||
theme->set_color("default_color", "RichTextLabel", rtl_font_color);
|
||||
theme->set_stylebox("focus", "RichTextLabel", make_empty_stylebox());
|
||||
theme->set_stylebox("normal", "RichTextLabel", style_tree_bg);
|
||||
|
|
@ -717,6 +718,9 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) {
|
|||
style_code_focus->set_bg_color(rtl_combined_bg_color);
|
||||
theme->set_stylebox("code_focus", "RichTextLabel", style_code_focus);
|
||||
|
||||
theme->set_color("font_color", "RichTextLabel", rtl_font_color);
|
||||
theme->set_color("highlight_color", "RichTextLabel", rtl_mono_color);
|
||||
|
||||
// Panel
|
||||
theme->set_stylebox("panel", "Panel", make_flat_stylebox(dark_color_1, 6, 4, 6, 4));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue