From 279e2378c1ef02e3917c29f8fafb39c058971577 Mon Sep 17 00:00:00 2001 From: hachem Date: Sat, 16 Aug 2025 17:36:57 +0200 Subject: [add]: Themes and better UI --- src/Core/Application.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/Core/Application.cpp') diff --git a/src/Core/Application.cpp b/src/Core/Application.cpp index 9aac646..302132a 100644 --- a/src/Core/Application.cpp +++ b/src/Core/Application.cpp @@ -7,6 +7,7 @@ #include + namespace Donut { Application* Application::s_Instance = nullptr; @@ -133,7 +134,14 @@ namespace Donut m_StateManager->Render(); m_Window->BeginImGuiFrame(); + SetupDockingLayout(); m_StateManager->OnImUIRender(); m_Window->EndImGuiFrame(); } + + void Application::SetupDockingLayout() + { + ImGuiViewport* viewport = ImGui::GetMainViewport(); + ImGui::DockSpaceOverViewport(0, viewport, ImGuiDockNodeFlags_PassthruCentralNode); + } }; -- cgit v1.3