2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-03 16:05:57 +00:00

Update story mention layout, add outline.

Also use uint32 for bool-bitfields, otherwise:

int a : 1 = 0;
...
const auto test = true;
const auto b = test ? 1 : 0;
if (a != b) {
    a = b;
    ...
}
Assert(a == b); // Violation, because a == -1, not 1 (after a = b).
This commit is contained in:
John Preston
2023-07-05 11:55:16 +04:00
parent d7d8847c1d
commit a0ffa15885
15 changed files with 151 additions and 52 deletions

View File

@@ -367,6 +367,9 @@ void Row::PaintCornerBadgeFrame(
const auto st = context.st;
const auto storiesUnreadBrush = [&] {
if (context.active) {
return st::dialogsUnreadBgActive->b;
}
const auto left = st->padding.left();
const auto top = st->padding.top();
auto gradient = QLinearGradient(