From 80f28153bca66378b73152ae5f013b460841d73c Mon Sep 17 00:00:00 2001 From: emeric Date: Mon, 4 Apr 2022 21:38:15 +0200 Subject: [PATCH] Still converting to bootstrap 5 --- approot/playqueue.xml | 50 ++++++++++++++++------------------------ src/lms/ui/PlayQueue.cpp | 4 ++-- 2 files changed, 22 insertions(+), 32 deletions(-) diff --git a/approot/playqueue.xml b/approot/playqueue.xml index 0633bcbf..a30479b4 100644 --- a/approot/playqueue.xml +++ b/approot/playqueue.xml @@ -2,54 +2,44 @@ - - - - + + + + -
- ${clear-btn class="Lms-playqueue-btn Lms-btn"}${shuffle-btn class="Lms-playqueue-btn Lms-btn"}${repeat-btn class="Lms-playqueue-btn Lms-btn"}${radio-btn class="Lms-playqueue-btn Lms-btn"} -

${nb-tracks}

-
-
-
- ${entries} -
+
+ ${clear-btn class="me-2"}${shuffle-btn class="me-2"}${repeat-btn class="me-2"}${radio-btn class="me-2"} + ${nb-tracks}
+ ${entries} - - - + + +
-
-
- ${cover} -
+
+ ${cover}
-
-
${name}
+
+ ${name} ${} - ${}${release class="Lms-btn Lms-releasename text-primary"}${} + ${}${release}${} ${}${artists}${} ${}
-
-
- ${play-btn class="Lms-playqueue-btn Lms-btn"}${del-btn class="Lms-playqueue-btn Lms-btn"} -
-
- ${duration} -
+
+ ${duration} + ${play-btn class="me-2"}${del-btn class="me-2"}${more-btn}
- ${artist class="Lms-btn Lms-artistname text-muted"} + ${artist} diff --git a/src/lms/ui/PlayQueue.cpp b/src/lms/ui/PlayQueue.cpp index f7fb957b..3bc7c4ee 100644 --- a/src/lms/ui/PlayQueue.cpp +++ b/src/lms/ui/PlayQueue.cpp @@ -442,7 +442,7 @@ PlayQueue::addEntry(const Database::TrackListEntry::pointer& tracklistEntry) Wt::WAnchor* anchor = entry->bindWidget("cover", LmsApplication::createReleaseAnchor(release, false)); auto cover = std::make_unique(); cover->setImageLink(LmsApp->getCoverResource()->getReleaseUrl(release->getId(), CoverResource::Size::Large)); - cover->setStyleClass("Lms-cover"); + cover->setStyleClass("img-fluid"); cover->setAttributeValue("onload", LmsApp->javaScriptClass() + ".onLoadCover(this)"); anchor->setImage(std::move(cover)); } @@ -451,7 +451,7 @@ PlayQueue::addEntry(const Database::TrackListEntry::pointer& tracklistEntry) { auto cover = entry->bindNew("cover"); cover->setImageLink(LmsApp->getCoverResource()->getTrackUrl(track->getId(), CoverResource::Size::Large)); - cover->setStyleClass("Lms-cover"); + cover->setStyleClass("img-fluid"); cover->setAttributeValue("onload", LmsApp->javaScriptClass() + ".onLoadCover(this)"); }