-Added a ColorFrame control, kind of like Texture but for color.

-Added dropping nodes to text editor for them to become a path
-Fixed issues with font not properly being set in code editor
This commit is contained in:
Juan Linietsky 2016-09-11 11:28:01 -03:00
parent 1bf684cea2
commit 95eb7466df
10 changed files with 220 additions and 4 deletions

View file

@ -1128,8 +1128,10 @@ void CodeTextEditor::_update_font() {
font_overridden = true;
}
}
if(!font_overridden)
if(!font_overridden) {
text_editor->add_font_override("font",get_font("source","EditorFonts"));
}
}
void CodeTextEditor::_on_settings_change() {
@ -1168,7 +1170,7 @@ void CodeTextEditor::_notification(int p_what) {
_load_theme_settings();
emit_signal("load_theme_settings");
}
if (p_what==NOTIFICATION_ENTER_TREE) {
if (p_what==NOTIFICATION_THEME_CHANGED) {
_update_font();
}
}