From 738b0fdae542df469a09451ea5e122b1c2413082 Mon Sep 17 00:00:00 2001 From: Paulb23 Date: Sat, 7 Aug 2021 12:06:50 +0100 Subject: [PATCH] Redraw on item list custom bg/fg colour change --- scene/gui/item_list.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scene/gui/item_list.cpp b/scene/gui/item_list.cpp index fdf6181f1dc..258d65112a4 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 {