Step 197: keyboard navigation audit

This commit is contained in:
Bill
2026-02-10 05:08:02 -07:00
parent 09fd7b011e
commit eb49e2a3a7
12 changed files with 183 additions and 2 deletions

View File

@@ -274,6 +274,8 @@ private:
if (name == "Separator") return ImGuiCol_Separator;
if (name == "SeparatorHovered") return ImGuiCol_SeparatorHovered;
if (name == "SeparatorActive") return ImGuiCol_SeparatorActive;
if (name == "NavHighlight") return ImGuiCol_NavHighlight;
if (name == "NavWindowingHighlight") return ImGuiCol_NavWindowingHighlight;
return -1;
}
@@ -345,6 +347,12 @@ private:
style.Colors[colId] = color;
}
}
if (theme.imguiColors.find(ImGuiCol_NavHighlight) == theme.imguiColors.end()) {
style.Colors[ImGuiCol_NavHighlight] = ImVec4(1.0f, 0.85f, 0.2f, 1.0f);
}
if (theme.imguiColors.find(ImGuiCol_NavWindowingHighlight) == theme.imguiColors.end()) {
style.Colors[ImGuiCol_NavWindowingHighlight] = ImVec4(1.0f, 0.85f, 0.2f, 1.0f);
}
style.WindowPadding = theme.panelPadding;
style.ItemSpacing = theme.panelSpacing;
style.WindowBorderSize = theme.windowBorderSize;