Use button colors for the calendar selections.

This commit is contained in:
John Preston 2021-11-22 13:07:14 +04:00
parent 4f7c728632
commit 596c4a06a3
1 changed files with 2 additions and 2 deletions

View File

@ -465,7 +465,7 @@ void CalendarBox::Inner::paintRows(Painter &p, QRect clip) {
if (selectedInRow > 0) {
auto hq = PainterHighQualityEnabler(p);
p.setPen(Qt::NoPen);
p.setBrush(st::dialogsRippleBgActive);
p.setBrush(st::activeButtonBg);
p.drawRoundedRect(
(x
+ (selectedFrom - index) * _st.cellSize.width()
@ -508,7 +508,7 @@ void CalendarBox::Inner::paintRows(Painter &p, QRect clip) {
}
}
p.setPen(selected
? st::dialogsNameFgActive
? st::activeButtonFg
: highlighted
? (grayedOut ? st::windowSubTextFg : st::dialogsNameFgActive)
: enabled