From 57dd640c3ac933c7eefc716476489df727fb02bc Mon Sep 17 00:00:00 2001 From: scawful Date: Tue, 11 Mar 2025 21:05:32 -0400 Subject: [PATCH] Refactor ClickableText function to use tab colors for improved visual consistency; add TODO for theme setup --- src/app/gui/input.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/gui/input.cc b/src/app/gui/input.cc index 5a10a2ba..1028078b 100644 --- a/src/app/gui/input.cc +++ b/src/app/gui/input.cc @@ -188,13 +188,14 @@ void Paragraph(const std::string& text) { ImGui::TextWrapped("%s", text.c_str()); } +// TODO: Setup themes and text/clickable colors bool ClickableText(const std::string& text) { - static auto color = ImGui::GetStyleColorVec4(ImGuiCol_Text); + static auto color = ImGui::GetStyleColorVec4(ImGuiCol_Tab); ImGui::TextColored(color, "%s", text.c_str()); if (ImGui::IsItemHovered()) { color = ImGui::GetStyleColorVec4(ImGuiCol_TabHovered); } else { - color = ImGui::GetStyleColorVec4(ImGuiCol_Text); + color = ImGui::GetStyleColorVec4(ImGuiCol_Tab); } return ImGui::IsItemClicked(); }