浏览代码

Merge pull request #18645 from AlexHoratio/light_theme_asset_store

LinkButtons are now responsive to engine theme
Max Hilbrunner 7 年之前
父节点
当前提交
baa3933968
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      editor/editor_themes.cpp

+ 4 - 0
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));