1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Added correct initialization for script editor theme.

Some style fixes for VS interface.
This commit is contained in:
Daniel J. Ramirez
2017-10-02 18:33:42 -05:00
parent 6dc1025e63
commit 6d874ea685
4 changed files with 48 additions and 23 deletions

View File

@@ -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();