2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-10-01 03:11:43 +00:00

Implement multiboost reassign box.

This commit is contained in:
John Preston
2023-11-08 13:31:01 +04:00
parent a41bbd27c8
commit c5d1739e95
18 changed files with 844 additions and 213 deletions

View File

@@ -1682,9 +1682,19 @@ crl::time PeerListContent::paintRow(
return refreshStatusIn;
}
const auto opacity = row->opacity();
const auto &bg = selected
? _st.item.button.textBgOver
: _st.item.button.textBg;
if (opacity < 1.) {
p.setOpacity(opacity);
}
const auto guard = gsl::finally([&] {
if (opacity < 1.) {
p.setOpacity(1.);
}
});
p.fillRect(0, 0, outerWidth, _rowHeight, bg);
row->paintRipple(p, 0, 0, outerWidth);
row->paintUserpic(