mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Use button colors for the calendar selections.
This commit is contained in:
parent
4f7c728632
commit
596c4a06a3
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue