You've already forked godot
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:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user