1
0
mirror of synced 2025-01-29 19:17:28 +01:00

impr: Remove shadow drawn by the no views open window

This commit is contained in:
WerWolv 2023-12-24 14:52:14 +01:00
parent 98bc89cb39
commit 75e575fc01

View File

@ -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<char, 256> 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();
}
}