From c364a1278e1e499f40dccadbd78b76bbe6e44604 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 --- editor/editor_themes.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index e93df835e44..bf7236cc2b0 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -912,6 +912,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));