diff options
author | Daniel J. Ramirez <djrmuv@gmail.com> | 2017-10-02 18:33:42 -0500 |
---|---|---|
committer | Daniel J. Ramirez <djrmuv@gmail.com> | 2017-10-02 18:33:42 -0500 |
commit | 6d874ea685bb57e1c78b7c67f0af7feafc1b55d5 (patch) | |
tree | 1c3dcd88f11f753a0e844c78c1804a75320e4b87 /editor/plugins/script_text_editor.h | |
parent | 6dc1025e6313d711939269e1578fff5ffc0cd30a (diff) |
Added correct initialization for script editor theme.
Some style fixes for VS interface.
Diffstat (limited to 'editor/plugins/script_text_editor.h')
-rw-r--r-- | editor/plugins/script_text_editor.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/editor/plugins/script_text_editor.h b/editor/plugins/script_text_editor.h index f8b7470ec8..83f3ea57c0 100644 --- a/editor/plugins/script_text_editor.h +++ b/editor/plugins/script_text_editor.h @@ -57,6 +57,17 @@ class ScriptTextEditor : public ScriptEditorBase { int color_line; String color_args; + struct ColorsCache { + Color symbol_color; + Color keyword_color; + Color basetype_color; + Color type_color; + Color comment_color; + Color string_color; + } colors_cache; + + bool theme_loaded; + enum { EDIT_UNDO, EDIT_REDO, @@ -101,6 +112,7 @@ protected: void _validate_script(); void _code_complete_script(const String &p_code, List<String> *r_options, bool &r_force); void _load_theme_settings(); + void _set_theme_for_script(); void _notification(int p_what); static void _bind_methods(); |