impr: Use better icons for favorites and filter text boxes

This commit is contained in:
WerWolv
2023-06-04 22:52:36 +02:00
parent cc55e5ec74
commit e78c21cbfb
4 changed files with 11 additions and 10 deletions

View File

@@ -821,9 +821,9 @@ namespace hex::plugin::builtin {
auto &currOccurrences = *this->m_sortedOccurrences;
ImGui::PushItemWidth(ImGui::GetContentRegionAvail().x);
ImGui::PushItemWidth(-1);
auto prevFilterLength = this->m_currFilter->length();
if (ImGui::InputTextWithHint("##filter", "hex.builtin.common.filter"_lang, *this->m_currFilter)) {
if (ImGui::InputTextIcon("##filter", ICON_VS_FILTER, *this->m_currFilter)) {
if (prevFilterLength > this->m_currFilter->length())
*this->m_sortedOccurrences = *this->m_foundOccurrences;