Correct corner radius of popups to match inner rounded things

This commit is contained in:
Henrik Rydgård committed 2026-10-29 15:12:55 +01:00
1 parent 37fa5896c1
commit d09a9ffa11
3 files changed
+6 -1

No files matched your search

+2 -1
View File
@@ -188,7 +188,8 @@ void ViewGroup::Draw(UIContext &dc) {
}
if (roundCorners_ != RoundCorners::None) {
dc.FillRoundRect(bg_, bounds_, dc.GetTheme().choiceRoundRadius, roundCorners_);
// Surrounding round rects (like windows) need a bigger radius to look right.
dc.FillRoundRect(bg_, bounds_, dc.GetTheme().choiceRoundRadius * radiusFactor_, roundCorners_);
} else {
dc.FillRect(bg_, bounds_);
}