Update/deprecate theme item names

Updates theme names to be compatible with Godot 3.5 (no spaces),
consistent with other Godot theme item names (snake_case), and
match the color names listed on the
[ANSI escape code wikipedia page](https://en.wikipedia.org/wiki/ANSI_escape_code#3-bit_and_4-bit).

Deprecates the old names and warns users to change them.
This commit is contained in:
Leroy Hopson 2022-08-23 23:58:24 +12:00
parent aee3efd8de
commit 95b66115c4
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA
15 changed files with 349 additions and 260 deletions

View file

@ -28,24 +28,24 @@ func _ready():
# better to use a dedicated terminal theme, rather than relying on this.
_set_terminal_colors(
{
"Black": "caret_background_color",
"Red": "keyword_color",
"Green": "gdscript/node_path_color",
"Yellow": "string_color",
"Blue": "function_color",
"Magenta": "symbol_color",
"Cyan": "gdscript/function_definition_color",
"Dark Grey": "comment_color",
"Light Grey": "text_color",
"Light Red": "breakpoint_color",
"Light Green": "base_type_color",
"Light Yellow": "search_result_color",
"Light Blue": "member_variable_color",
"Light Magenta": "code_folding_color",
"Light Cyan": "user_type_color",
"White": "text_selected_color",
"Background": "background_color",
"Foreground": "caret_color",
"black": "caret_background_color",
"red": "keyword_color",
"green": "gdscript/node_path_color",
"yellow": "string_color",
"blue": "function_color",
"magenta": "symbol_color",
"cyan": "gdscript/function_definition_color",
"white": "text_color",
"bright_black": "comment_color",
"bright_red": "breakpoint_color",
"bright_green": "base_type_color",
"bright_yellow": "search_result_color",
"bright_blue": "member_variable_color",
"bright_magenta": "code_folding_color",
"bright_cyan": "user_type_color",
"bright_white": "text_selected_color",
"background": "background_color",
"foreground": "caret_color",
}
)
_native_terminal._update_theme()

View file

@ -47,7 +47,7 @@ var _tab_container_min_size
func _ready():
tab_container.add_stylebox_override("panel", get_stylebox("Background", "EditorStyles"))
tab_container.add_stylebox_override("panel", get_stylebox("background", "EditorStyles"))
_update_settings()