Skip to content

Commit

Permalink
Fixed color of radial animation in audio files from shared media.
Browse files Browse the repository at this point in the history
  • Loading branch information
23rd authored and john-preston committed May 28, 2024
1 parent 2605e75 commit 26ba7e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Telegram/SourceFiles/overview/overview_layout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1398,7 +1398,9 @@ void Document::drawCornerDownload(QPainter &p, bool selected, const PaintContext
icon->paintInCenter(p, inner);
if (_radial && _radial->animating()) {
const auto rinner = inner.marginsRemoved(QMargins(st::historyAudioRadialLine, st::historyAudioRadialLine, st::historyAudioRadialLine, st::historyAudioRadialLine));
auto fg = selected ? st::historyFileThumbRadialFgSelected : st::historyFileThumbRadialFg;
const auto &fg = selected
? st::historyFileInIconFgSelected
: st::historyFileInIconFg;
_radial->draw(p, rinner, st::historyAudioRadialLine, fg);
}
}
Expand Down

0 comments on commit 26ba7e5

Please sign in to comment.