aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnknown2018-05-05 21:19:44 +0100
committerHein-Pieter van Braam2018-05-13 22:34:10 +0200
commit09277c8fd8889b5e7ab3d20d1c0ae7457816ffd1 (patch)
tree0dbd866e4d00113f084a4fe5567d395fdca77412
parentfaceb5b75d512376afd27efbfcf4066a9fdf2952 (diff)
downloadgodot-09277c8fd8889b5e7ab3d20d1c0ae7457816ffd1.tar.gz
godot-09277c8fd8889b5e7ab3d20d1c0ae7457816ffd1.tar.zst
godot-09277c8fd8889b5e7ab3d20d1c0ae7457816ffd1.zip
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)
-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 3582379e3..90e623f85 100644
--- a/editor/editor_themes.cpp
+++ b/editor/editor_themes.cpp
@@ -908,6 +908,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));