-Added VeryLowDPI and MidDPI modes to Godot editor.
-Improved HiDPI detection (requires resolution of > 2000 in X axis)
This commit is contained in:
parent
08b096ccc2
commit
8bcb6a290c
10 changed files with 61 additions and 41 deletions
|
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue