Use button colors for the calendar selections.
This commit is contained in:
parent
4f7c728632
commit
596c4a06a3
|
@ -465,7 +465,7 @@ void CalendarBox::Inner::paintRows(Painter &p, QRect clip) {
|
||||||
if (selectedInRow > 0) {
|
if (selectedInRow > 0) {
|
||||||
auto hq = PainterHighQualityEnabler(p);
|
auto hq = PainterHighQualityEnabler(p);
|
||||||
p.setPen(Qt::NoPen);
|
p.setPen(Qt::NoPen);
|
||||||
p.setBrush(st::dialogsRippleBgActive);
|
p.setBrush(st::activeButtonBg);
|
||||||
p.drawRoundedRect(
|
p.drawRoundedRect(
|
||||||
(x
|
(x
|
||||||
+ (selectedFrom - index) * _st.cellSize.width()
|
+ (selectedFrom - index) * _st.cellSize.width()
|
||||||
|
@ -508,7 +508,7 @@ void CalendarBox::Inner::paintRows(Painter &p, QRect clip) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
p.setPen(selected
|
p.setPen(selected
|
||||||
? st::dialogsNameFgActive
|
? st::activeButtonFg
|
||||||
: highlighted
|
: highlighted
|
||||||
? (grayedOut ? st::windowSubTextFg : st::dialogsNameFgActive)
|
? (grayedOut ? st::windowSubTextFg : st::dialogsNameFgActive)
|
||||||
: enabled
|
: enabled
|
||||||
|
|
Loading…
Reference in New Issue