summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnknown <linux.kwongo@gmail.com>2018-05-05 21:19:44 +0100
committerUnknown <linux.kwongo@gmail.com>2018-05-05 21:19:44 +0100
commitc364a1278e1e499f40dccadbd78b76bbe6e44604 (patch)
tree9145189952a1e0faf7325c14a90c8eb09bbc31ed
parent2bf71d0eeadbd2e497b1555bf1f04993f7f3d63a (diff)
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
-rw-r--r--editor/editor_themes.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp
index e93df835e4..bf7236cc2b 100644
--- a/editor/editor_themes.cpp
+++ b/editor/editor_themes.cpp
@@ -912,6 +912,10 @@ Ref<Theme> create_editor_theme(const Ref<Theme> 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<StyleBoxFlat> style_tooltip = style_popup->duplicate();
style_tooltip->set_bg_color(Color(mono_color.r, mono_color.g, mono_color.b, 0.9));