Skip to content

Commit

Permalink
Merge pull request #75684 from db48x/uilist-footer
Browse files Browse the repository at this point in the history
make uilist menus render their footer text/item descriptions with color
  • Loading branch information
akrieger authored Aug 15, 2024
2 parents f220861 + 11d9365 commit dccf622
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 dccf622

Please sign in to comment.