Deprecate TextEdit background_color
This commit is contained in:
parent
0b5ad6c73c
commit
e2cbfb53f1
8 changed files with 14 additions and 10 deletions
|
|
@ -957,9 +957,11 @@ void TextEdit::_notification(int p_what) {
|
|||
|
||||
int visible_rows = get_visible_line_count() + 1;
|
||||
|
||||
#ifndef DISABLE_DEPRECATED
|
||||
if (theme_cache.background_color.a > 0.01) {
|
||||
RS::get_singleton()->canvas_item_add_rect(text_ci, Rect2(Point2i(), get_size()), theme_cache.background_color);
|
||||
}
|
||||
#endif // DISABLE_DEPRECATED
|
||||
|
||||
Vector<BraceMatchingData> brace_matching;
|
||||
if (highlight_matching_braces_enabled) {
|
||||
|
|
@ -7651,7 +7653,10 @@ void TextEdit::_bind_methods() {
|
|||
BIND_THEME_ITEM(Theme::DATA_TYPE_CONSTANT, TextEdit, line_spacing);
|
||||
BIND_THEME_ITEM(Theme::DATA_TYPE_CONSTANT, TextEdit, wrap_offset);
|
||||
|
||||
#ifndef DISABLE_DEPRECATED
|
||||
BIND_THEME_ITEM(Theme::DATA_TYPE_COLOR, TextEdit, background_color);
|
||||
#endif // DISABLE_DEPRECATED
|
||||
|
||||
BIND_THEME_ITEM(Theme::DATA_TYPE_COLOR, TextEdit, current_line_color);
|
||||
BIND_THEME_ITEM(Theme::DATA_TYPE_COLOR, TextEdit, word_highlighted_color);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue