summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-09-25 09:47:20 +0200
committerGitHub <noreply@github.com>2017-09-25 09:47:20 +0200
commitaf053ecf4de0b281a51a3b82a17df5ea581b793c (patch)
treedd2a833c16e0388587c7805b6e6078e01a8b04ff
parent14b4ad931f54c73aff9021a1314943278295e602 (diff)
parentee9f8ec1d6aa64897b0b9350b5fe68098a35c6c9 (diff)
Merge pull request #11570 from djrm/pr_fix_tooltip
Fixed tooltip font color
-rw-r--r--editor/editor_themes.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp
index 51fdef37cf..ca337551eb 100644
--- a/editor/editor_themes.cpp
+++ b/editor/editor_themes.cpp
@@ -802,7 +802,8 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) {
style_tooltip->set_bg_color(Color(mono_color.r, mono_color.g, mono_color.b, 0.9));
style_tooltip->set_border_width_all(border_width);
style_tooltip->set_border_color_all(mono_color);
- theme->set_color("font_color", "TooltipPanel", font_color);
+ theme->set_color("font_color", "TooltipLabel", font_color.inverted());
+ theme->set_color("font_color_shadow", "TooltipLabel", mono_color.inverted() * Color(1, 1, 1, 0.1));
theme->set_stylebox("panel", "TooltipPanel", style_tooltip);
// PopupPanel