[fix] fix window rounding inconsistency under different DPI scales

This commit is contained in:
dijunkun
2026-03-02 10:38:06 +08:00
parent 9a5553a636
commit a605c95e5a
15 changed files with 34 additions and 30 deletions

View File

@@ -94,7 +94,7 @@ int Render::FileTransferWindow(
ImGui::PushFont(stream_windows_system_chinese_font_);
}
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, 3.0f);
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, window_rounding_ * 0.5f);
ImGui::PushStyleVar(ImGuiStyleVar_WindowBorderSize, 1.0f);
ImGui::PushStyleColor(ImGuiCol_WindowBg, ImVec4(1.0f, 1.0f, 1.0f, 0.9f));
ImGui::PushStyleColor(ImGuiCol_Border, ImVec4(0.0f, 0.0f, 0.0f, 0.3f));