mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Closed beta 10019008: Some more ripple animations added.
This commit is contained in:
@@ -310,11 +310,12 @@ void HistoryMessage::KeyboardStyle::repaint(const HistoryItem *item) const {
|
||||
Ui::repaintHistoryItem(item);
|
||||
}
|
||||
|
||||
void HistoryMessage::KeyboardStyle::paintButtonBg(Painter &p, const QRect &rect, bool down, float64 howMuchOver) const {
|
||||
int HistoryMessage::KeyboardStyle::buttonRadius() const {
|
||||
return st::dateRadius;
|
||||
}
|
||||
|
||||
void HistoryMessage::KeyboardStyle::paintButtonBg(Painter &p, const QRect &rect, float64 howMuchOver) const {
|
||||
App::roundRect(p, rect, st::msgServiceBg, StickerCorners);
|
||||
if (down) {
|
||||
howMuchOver = 1.;
|
||||
}
|
||||
if (howMuchOver > 0) {
|
||||
auto o = p.opacity();
|
||||
p.setOpacity(o * howMuchOver);
|
||||
@@ -1278,7 +1279,7 @@ void HistoryMessage::draw(Painter &p, const QRect &r, TextSelection selection, u
|
||||
height -= h;
|
||||
int top = height + st::msgBotKbButton.margin - marginBottom();
|
||||
p.translate(left, top);
|
||||
keyboard->paint(p, width, r.translated(-left, -top));
|
||||
keyboard->paint(p, width, r.translated(-left, -top), ms);
|
||||
p.translate(-left, -top);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user