You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 19:41:11 +00:00
Redraw on item list custom bg/fg colour change
(cherry picked from commit 738b0fdae5)
This commit is contained in:
@@ -163,6 +163,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 {
|
||||
@@ -175,6 +176,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 {
|
||||
|
||||
Reference in New Issue
Block a user