1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

-Added VeryLowDPI and MidDPI modes to Godot editor.

-Improved HiDPI detection (requires resolution of > 2000 in X axis)
This commit is contained in:
Juan Linietsky
2016-09-13 11:05:47 -03:00
parent 08b096ccc2
commit 8bcb6a290c
10 changed files with 61 additions and 41 deletions

View File

@@ -158,17 +158,10 @@ void editor_register_fonts(Ref<Theme> p_theme) {
p_theme->set_font("doc_source","EditorFonts",df_doc_code);
if (editor_is_hidpi()) {
//replace default theme
Ref<Texture> di;
Ref<StyleBox> ds;
fill_default_theme(p_theme,df,df_doc,di,ds,true);
//replace default theme
Ref<Texture> di;
Ref<StyleBox> ds;
fill_default_theme(p_theme,df,df_doc,di,ds,EDSCALE);
} else {
Ref<Texture> di;
Ref<StyleBox> ds;
fill_default_theme(p_theme,df,df_doc,di,ds,false);
}
}