Fix theme with custom font.

This commit is contained in:
Daniel J. Ramirez 2017-11-09 20:45:18 -06:00
parent 01512efbe6
commit 12251a3a15
2 changed files with 1 additions and 6 deletions

View file

@ -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);
}

View file

@ -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 != "") {