mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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) {
|
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…
Add table
Reference in a new issue