fix: ImGuiLayer 显式启用深色主题(ImGui 默认是灰白 Classic,非深蓝 Dark)
This commit is contained in:
@@ -51,6 +51,7 @@ namespace Engine {
|
||||
// 2. ImGui 上下文 + 平台/渲染后端
|
||||
IMGUI_CHECKVERSION();
|
||||
ImGui::CreateContext();
|
||||
ImGui::StyleColorsDark(); // 深色主题(ImGui 默认是灰白 Classic)
|
||||
ImGuiIO& io = ImGui::GetIO();
|
||||
io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard;
|
||||
io.ConfigFlags |= ImGuiConfigFlags_DockingEnable; // docking 分支
|
||||
|
||||
Reference in New Issue
Block a user