diff options
| author | toger5 | 2017-09-28 23:21:44 +0200 |
|---|---|---|
| committer | toger5 | 2017-09-28 23:21:44 +0200 |
| commit | 541b0d0238c8c8fa52b13a31ce9106285a18a871 (patch) | |
| tree | b71828e0f339bdc851530b0459ab65d8f52bfb93 /editor/editor_themes.cpp | |
| parent | 4f39ce32b9195405f934445b20059e86632b47f9 (diff) | |
| download | godot-541b0d0238c8c8fa52b13a31ce9106285a18a871.tar.gz godot-541b0d0238c8c8fa52b13a31ce9106285a18a871.tar.zst godot-541b0d0238c8c8fa52b13a31ce9106285a18a871.zip | |
fixed help bg
Diffstat (limited to '')
| -rw-r--r-- | editor/editor_themes.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index b33c36867..92fa9f097 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -809,21 +809,11 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) { theme->set_stylebox("grabber_area", "VSlider", make_flat_stylebox(contrast_color_1, default_margin_size / 2, 0, default_margin_size / 2, 0)); //RichTextLabel - Color rtl_combined_bg_color = dark_color_1.linear_interpolate(script_bg_color, script_bg_color.a); - 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_color("default_color", "RichTextLabel", font_color); theme->set_stylebox("focus", "RichTextLabel", make_empty_stylebox()); theme->set_stylebox("normal", "RichTextLabel", style_tree_bg); - Ref<StyleBoxFlat> style_code = style_tree_bg->duplicate(); - style_code->set_bg_color(rtl_combined_bg_color); - theme->set_stylebox("code_normal", "RichTextLabel", style_code); - Ref<StyleBoxFlat> style_code_focus = style_tree_focus->duplicate(); - 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); + theme->set_color("headline_color", "EditorHelp", mono_color); // Panel theme->set_stylebox("panel", "Panel", make_flat_stylebox(dark_color_1, 6, 4, 6, 4)); |
