summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorPaulb23 <p_batty@hotmail.co.uk>2021-08-07 12:06:50 +0100
committerPaulb23 <p_batty@hotmail.co.uk>2021-08-07 12:08:46 +0100
commit738b0fdae542df469a09451ea5e122b1c2413082 (patch)
treedc855fee344af9d3effe3c6ed4413a237482b9cc /scene/gui
parenta7f96e07d01f0b4f7ffb1eda829381d959b86e4e (diff)
Redraw on item list custom bg/fg colour change
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/item_list.cpp2
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 {