From c2ff4f1ead3cb339a6b0c3c46ca7c025af7c2333 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Sun, 20 Mar 2022 10:55:10 +0200 Subject: [PATCH] ref #39 : by default, hide the keyboard navigation highlight It does not render properly so better make it invisible --- src/imtui-impl-text.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/imtui-impl-text.cpp b/src/imtui-impl-text.cpp index 6e047e49..48f0e708 100644 --- a/src/imtui-impl-text.cpp +++ b/src/imtui-impl-text.cpp @@ -282,6 +282,7 @@ bool ImTui_ImplText_Init() { ImGui::GetStyle().Colors[ImGuiCol_TitleBg] = ImVec4(0.35, 0.35, 0.35, 1.0f); ImGui::GetStyle().Colors[ImGuiCol_TitleBgCollapsed] = ImVec4(0.15, 0.15, 0.15, 1.0f); ImGui::GetStyle().Colors[ImGuiCol_TextSelectedBg] = ImVec4(0.75, 0.75, 0.75, 0.5f); + ImGui::GetStyle().Colors[ImGuiCol_NavHighlight] = ImVec4(0.00, 0.00, 0.00, 0.0f); ImFontConfig fontConfig; fontConfig.GlyphMinAdvanceX = 1.0f;