mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
impr: Slightly modernize hashes view
This commit is contained in:
@@ -158,6 +158,7 @@ namespace hex::plugin::hashes {
|
||||
ImGui::OpenPopup("##CreateHash");
|
||||
}
|
||||
|
||||
ImGui::SetNextWindowPos(ImGui::GetCursorScreenPos(), ImGuiCond_Always);
|
||||
ImGui::SetNextWindowSize(scaled({ 400, 0 }), ImGuiCond_Always);
|
||||
if (ImGui::BeginPopup("##CreateHash")) {
|
||||
ImGuiExt::InputTextIcon("hex.hashes.view.hashes.hash_name"_lang, ICON_VS_SYMBOL_KEY, m_newHashName);
|
||||
@@ -248,17 +249,15 @@ namespace hex::plugin::hashes {
|
||||
else
|
||||
result = "???";
|
||||
|
||||
ImGui::PushItemWidth(-1);
|
||||
ImGui::InputText("##result", result, ImGuiInputTextFlags_ReadOnly);
|
||||
ImGui::PopItemWidth();
|
||||
ImGuiExt::TextFormattedSelectable("{}", result);
|
||||
|
||||
ImGui::TableNextColumn();
|
||||
|
||||
if (ImGuiExt::IconButton(ICON_VS_OPEN_PREVIEW, ImGui::GetStyleColorVec4(ImGuiCol_Text))) {
|
||||
if (ImGuiExt::DimmedIconButton(ICON_VS_OPEN_PREVIEW, ImGui::GetStyleColorVec4(ImGuiCol_Text))) {
|
||||
PopupTextHash::open(function);
|
||||
}
|
||||
ImGui::SameLine();
|
||||
if (ImGuiExt::IconButton(ICON_VS_CHROME_CLOSE, ImGui::GetStyleColorVec4(ImGuiCol_Text))) {
|
||||
ImGui::SameLine(0, 3_scaled);
|
||||
if (ImGuiExt::DimmedIconButton(ICON_VS_CHROME_CLOSE, ImGui::GetStyleColorVec4(ImGuiCol_Text))) {
|
||||
indexToRemove = i;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user