mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 21:28:06 +00:00
feat: 🌈🐈️
This commit is contained in:
parent
fda5f99c15
commit
d828ee79e9
4 changed files with 66 additions and 1 deletions
BIN
public/img/logos/nyancat.gif
Normal file
BIN
public/img/logos/nyancat.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 29 KiB |
|
|
@ -62,3 +62,40 @@
|
||||||
.volume-control:hover .vue-slider-process {
|
.volume-control:hover .vue-slider-process {
|
||||||
background-color: #335eea;
|
background-color: #335eea;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* nyancat */
|
||||||
|
|
||||||
|
.nyancat .vue-slider-rail {
|
||||||
|
background-color: rgba(128, 128, 128, 0.18);
|
||||||
|
padding: 2.5px 0px;
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nyancat .vue-slider-process {
|
||||||
|
padding: 0px 1px;
|
||||||
|
top: -2px;
|
||||||
|
border-radius: 0;
|
||||||
|
background: -webkit-gradient(
|
||||||
|
linear,
|
||||||
|
left top,
|
||||||
|
left bottom,
|
||||||
|
color-stop(0, #f00),
|
||||||
|
color-stop(17%, #f90),
|
||||||
|
color-stop(33%, #ff0),
|
||||||
|
color-stop(50%, #3f0),
|
||||||
|
color-stop(67%, #09f),
|
||||||
|
color-stop(83%, #63f)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
.nyancat .vue-slider-dot-handle {
|
||||||
|
background: url("/img/logos/nyancat.gif");
|
||||||
|
background-size: 36px;
|
||||||
|
width: 36px;
|
||||||
|
height: 24px;
|
||||||
|
margin-top: -6px;
|
||||||
|
box-shadow: none;
|
||||||
|
border-radius: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="player">
|
<div class="player">
|
||||||
<div class="progress-bar">
|
<div class="progress-bar" :class="{ nyancat: settings.nyancatStyle }">
|
||||||
<vue-slider
|
<vue-slider
|
||||||
v-model="progress"
|
v-model="progress"
|
||||||
:min="0"
|
:min="0"
|
||||||
|
|
|
||||||
|
|
@ -106,6 +106,22 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<div class="left">
|
||||||
|
<div class="title" style="transform: scaleX(-1)">🐈️ 🏳️🌈</div>
|
||||||
|
</div>
|
||||||
|
<div class="right">
|
||||||
|
<div class="toggle">
|
||||||
|
<input
|
||||||
|
type="checkbox"
|
||||||
|
name="nyancat-style"
|
||||||
|
id="nyancat-style"
|
||||||
|
v-model="nyancatStyle"
|
||||||
|
/>
|
||||||
|
<label for="nyancat-style"></label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -174,6 +190,18 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
nyancatStyle: {
|
||||||
|
get() {
|
||||||
|
if (this.settings.nyancatStyle === undefined) return false;
|
||||||
|
return this.settings.nyancatStyle;
|
||||||
|
},
|
||||||
|
set(value) {
|
||||||
|
this.$store.commit("updateSettings", {
|
||||||
|
key: "nyancatStyle",
|
||||||
|
value,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
logout() {
|
logout() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue