Skip to content

Commit

Permalink
Redraw on item list custom bg/fg colour change
Browse files Browse the repository at this point in the history
  • Loading branch information
Paulb23 committed Aug 7, 2021
1 parent a7f96e0 commit 738b0fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scene/gui/item_list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit 738b0fd

Please sign in to comment.