From 09277c8fd8889b5e7ab3d20d1c0ae7457816ffd1 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sat, 5 May 2018 21:19:44 +0100 Subject: [PATCH] LinkButtons are now responsive to engine theme Fixes #18636, so now LinkButtons (like those in the asset store) will change font colour to remain visible in any engine theme, just like Labels etc (cherry picked from commit c364a1278e1e499f40dccadbd78b76bbe6e44604) --- editor/editor_themes.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index 3582379e349..90e623f8556 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -908,6 +908,10 @@ Ref create_editor_theme(const Ref p_theme) { theme->set_constant("shadow_as_outline", "Label", 0 * EDSCALE); theme->set_constant("line_spacing", "Label", 3 * EDSCALE); + // LinkButton + theme->set_stylebox("focus", "LinkButton", style_empty); + theme->set_color("font_color", "LinkButton", font_color); + // TooltipPanel Ref style_tooltip = style_popup->duplicate(); style_tooltip->set_bg_color(Color(mono_color.r, mono_color.g, mono_color.b, 0.9));