diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-08-07 14:14:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-07 14:14:08 +0200 |
commit | 3177da1d053a6132668e12a8d8af82366f5c4ac9 (patch) | |
tree | 8e9d08769b1c3319d06043a1a183182ecf85d0e9 | |
parent | a888f1492bebd5a4cd49e037280e044ea192eccd (diff) | |
parent | 738b0fdae542df469a09451ea5e122b1c2413082 (diff) |
Merge pull request #51360 from Paulb23/item-list-bg-colour-update
-rw-r--r-- | scene/gui/item_list.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/item_list.cpp b/scene/gui/item_list.cpp index fdf6181f1d..258d65112a 100644 --- a/scene/gui/item_list.cpp +++ b/scene/gui/item_list.cpp @@ -245,6 +245,7 @@ void ItemList::set_item_custom_bg_color(int p_idx, const Color &p_custom_bg_colo ERR_FAIL_INDEX(p_idx, items.size()); items.write[p_idx].custom_bg = p_custom_bg_color; + update(); } Color ItemList::get_item_custom_bg_color(int p_idx) const { @@ -257,6 +258,7 @@ void ItemList::set_item_custom_fg_color(int p_idx, const Color &p_custom_fg_colo ERR_FAIL_INDEX(p_idx, items.size()); items.write[p_idx].custom_fg = p_custom_fg_color; + update(); } Color ItemList::get_item_custom_fg_color(int p_idx) const { |