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 c364a1278e
)
This commit is contained in:
parent
faceb5b75d
commit
09277c8fd8
|
@ -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("shadow_as_outline", "Label", 0 * EDSCALE);
|
||||||
theme->set_constant("line_spacing", "Label", 3 * 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
|
// TooltipPanel
|
||||||
Ref<StyleBoxFlat> style_tooltip = style_popup->duplicate();
|
Ref<StyleBoxFlat> style_tooltip = style_popup->duplicate();
|
||||||
style_tooltip->set_bg_color(Color(mono_color.r, mono_color.g, mono_color.b, 0.9));
|
style_tooltip->set_bg_color(Color(mono_color.r, mono_color.g, mono_color.b, 0.9));
|
||||||
|
|
Loading…
Reference in New Issue