mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 23:53:58 +02:00
Fix ripple in active recommendation row.
This commit is contained in:
parent
768e8b457b
commit
1448cea01c
2 changed files with 14 additions and 4 deletions
|
@ -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) {
|
if (_ripple) {
|
||||||
_ripple->paint(p, x, y, outerWidth);
|
_ripple->paint(p, x, y, outerWidth, &st.button.ripple.color->c);
|
||||||
if (_ripple->empty()) {
|
if (_ripple->empty()) {
|
||||||
_ripple.reset();
|
_ripple.reset();
|
||||||
}
|
}
|
||||||
|
@ -1735,7 +1740,7 @@ crl::time PeerListContent::paintRow(
|
||||||
});
|
});
|
||||||
|
|
||||||
p.fillRect(0, 0, outerWidth, _rowHeight, bg);
|
p.fillRect(0, 0, outerWidth, _rowHeight, bg);
|
||||||
row->paintRipple(p, 0, 0, outerWidth);
|
row->paintRipple(p, st, 0, 0, outerWidth);
|
||||||
row->paintUserpic(
|
row->paintUserpic(
|
||||||
p,
|
p,
|
||||||
st,
|
st,
|
||||||
|
|
|
@ -230,7 +230,12 @@ public:
|
||||||
QPoint point,
|
QPoint point,
|
||||||
UpdateCallback &&updateCallback);
|
UpdateCallback &&updateCallback);
|
||||||
void stopLastRipple();
|
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(
|
void paintUserpic(
|
||||||
Painter &p,
|
Painter &p,
|
||||||
const style::PeerListItem &st,
|
const style::PeerListItem &st,
|
||||||
|
|
Loading…
Add table
Reference in a new issue