Browse Source

Fix theme with custom font.

Daniel J. Ramirez 7 years ago
parent
commit
12251a3a15
2 changed files with 1 additions and 6 deletions
  1. 0 5
      editor/editor_fonts.cpp
  2. 1 1
      editor/editor_themes.cpp

+ 0 - 5
editor/editor_fonts.cpp

@@ -180,9 +180,4 @@ void editor_register_fonts(Ref<Theme> p_theme) {
 	df_output_code->set_font_data(dfmono);
 	MAKE_FALLBACKS(df_output_code);
 	p_theme->set_font("status_source", "EditorFonts", df_output_code);
-
-	//replace default theme
-	Ref<Texture> di;
-	Ref<StyleBox> ds;
-	fill_default_theme(p_theme, df, df_doc, di, ds, EDSCALE);
 }

+ 1 - 1
editor/editor_themes.cpp

@@ -1045,7 +1045,7 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) {
 }
 
 Ref<Theme> create_custom_theme() {
-	Ref<Theme> theme;
+	Ref<Theme> theme = create_editor_theme();
 
 	String custom_theme = EditorSettings::get_singleton()->get("interface/theme/custom_theme");
 	if (custom_theme != "") {