From 75e575fc01197b526d661962d926c45bc6677b71 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 24 Dec 2023 14:52:14 +0100 Subject: [PATCH] impr: Remove shadow drawn by the no views open window --- plugins/builtin/source/content/welcome_screen.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/builtin/source/content/welcome_screen.cpp b/plugins/builtin/source/content/welcome_screen.cpp index 2ac87d996..baee1239a 100644 --- a/plugins/builtin/source/content/welcome_screen.cpp +++ b/plugins/builtin/source/content/welcome_screen.cpp @@ -396,6 +396,7 @@ namespace hex::plugin::builtin { * @brief Draw some default background if there are no views available in the current layout */ void drawNoViewsBackground() { + ImGui::PushStyleColor(ImGuiCol_WindowShadow, 0x00); if (ImGui::Begin("ImHexDockSpace")) { static std::array title; ImFormatString(title.data(), title.size(), "%s/DockSpace_%08X", ImGui::GetCurrentWindowRead()->Name, ImGui::GetID("ImHexMainDock")); @@ -434,6 +435,7 @@ namespace hex::plugin::builtin { ImGui::End(); } ImGui::End(); + ImGui::PopStyleColor(); } }