Skip to content

Commit

Permalink
ref #39 : by default, hide the keyboard navigation highlight
Browse files Browse the repository at this point in the history
It does not render properly so better make it invisible
  • Loading branch information
ggerganov committed Mar 20, 2022
1 parent 19eceb7 commit c2ff4f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/imtui-impl-text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c2ff4f1

Please sign in to comment.