UI: Round the corners of popups

FillRoundRect falls back to a square FillRect for drawables it can't
round, and a ViewGroup with round corners set rounds its background.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Henrik RydgårdandClaude Opus 5.5 committed 2026-10-27 21:47:06 +01:00
1 parent 476d020c58
commit 916dfab834
4 files changed
+11 -5

No files matched your search

+1 -1
View File
@@ -734,7 +734,7 @@ void PopupHeader::Draw(UIContext &dc) {
}
// Header background
dc.FillRect(dc.GetTheme().popupTitleStyle.background, bounds_);
dc.FillRoundRect(dc.GetTheme().popupTitleStyle.background, bounds_, dc.GetTheme().choiceRoundRadius, roundCorners_);
// Header title text
dc.DrawText(text_, bounds_.x + tx, bounds_.centerY(), dc.GetTheme().popupTitleStyle.fgColor, ALIGN_LEFT | ALIGN_VCENTER);
// Underline