diff options
author | Gilles Roudière <gilles.roudiere@gmail.com> | 2021-09-02 12:22:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-02 12:22:46 +0200 |
commit | d4a84be4fb91ef425b4ca55f3d24464bbd9906c9 (patch) | |
tree | 1883738c2efa3920211fbd4ebcdcbbbaacfccbfa | |
parent | ebac430445ade41301e65508366217827cfc3574 (diff) | |
parent | 43faebdf4885381ab8cf6e79c1d8a8888963b6d5 (diff) |
Merge pull request #52331 from Geometror/tweak-tooltip-colors
Tweak tooltip style (slightly less dark/unified margins)
-rw-r--r-- | editor/editor_themes.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index 8c348731d6..32ec49e11e 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -1201,11 +1201,11 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) { // TooltipPanel Ref<StyleBoxFlat> style_tooltip = style_popup->duplicate(); style_tooltip->set_shadow_size(0); - style_tooltip->set_default_margin(SIDE_LEFT, default_margin_size * EDSCALE); + style_tooltip->set_default_margin(SIDE_LEFT, default_margin_size * EDSCALE * 0.5); style_tooltip->set_default_margin(SIDE_TOP, default_margin_size * EDSCALE * 0.5); - style_tooltip->set_default_margin(SIDE_RIGHT, default_margin_size * EDSCALE); + style_tooltip->set_default_margin(SIDE_RIGHT, default_margin_size * EDSCALE * 0.5); style_tooltip->set_default_margin(SIDE_BOTTOM, default_margin_size * EDSCALE * 0.5); - style_tooltip->set_bg_color(mono_color.inverted() * Color(1, 1, 1, 0.9)); + style_tooltip->set_bg_color(dark_color_3 * Color(0.8, 0.8, 0.8, 0.9)); style_tooltip->set_border_width_all(0); theme->set_color("font_color", "TooltipLabel", font_hover_color); theme->set_color("font_color_shadow", "TooltipLabel", Color(0, 0, 0, 0)); |