mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-16 19:13:40 +01:00
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:
1 parent
476d020c58
commit
916dfab834
4 files changed
+11
-5
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user