TextLinkOpenURL: display a verb in front the link. Update Gallery & other links. (#7885, #7660)

This commit is contained in:
ocornut
2024-09-06 11:38:48 +02:00
parent a5cf4fe374
commit a2366f9022
8 changed files with 17 additions and 14 deletions

View File

@@ -1460,7 +1460,7 @@ void ImGui::TextLinkOpenURL(const char* label, const char* url)
if (TextLink(label))
if (g.PlatformIO.Platform_OpenInShellFn != NULL)
g.PlatformIO.Platform_OpenInShellFn(&g, url);
SetItemTooltip("%s", url); // It is more reassuring for user to _always_ display URL when we same as label
SetItemTooltip(LocalizeGetMsg(ImGuiLocKey_OpenLink_s), url); // It is more reassuring for user to _always_ display URL when we same as label
if (BeginPopupContextItem())
{
if (MenuItem(LocalizeGetMsg(ImGuiLocKey_CopyLink)))