aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/tubo/components/player.cljs
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/tubo/components/player.cljs')
-rw-r--r--src/frontend/tubo/components/player.cljs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/frontend/tubo/components/player.cljs b/src/frontend/tubo/components/player.cljs
index 0373c27..a8f3a18 100644
--- a/src/frontend/tubo/components/player.cljs
+++ b/src/frontend/tubo/components/player.cljs
@@ -209,6 +209,15 @@
:extra-classes [:text-sm]
:show-on-mobile? show-on-mobile?])
+(defn shuffle-button
+ [shuffle? color show-on-mobile?]
+ [button
+ :icon
+ [:i.fa-solid.fa-shuffle {:style {:color (when shuffle? color)}}]
+ :on-click #(rf/dispatch [:queue/shuffle (not shuffle?)])
+ :extra-classes [:text-sm]
+ :show-on-mobile? show-on-mobile?])
+
(defn volume-slider
[_player _volume-level _muted? _service-color]
(let [show-slider? (r/atom nil)]