diff --git a/plugins/builtin/romfs/lang/en_US.json b/plugins/builtin/romfs/lang/en_US.json index 7dde36183..c50cbddae 100644 --- a/plugins/builtin/romfs/lang/en_US.json +++ b/plugins/builtin/romfs/lang/en_US.json @@ -564,6 +564,10 @@ "hex.builtin.view.bookmarks.name": "Bookmarks", "hex.builtin.view.bookmarks.no_bookmarks": "No bookmarks created yet. Add one with Edit -> Create Bookmark", "hex.builtin.view.bookmarks.title.info": "Information", + "hex.builtin.view.bookmarks.tooltip.jump_to": "Jump to address", + "hex.builtin.view.bookmarks.tooltip.lock": "Lock", + "hex.builtin.view.bookmarks.tooltip.open_in_view": "Open in new View", + "hex.builtin.view.bookmarks.tooltip.unlock": "Unlock", "hex.builtin.view.command_palette.name": "Command Palette", "hex.builtin.view.constants.name": "Constants", "hex.builtin.view.constants.row.category": "Category", diff --git a/plugins/builtin/source/content/views/view_bookmarks.cpp b/plugins/builtin/source/content/views/view_bookmarks.cpp index 612ffc77c..6b29a3da2 100644 --- a/plugins/builtin/source/content/views/view_bookmarks.cpp +++ b/plugins/builtin/source/content/views/view_bookmarks.cpp @@ -245,8 +245,10 @@ namespace hex::plugin::builtin { if (locked) { if (ImGui::IconButton(ICON_VS_LOCK, ImGui::GetStyleColorVec4(ImGuiCol_Text))) locked = false; + ImGui::InfoTooltip("hex.builtin.view.bookmarks.tooltip.unlock"_lang); } else { if (ImGui::IconButton(ICON_VS_UNLOCK, ImGui::GetStyleColorVec4(ImGuiCol_Text))) locked = true; + ImGui::InfoTooltip("hex.builtin.view.bookmarks.tooltip.lock"_lang); } ImGui::SameLine(); @@ -255,6 +257,7 @@ namespace hex::plugin::builtin { if (!locked) ImGui::OpenPopup("hex.builtin.view.bookmarks.header.color"_lang); } + ImGui::InfoTooltip("hex.builtin.view.bookmarks.header.color"_lang); if (ImGui::BeginPopup("hex.builtin.view.bookmarks.header.color"_lang)) { drawColorPopup(headerColor); @@ -281,6 +284,8 @@ namespace hex::plugin::builtin { if (ImGui::IconButton(ICON_VS_DEBUG_STEP_BACK, ImGui::GetStyleColorVec4(ImGuiCol_Text))) ImHexApi::HexEditor::setSelection(region); + ImGui::InfoTooltip("hex.builtin.view.bookmarks.tooltip.jump_to"_lang); + ImGui::SameLine(); if (ImGui::IconButton(ICON_VS_GO_TO_FILE, ImGui::GetStyleColorVec4(ImGuiCol_Text))) { auto newProvider = ImHexApi::Provider::createProvider("hex.builtin.provider.view", true); @@ -290,6 +295,8 @@ namespace hex::plugin::builtin { EventManager::post(viewProvider); } } + ImGui::InfoTooltip("hex.builtin.view.bookmarks.tooltip.open_in_view"_lang); + ImGui::SameLine(); ImGui::TextFormatted("hex.builtin.view.bookmarks.address"_lang, region.getStartAddress(), region.getEndAddress());