Fix ripple in active recommendation row.
This commit is contained in:
parent
768e8b457b
commit
1448cea01c
|
@ -820,9 +820,14 @@ void PeerListRow::stopLastRipple() {
|
|||
}
|
||||
}
|
||||
|
||||
void PeerListRow::paintRipple(Painter &p, int x, int y, int outerWidth) {
|
||||
void PeerListRow::paintRipple(
|
||||
Painter &p,
|
||||
const style::PeerListItem &st,
|
||||
int x,
|
||||
int y,
|
||||
int outerWidth) {
|
||||
if (_ripple) {
|
||||
_ripple->paint(p, x, y, outerWidth);
|
||||
_ripple->paint(p, x, y, outerWidth, &st.button.ripple.color->c);
|
||||
if (_ripple->empty()) {
|
||||
_ripple.reset();
|
||||
}
|
||||
|
@ -1735,7 +1740,7 @@ crl::time PeerListContent::paintRow(
|
|||
});
|
||||
|
||||
p.fillRect(0, 0, outerWidth, _rowHeight, bg);
|
||||
row->paintRipple(p, 0, 0, outerWidth);
|
||||
row->paintRipple(p, st, 0, 0, outerWidth);
|
||||
row->paintUserpic(
|
||||
p,
|
||||
st,
|
||||
|
|
|
@ -230,7 +230,12 @@ public:
|
|||
QPoint point,
|
||||
UpdateCallback &&updateCallback);
|
||||
void stopLastRipple();
|
||||
void paintRipple(Painter &p, int x, int y, int outerWidth);
|
||||
void paintRipple(
|
||||
Painter &p,
|
||||
const style::PeerListItem &st,
|
||||
int x,
|
||||
int y,
|
||||
int outerWidth);
|
||||
void paintUserpic(
|
||||
Painter &p,
|
||||
const style::PeerListItem &st,
|
||||
|
|
Loading…
Reference in New Issue