[imgui] Makes the window edges rounded

This commit is contained in:
Xphalnos
2024-10-20 17:54:09 +02:00
committed by Radosław Gliński
parent 0712132ed0
commit 1c9783ca3c
2 changed files with 3 additions and 0 deletions

View File

@@ -322,6 +322,7 @@ void EmulatorWindow::DisplayConfigDialog::OnDraw(ImGuiIO& io) {
// In the top-left corner so it's close to the menu bar from where it was
// opened.
// Origin Y coordinate 20 was taken from the Dear ImGui demo.
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, 6.0f);
ImGui::SetNextWindowPos(ImVec2(20, 20), ImGuiCond_FirstUseEver);
ImGui::SetNextWindowSize(ImVec2(20, 20), ImGuiCond_FirstUseEver);
// Alpha from Dear ImGui tooltips (0.35 from the overlay provides too low