Deprecate TextEdit background_color
This commit is contained in:
@ -1388,7 +1388,6 @@ void VisualShaderGraphPlugin::add_node(VisualShader::Type p_type, int p_id, bool
|
||||
node->add_child(expression_box);
|
||||
register_expression_edit(p_id, expression_box);
|
||||
|
||||
Color background_color = EDITOR_GET("text_editor/theme/highlighting/background_color");
|
||||
Color text_color = EDITOR_GET("text_editor/theme/highlighting/text_color");
|
||||
Color keyword_color = EDITOR_GET("text_editor/theme/highlighting/keyword_color");
|
||||
Color control_flow_keyword_color = EDITOR_GET("text_editor/theme/highlighting/control_flow_keyword_color");
|
||||
@ -1399,7 +1398,6 @@ void VisualShaderGraphPlugin::add_node(VisualShader::Type p_type, int p_id, bool
|
||||
Color members_color = EDITOR_GET("text_editor/theme/highlighting/member_variable_color");
|
||||
|
||||
expression_box->set_syntax_highlighter(expression_syntax_highlighter);
|
||||
expression_box->add_theme_color_override("background_color", background_color);
|
||||
|
||||
for (const String &E : editor->keyword_list) {
|
||||
if (ShaderLanguage::is_control_flow_keyword(E)) {
|
||||
@ -5294,7 +5292,6 @@ void VisualShaderEditor::_notification(int p_what) {
|
||||
shader_preview_button->set_button_icon(Control::get_editor_theme_icon(SNAME("SubViewport")));
|
||||
|
||||
{
|
||||
Color background_color = EDITOR_GET("text_editor/theme/highlighting/background_color");
|
||||
Color text_color = EDITOR_GET("text_editor/theme/highlighting/text_color");
|
||||
Color keyword_color = EDITOR_GET("text_editor/theme/highlighting/keyword_color");
|
||||
Color control_flow_keyword_color = EDITOR_GET("text_editor/theme/highlighting/control_flow_keyword_color");
|
||||
@ -5305,7 +5302,6 @@ void VisualShaderEditor::_notification(int p_what) {
|
||||
Color members_color = EDITOR_GET("text_editor/theme/highlighting/member_variable_color");
|
||||
Color error_color = get_theme_color(SNAME("error_color"), EditorStringName(Editor));
|
||||
|
||||
preview_text->add_theme_color_override("background_color", background_color);
|
||||
varying_error_label->add_theme_color_override(SceneStringName(font_color), error_color);
|
||||
|
||||
for (const String &E : keyword_list) {
|
||||
|
||||
@ -600,8 +600,6 @@ void EditorThemeManager::_populate_text_editor_styles(const Ref<EditorTheme> &p_
|
||||
p_theme->set_stylebox("read_only", "CodeEdit", code_edit_stylebox);
|
||||
p_theme->set_stylebox("focus", "CodeEdit", memnew(StyleBoxEmpty));
|
||||
|
||||
p_theme->set_color("background_color", "CodeEdit", Color(0, 0, 0, 0)); // Unset any color, we use a stylebox.
|
||||
|
||||
/* clang-format off */
|
||||
p_theme->set_color("completion_background_color", "CodeEdit", EDITOR_GET("text_editor/theme/highlighting/completion_background_color"));
|
||||
p_theme->set_color("completion_selected_color", "CodeEdit", EDITOR_GET("text_editor/theme/highlighting/completion_selected_color"));
|
||||
|
||||
@ -909,7 +909,6 @@ void ThemeClassic::populate_standard_styles(const Ref<EditorTheme> &p_theme, Edi
|
||||
p_theme->set_color("font_outline_color", "TextEdit", p_config.font_outline_color);
|
||||
p_theme->set_color("caret_color", "TextEdit", p_config.font_color);
|
||||
p_theme->set_color("selection_color", "TextEdit", p_config.selection_color);
|
||||
p_theme->set_color("background_color", "TextEdit", Color(0, 0, 0, 0));
|
||||
|
||||
p_theme->set_constant("line_spacing", "TextEdit", 4 * EDSCALE);
|
||||
p_theme->set_constant("outline_size", "TextEdit", 0);
|
||||
|
||||
@ -856,7 +856,6 @@ void ThemeModern::populate_standard_styles(const Ref<EditorTheme> &p_theme, Edit
|
||||
p_theme->set_color("font_outline_color", "TextEdit", p_config.font_outline_color);
|
||||
p_theme->set_color("caret_color", "TextEdit", p_config.font_color);
|
||||
p_theme->set_color("selection_color", "TextEdit", p_config.selection_color);
|
||||
p_theme->set_color("background_color", "TextEdit", Color(1, 1, 1, 0));
|
||||
|
||||
p_theme->set_constant("line_spacing", "TextEdit", 4 * EDSCALE);
|
||||
p_theme->set_constant("outline_size", "TextEdit", 0);
|
||||
|
||||
Reference in New Issue
Block a user