2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Migrated from frequency timer to simple animation for item highlighting.

This commit is contained in:
23rd
2022-06-05 02:44:08 +03:00
parent ba7422805b
commit c9ef5e47fe
13 changed files with 85 additions and 56 deletions

View File

@@ -1266,9 +1266,9 @@ void HistoryWidget::enqueueMessageHighlight(
_highlighter.enqueue(view);
}
crl::time HistoryWidget::highlightStartTime(
float64 HistoryWidget::highlightOpacity(
not_null<const HistoryItem*> item) const {
return _highlighter.elementTime(item);
return _highlighter.progress(item);
}
int HistoryWidget::itemTopForHighlight(