From e58376bf50aa1d436fb42aa5bc80b8a37b5b316c Mon Sep 17 00:00:00 2001 From: JonKazama-Hellion Date: Wed, 6 May 2026 20:39:41 +0200 Subject: [PATCH] fix(ui): use ImGui.Button for Hellion Forge Discord link --- HellionChat/Resources/HellionStrings.de.resx | 2 +- HellionChat/Resources/HellionStrings.resx | 2 +- HellionChat/Ui/SettingsTabs/Integrations.cs | 17 ++--------------- 3 files changed, 4 insertions(+), 17 deletions(-) diff --git a/HellionChat/Resources/HellionStrings.de.resx b/HellionChat/Resources/HellionStrings.de.resx index a94ec38..b848362 100644 --- a/HellionChat/Resources/HellionStrings.de.resx +++ b/HellionChat/Resources/HellionStrings.de.resx @@ -870,7 +870,7 @@ Idee für eine Plugin-Integration, die nicht auf der Liste steht? Komm auf den Hellion-Forge-Discord und schreib mir — Community-Input bestimmt die Roadmap. - discord.gg/X9V7Kcv5gR + Hellion Forge öffnen Custom-Titel von Honorific diff --git a/HellionChat/Resources/HellionStrings.resx b/HellionChat/Resources/HellionStrings.resx index 93dbc50..18b7974 100644 --- a/HellionChat/Resources/HellionStrings.resx +++ b/HellionChat/Resources/HellionStrings.resx @@ -870,7 +870,7 @@ Got an idea for a plugin integration that's not on this list? Hop on the Hellion Forge Discord and tell me — community input drives the roadmap. - discord.gg/X9V7Kcv5gR + Open Hellion Forge Honorific custom title diff --git a/HellionChat/Ui/SettingsTabs/Integrations.cs b/HellionChat/Ui/SettingsTabs/Integrations.cs index 40f47b8..010d540 100644 --- a/HellionChat/Ui/SettingsTabs/Integrations.cs +++ b/HellionChat/Ui/SettingsTabs/Integrations.cs @@ -174,22 +174,9 @@ internal sealed class Integrations : ISettingsTab ImGui.TextWrapped(HellionStrings.Settings_Integrations_GotAnIdea_Body); ImGui.Spacing(); - var theme = Plugin.ThemeRegistry.Active; - using (ImRaii.PushColor(ImGuiCol.Text, ColourUtil.RgbaToAbgr(theme.Colors.Primary))) + if (ImGui.Button(HellionStrings.Settings_Integrations_GotAnIdea_LinkLabel)) { - // Selectable so the whole "→ link label" line is clickable and - // shows a hover state, matching the affordance users expect from - // hyperlinks in ImGui-driven plugins. Fully-qualified - // Dalamud.Utility.Util.OpenLink because HellionChat.Util is in - // scope here and an unqualified Util would clash. - if (ImGui.Selectable("→ " + HellionStrings.Settings_Integrations_GotAnIdea_LinkLabel)) - { - Dalamud.Utility.Util.OpenLink(BrandingLinks.HellionForgeDiscordInvite); - } - } - if (ImGui.IsItemHovered()) - { - ImGui.SetMouseCursor(ImGuiMouseCursor.Hand); + Dalamud.Utility.Util.OpenLink(BrandingLinks.HellionForgeDiscordInvite); } }