Commit 12791439 authored by Kevin Whitaker's avatar Kevin Whitaker

Add a little animation when changing track details.

parent 0fa26d83
......@@ -49,6 +49,7 @@ TrackDetails::TrackDetails()
void TrackDetails::updateWithTrackDetails(AudioTrack track)
{
this->animateHide(Wt::WAnimation(Wt::WAnimation::Fade));
trackTitle->setText(track.trackName);
trackArtist->setText(track.trackArtistName);
trackAlbum->setText(track.trackAlbumName);
......@@ -57,4 +58,5 @@ void TrackDetails::updateWithTrackDetails(AudioTrack track)
coverData = new Wt::WMemoryResource(track.coverMimeType);
coverData->setData((unsigned char*)track.coverArt.data(),std::stoi(std::to_string(track.coverArt.size())));
albumCover->setResource(coverData);
this->animateShow(Wt::WAnimation(Wt::WAnimation::Fade,Wt::WAnimation::TimingFunction::EaseIn, 500));
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment