Commit d12e2471 authored by Kevin Whitaker's avatar Kevin Whitaker

Allow changing track bg color easier.

parent 25e4961f
......@@ -24,8 +24,7 @@
TrackDetails::TrackDetails()
{
this->setMaximumSize(Wt::WLength::Auto,Wt::WLength(200, Wt::WLength::Pixel));
//this->decorationStyle().setBorder(Wt::WBorder::Ridge);
this->decorationStyle().setBackgroundColor(Wt::WColor("#6FFF6F"));
changeBackgroundColor(Wt::WColor("#6FFF6F"));
this->addStyleClass("panel");
this->addStyleClass("panel-default");
mainLayout = new Wt::WHBoxLayout();
......@@ -67,3 +66,8 @@ void TrackDetails::updateWithTrackDetails(AudioTrack track)
albumCover->setResource(coverData);
this->animateShow(Wt::WAnimation(Wt::WAnimation::Fade,Wt::WAnimation::TimingFunction::EaseIn, 500));
}
void TrackDetails::changeBackgroundColor(Wt::WColor color)
{
this->decorationStyle().setBackgroundColor(color);
}
......@@ -42,6 +42,7 @@ public:
Wt::WText* trackAlbum;
void updateWithTrackDetails(AudioTrack track);
void changeBackgroundColor(Wt::WColor color);
};
#endif // TRACKDETAILS_H
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