Step 197: keyboard navigation audit
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user