Rename PopupHeaderStyle to PopupTitleStyle

This commit is contained in:
Henrik Rydgård committed 2025-02-17 11:47:35 -06:00
1 parent 4822680d62
commit 825d358072
7 files changed
+19 -19

No files matched your search

+3 -3
View File
@@ -711,11 +711,11 @@ void PopupHeader::Draw(UIContext &dc) {
}
// Header background
dc.FillRect(dc.theme->popupHeaderStyle.background, bounds_);
dc.FillRect(dc.theme->popupTitleStyle.background, bounds_);
// Header title text
dc.DrawText(text_, bounds_.x + tx, bounds_.centerY(), dc.theme->popupHeaderStyle.fgColor, ALIGN_LEFT | ALIGN_VCENTER);
dc.DrawText(text_, bounds_.x + tx, bounds_.centerY(), dc.theme->popupTitleStyle.fgColor, ALIGN_LEFT | ALIGN_VCENTER);
// Underline
dc.Draw()->DrawImageCenterTexel(dc.theme->whiteImage, bounds_.x, bounds_.y2()-2, bounds_.x2(), bounds_.y2(), dc.theme->popupHeaderStyle.fgColor);
dc.Draw()->DrawImageCenterTexel(dc.theme->whiteImage, bounds_.x, bounds_.y2()-2, bounds_.x2(), bounds_.y2(), dc.theme->popupTitleStyle.fgColor);
if (availableWidth < tw) {
dc.PopScissor();