mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-21 23:57:38 +00:00
active muted unread count uses different color
This commit is contained in:
parent
12f3bb2082
commit
175968c3c0
@ -955,6 +955,7 @@ dlgActiveUnreadColor: #5b94bf;
|
||||
dlgActiveUnreadBG: white;
|
||||
dlgActiveColor: white;
|
||||
dlgActiveDateColor: #d3e2ee;
|
||||
dlgActiveUnreadMutedBG: dlgActiveDateColor;
|
||||
|
||||
topBarHeight: 54px;
|
||||
topBarBG: white;
|
||||
|
@ -175,7 +175,7 @@ void DialogRow::paint(Painter &p, int32 w, bool act, bool sel, bool onlyBackgrou
|
||||
int32 unreadRectLeft = w - st::dlgPaddingHor - unreadRectWidth;
|
||||
int32 unreadRectTop = st::dlgHeight - st::dlgPaddingVer - unreadRectHeight;
|
||||
lastWidth -= unreadRectWidth + st::dlgUnreadPaddingHor;
|
||||
p.setBrush((act ? st::dlgActiveUnreadBG : (history->mute ? st::dlgUnreadMutedBG : st::dlgUnreadBG))->b);
|
||||
p.setBrush((act ? (history->mute ? st::dlgActiveUnreadMutedBG : st::dlgActiveUnreadBG) : (history->mute ? st::dlgUnreadMutedBG : st::dlgUnreadBG))->b);
|
||||
p.setPen(Qt::NoPen);
|
||||
p.drawRoundedRect(unreadRectLeft, unreadRectTop, unreadRectWidth, unreadRectHeight, st::dlgUnreadRadius, st::dlgUnreadRadius);
|
||||
p.setFont(st::dlgUnreadFont->f);
|
||||
|
Loading…
Reference in New Issue
Block a user