add queue to fs
This commit is contained in:
parent
cba4a71b87
commit
7614f12fad
5 changed files with 79 additions and 17 deletions
|
@ -591,7 +591,7 @@ const app = new Vue({
|
||||||
app.getCurrentArtURL();
|
app.getCurrentArtURL();
|
||||||
app.getNowPlayingArtwork(42);
|
app.getNowPlayingArtwork(42);
|
||||||
app.getNowPlayingArtworkBG(32);
|
app.getNowPlayingArtworkBG(32);
|
||||||
app.loadLyrics()
|
app.loadLyrics();
|
||||||
|
|
||||||
// Playback Notifications
|
// Playback Notifications
|
||||||
if ((app.platform === "darwin" || app.platform === "linux") && !document.hasFocus() && a.artistName && a.artwork && a.name) {
|
if ((app.platform === "darwin" || app.platform === "linux") && !document.hasFocus() && a.artistName && a.artwork && a.name) {
|
||||||
|
|
|
@ -3567,23 +3567,74 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.playback-button--small.active {
|
||||||
|
background-color: rgba(200, 200, 200, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
.right-col{
|
.right-col{
|
||||||
height: 50vh;
|
height: 50vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
.lyrics-col{
|
.lyrics-col{
|
||||||
margin-top: 25vh;
|
|
||||||
width: 60vh;
|
width: 60vh;
|
||||||
height: 50vh;
|
height: 50vh;
|
||||||
|
|
||||||
::-webkit-scrollbar {
|
::-webkit-scrollbar-thumb {
|
||||||
display: none;
|
box-shadow: unset;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover ::-webkit-scrollbar {
|
&:hover ::-webkit-scrollbar-thumb {
|
||||||
display: unset;
|
box-shadow: inset 0px 0px 10px 10px rgb(200 200 200 / 50%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.queue-col{
|
||||||
|
|
||||||
|
width: 60vh;
|
||||||
|
height: 50vh;
|
||||||
|
|
||||||
|
::-webkit-scrollbar-thumb {
|
||||||
|
box-shadow: unset;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover ::-webkit-scrollbar-thumb {
|
||||||
|
box-shadow: inset 0px 0px 10px 10px rgb(200 200 200 / 50%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab-toggles{
|
||||||
|
display: flex;
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
right: 0;
|
||||||
|
width: 15vh;
|
||||||
|
height: 5vh;
|
||||||
|
justify-content: space-evenly;
|
||||||
|
|
||||||
|
.queue {
|
||||||
|
background-image: url("./assets/list.svg") ;
|
||||||
|
padding: 0.5vh;
|
||||||
|
width: 2.5vh;
|
||||||
|
height: 2.5vh;
|
||||||
|
background-origin: content-box;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lyrics {
|
||||||
|
background-image: url("./assets/quote-right.svg") ;
|
||||||
|
padding: 0.5vh;
|
||||||
|
width: 2.5vh;
|
||||||
|
height: 2.5vh;
|
||||||
|
background-origin: content-box;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
.active {
|
||||||
|
background-color: rgba(200, 200, 200, 0.7);
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.artwork-col {
|
.artwork-col {
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
|
@ -79,15 +79,23 @@
|
||||||
<div>Name</div>
|
<div>Name</div>
|
||||||
<div>Name</div>
|
<div>Name</div>
|
||||||
</div> -->
|
</div> -->
|
||||||
<div class="lyrics-col">
|
<div class="lyrics-col" v-if="tabMode == 'lyrics'">
|
||||||
<lyrics-view :yoffset="10" :time="time" :lyrics="lyrics"
|
<lyrics-view :yoffset="120" :time="time" :lyrics="lyrics"
|
||||||
:richlyrics="richlyrics"></lyrics-view>
|
:richlyrics="richlyrics"></lyrics-view>
|
||||||
<div>
|
</div>
|
||||||
|
<div class="queue-col" v-if="tabMode == 'queue'">
|
||||||
|
<cider-queue v-if="tabMode == 'queue'" ref="queue" ></cider-queue>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="tab-toggles">
|
||||||
|
<div class="lyrics" :class="{active: tabMode == 'lyrics'}" @click="tabMode = 'lyrics'"></div>
|
||||||
|
<div class="queue" :class="{active: tabMode == 'queue'}" @click="tabMode = 'queue'"></div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -99,21 +107,22 @@
|
||||||
required: false
|
required: false
|
||||||
},
|
},
|
||||||
lyrics: {
|
lyrics: {
|
||||||
type: Array,
|
type: Array,
|
||||||
required: false
|
required: false
|
||||||
},
|
},
|
||||||
richlyrics: {
|
richlyrics: {
|
||||||
type: Array,
|
type: Array,
|
||||||
required: false
|
required: false
|
||||||
},
|
},
|
||||||
image: {
|
image: {
|
||||||
type: String,
|
type: String,
|
||||||
required: false
|
required: false
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
data: function(){
|
data: function () {
|
||||||
return {
|
return {
|
||||||
app : this.$root,
|
app: this.$root,
|
||||||
|
tabMode: "lyrics",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
1
src/renderer/views/svg/list.svg
Normal file
1
src/renderer/views/svg/list.svg
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path fill="white" d="M80 368H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm0-320H16A16 16 0 0 0 0 64v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16V64a16 16 0 0 0-16-16zm0 160H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm416 176H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"/></svg>
|
After Width: | Height: | Size: 831 B |
1
src/renderer/views/svg/quote-right.svg
Normal file
1
src/renderer/views/svg/quote-right.svg
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path fill="white" d="M464 32H336c-26.5 0-48 21.5-48 48v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48zm-288 0H48C21.5 32 0 53.5 0 80v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48z"/></svg>
|
After Width: | Height: | Size: 640 B |
Loading…
Add table
Add a link
Reference in a new issue