Fix build for macOS.

This commit is contained in:
John Preston 2023-07-06 00:05:34 +04:00
parent 1c914e40bb
commit 08ee386b28
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ void StoryMention::draw(
_unreadBrush = QBrush(gradient);
}
auto readColor = context.st->msgServiceFg()->c;
readColor.setAlphaF(std::min(readColor.alphaF(), kReadOutlineAlpha));
readColor.setAlphaF(std::min(1. * readColor.alphaF(), kReadOutlineAlpha));
p.setPen(QPen(
_unread ? _unreadBrush : QBrush(readColor),
0.5 * (_unread