mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Added correct initialization for script editor theme.
Some style fixes for VS interface.
This commit is contained in:
parent
6dc1025e63
commit
6d874ea685
4 changed files with 48 additions and 23 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue