set shuffle to change color upon hovering it

This commit is contained in:
2022-07-16 23:31:23 -05:00
parent 1d886aa663
commit 2101b7788b

View File

@@ -221,9 +221,15 @@
function toggleShuffleColor() { function toggleShuffleColor() {
if (g_shuffle) { if (g_shuffle) {
$('#btn-shuffle').css('color', '#FF9148'); $('#btn-shuffle').css('color', '#FF9148');
$('#btn-shuffle').hover(function(e) {
$(this).css("color",e.type === "mouseenter"?"#4e91ff":"#FF9148")
});
} }
else { else {
$('#btn-shuffle').css('color', '#808080'); $('#btn-shuffle').css('color', '#808080');
$('#btn-shuffle').hover(function(e) {
$(this).css("color",e.type === "mouseenter"?"#4e91ff":"#808080")
});
} }
} }