1
0
mirror of synced 2024-11-28 17:40:51 +01:00

impr: Cleanup hashes view a bit

This commit is contained in:
WerWolv 2023-05-22 09:58:56 +02:00
parent e7b51a56a5
commit 2191eb14ae

View File

@ -123,7 +123,6 @@ namespace hex::plugin::builtin {
} }
ImGui::EndChild(); ImGui::EndChild();
ImGui::NewLine();
ImGui::InputTextIcon("##hash_name", ICON_VS_SYMBOL_KEY, this->m_newHashName); ImGui::InputTextIcon("##hash_name", ICON_VS_SYMBOL_KEY, this->m_newHashName);
ImGui::SameLine(); ImGui::SameLine();
@ -135,7 +134,10 @@ namespace hex::plugin::builtin {
} }
ImGui::EndDisabled(); ImGui::EndDisabled();
if (ImGui::BeginTable("##hashes", 3, ImGuiTableFlags_RowBg | ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_Borders, ImVec2(ImGui::GetContentRegionAvail().x, ImGui::GetTextLineHeightWithSpacing() * 10))) { ImGui::SameLine();
ImGui::HelpHover("hex.builtin.view.hashes.hover_info"_lang);
if (ImGui::BeginTable("##hashes", 3, ImGuiTableFlags_RowBg | ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_Borders | ImGuiTableFlags_ScrollY)) {
ImGui::TableSetupColumn("hex.builtin.view.hashes.table.name"_lang); ImGui::TableSetupColumn("hex.builtin.view.hashes.table.name"_lang);
ImGui::TableSetupColumn("hex.builtin.view.hashes.table.type"_lang); ImGui::TableSetupColumn("hex.builtin.view.hashes.table.type"_lang);
ImGui::TableSetupColumn("hex.builtin.view.hashes.table.result"_lang, ImGuiTableColumnFlags_WidthStretch); ImGui::TableSetupColumn("hex.builtin.view.hashes.table.result"_lang, ImGuiTableColumnFlags_WidthStretch);
@ -197,9 +199,6 @@ namespace hex::plugin::builtin {
ImGui::EndTable(); ImGui::EndTable();
} }
ImGui::NewLine();
ImGui::InfoTooltip("hex.builtin.view.hashes.hover_info"_lang);
} }
ImGui::End(); ImGui::End();
} }