Skip to content

Commit

Permalink
make uilist menus render their footer text/item descriptions with color
Browse files Browse the repository at this point in the history
fixes #75673
  • Loading branch information
Daniel Brooks committed Aug 14, 2024
1 parent 9a18322 commit 11d9365
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,9 @@ void uilist_impl::draw_controls()

if( parent.desc_enabled ) {
ImGui::Separator();
ImGui::TextWrapped( "%s", parent.footer_text.empty() ? parent.entries[parent.selected].desc.c_str()
: parent.footer_text.c_str() );
cataimgui::draw_colored_text( parent.footer_text.empty() ?
parent.entries[parent.selected].desc.c_str()
: parent.footer_text.c_str() );
}
}

Expand Down

0 comments on commit 11d9365

Please sign in to comment.