2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 09:05:14 +00:00

Implement animated spoilers.

This commit is contained in:
John Preston
2022-09-17 00:23:27 +04:00
parent 4975254cc1
commit 749fb52113
291 changed files with 814 additions and 556 deletions

View File

@@ -315,7 +315,7 @@ void SuggestionsWidget::scrollByWheelEvent(not_null<QWheelEvent*> e) {
}
void SuggestionsWidget::paintEvent(QPaintEvent *e) {
Painter p(this);
auto p = QPainter(this);
_repaintScheduled = false;
@@ -363,7 +363,7 @@ void SuggestionsWidget::paintEvent(QPaintEvent *e) {
paintFadings(p);
}
void SuggestionsWidget::paintFadings(Painter &p) const {
void SuggestionsWidget::paintFadings(QPainter &p) const {
const auto scroll = scrollCurrent();
const auto o_left = std::clamp(
scroll / float64(st::emojiSuggestionsFadeAfter),