diff --git a/src/app/gui/input.cc b/src/app/gui/input.cc index a4039b10..0f1999da 100644 --- a/src/app/gui/input.cc +++ b/src/app/gui/input.cc @@ -189,13 +189,12 @@ void Paragraph(const std::string& text) { } bool ClickableText(const std::string& text) { + static auto color = ImGui::GetStyleColorVec4(ImGuiCol_Text); + ImGui::TextColored(color, "%s", text.c_str()); if (ImGui::IsItemHovered()) { - ImGui::SetMouseCursor(ImGuiMouseCursor_Hand); - auto color = ImGui::GetStyleColorVec4(ImGuiCol_TabHovered); - ImGui::TextColored(color, "%s", text.c_str()); + color = ImGui::GetStyleColorVec4(ImGuiCol_TabHovered); } else { - auto color = ImGui::GetStyleColorVec4(ImGuiCol_Tab); - ImGui::TextColored(color, "%s", text.c_str()); + color = ImGui::GetStyleColorVec4(ImGuiCol_Text); } return ImGui::IsItemClicked(); } diff --git a/src/app/gui/style.cc b/src/app/gui/style.cc index ca6c7859..4b7cb1ff 100644 --- a/src/app/gui/style.cc +++ b/src/app/gui/style.cc @@ -43,7 +43,6 @@ absl::Status ParseThemeContents(const std::string &key, } return absl::OkStatus(); } - } // namespace absl::StatusOr LoadTheme(const std::string &filename) { diff --git a/src/app/gui/style.h b/src/app/gui/style.h index 54ce806a..e5998ea1 100644 --- a/src/app/gui/style.h +++ b/src/app/gui/style.h @@ -33,6 +33,9 @@ struct Theme { Color button; Color button_hovered; Color button_active; + + Color clickable_text; + Color clickable_text_hovered; }; absl::StatusOr LoadTheme(const std::string &filename);