redesign episode 2
This commit is contained in:
parent
bc55e6fe1a
commit
3102db4fa0
5 changed files with 542 additions and 250 deletions
|
@ -1,3 +1,13 @@
|
||||||
|
@colorMixRate: 1%;
|
||||||
|
@transparencyRate: 50%;
|
||||||
|
|
||||||
|
@keyColor : #fc3c44;
|
||||||
|
@ciderColor: #ff2654;
|
||||||
|
@baseColor: #1e1e1e;
|
||||||
|
@baseColorMix: mix(@baseColor, transparent, @transparencyRate);
|
||||||
|
@sidebarColor: #2e2e2e;
|
||||||
|
@sidebarColorMix: mix(@sidebarColor, transparent, @transparencyRate);
|
||||||
|
|
||||||
#app.navbar {
|
#app.navbar {
|
||||||
--navigationBarHeight: 38px;
|
--navigationBarHeight: 38px;
|
||||||
}
|
}
|
||||||
|
@ -8,13 +18,57 @@
|
||||||
--chromeHeight: calc(var(--chromeHeight1) + var(--chromeHeight2));
|
--chromeHeight: calc(var(--chromeHeight1) + var(--chromeHeight2));
|
||||||
|
|
||||||
.app-chrome {
|
.app-chrome {
|
||||||
|
|
||||||
|
&:not(.chrome-bottom) {
|
||||||
|
.app-chrome--center {
|
||||||
|
flex: 1;
|
||||||
|
.top-nav-group {
|
||||||
|
background: @baseColor;
|
||||||
|
border: 1px solid lighten(@baseColor, 8);
|
||||||
|
border-radius: 10px;
|
||||||
|
display: flex;
|
||||||
|
height: 32px;
|
||||||
|
|
||||||
|
.app-sidebar-item {
|
||||||
|
background-color: @baseColor;
|
||||||
|
border-radius: 10px!important;
|
||||||
|
border:0px;
|
||||||
|
min-width: 120px;
|
||||||
|
padding:6px;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
margin: 0px;
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
|
&:after {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: lighten(@baseColor, @colorMixRate * 5);
|
||||||
|
}
|
||||||
|
|
||||||
|
&.active {
|
||||||
|
background-color: lighten(@baseColor, @colorMixRate * 5);
|
||||||
|
}
|
||||||
|
|
||||||
|
&.md-btn-primary {
|
||||||
|
box-shadow: 0px 0px 0px 1px lighten(@baseColor, @colorMixRate * 8);
|
||||||
|
background-color: lighten(@baseColor, @colorMixRate * 5);
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.app-mainmenu {
|
.app-mainmenu {
|
||||||
width: 30px;
|
width: 30px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-input {
|
.search-input {
|
||||||
width: 300px;
|
width: 180px;
|
||||||
}
|
}
|
||||||
|
|
||||||
height: var(--chromeHeight1);
|
height: var(--chromeHeight1);
|
||||||
|
|
|
@ -570,6 +570,7 @@
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: rgb(200 200 200 / 10%);
|
background: rgb(200 200 200 / 10%);
|
||||||
|
box-shadow: var(--mediaItemShadow);
|
||||||
|
|
||||||
.overlay-play {
|
.overlay-play {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
@ -578,10 +579,13 @@
|
||||||
|
|
||||||
&.mediaitem-selected {
|
&.mediaitem-selected {
|
||||||
background: var(--selected);
|
background: var(--selected);
|
||||||
|
box-shadow: var(--mediaItemShadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
&:active {
|
&:active {
|
||||||
|
background: var(--selected-click);
|
||||||
|
box-shadow: var(--mediaItemShadow);
|
||||||
color: #eee;
|
color: #eee;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1089,11 +1093,12 @@
|
||||||
&.mediaitem-card {
|
&.mediaitem-card {
|
||||||
background: #ccc;
|
background: #ccc;
|
||||||
background: var(--spcolor);
|
background: var(--spcolor);
|
||||||
height: 272px;
|
height: 298px;
|
||||||
width: 230px;
|
width: 230px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
position: relative;
|
position: relative;
|
||||||
border-radius: calc(var(--mediaItemRadius) * 2);
|
border-radius: calc(var(--mediaItemRadius) * 2);
|
||||||
|
box-shadow: var(--mediaItemShadow-ShadowSubtle);
|
||||||
|
|
||||||
.artwork {
|
.artwork {
|
||||||
width: 230px;
|
width: 230px;
|
||||||
|
@ -1158,10 +1163,10 @@
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
max-height: 3.8em;
|
max-height: 3.8em;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
padding-top: 6px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&::after {
|
&::after {
|
||||||
|
box-shadow: var(--mediaItemShadow);
|
||||||
content: "";
|
content: "";
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
|
@ -1917,6 +1917,9 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: wrap;
|
flex-flow: wrap;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
.cd-mediaitem-square-container{
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
.cd-mediaitem-square {
|
.cd-mediaitem-square {
|
||||||
width: 220px;
|
width: 220px;
|
||||||
height: 260px;
|
height: 260px;
|
||||||
|
@ -1951,7 +1954,6 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.reasonSP{
|
.reasonSP{
|
||||||
|
|
|
@ -1,239 +1,466 @@
|
||||||
<div class="app-chrome" :style="{'display': chrome.topChromeVisible ? '' : 'none'}">
|
<div
|
||||||
<div class="app-chrome--left">
|
class="app-chrome"
|
||||||
<div class="app-chrome-item full-height" v-if="chrome.windowControlPosition == 'left' && !chrome.nativeControls">
|
:style="{'display': chrome.topChromeVisible ? '' : 'none'}"
|
||||||
<div class="window-controls-macos">
|
>
|
||||||
<div class="close" @click="ipcRenderer.send('close')"></div>
|
<div class="app-chrome--left">
|
||||||
<div class="minimize" @click="ipcRenderer.send('minimize')"></div>
|
<div
|
||||||
<div class="minmax restore" v-if="chrome.maximized"
|
class="app-chrome-item full-height"
|
||||||
@click="ipcRenderer.send('maximize')">
|
v-if="chrome.windowControlPosition == 'left' && !chrome.nativeControls"
|
||||||
</div>
|
>
|
||||||
<div class="minmax" v-else @click="ipcRenderer.send('maximize')"></div>
|
<div class="window-controls-macos">
|
||||||
</div>
|
<div class="close" @click="ipcRenderer.send('close')"></div>
|
||||||
</div>
|
<div class="minimize" @click="ipcRenderer.send('minimize')"></div>
|
||||||
<div class="app-chrome-item full-height" v-else>
|
<div
|
||||||
<button class="app-mainmenu"
|
class="minmax restore"
|
||||||
@blur="mainMenuVisibility(false)"
|
v-if="chrome.maximized"
|
||||||
@click="mainMenuVisibility(true)"
|
@click="ipcRenderer.send('maximize')"
|
||||||
:class="{active: chrome.menuOpened}"
|
></div>
|
||||||
:aria-label="$root.getLz('term.quickNav')"></button>
|
<div class="minmax" v-else @click="ipcRenderer.send('maximize')"></div>
|
||||||
</div>
|
</div>
|
||||||
<template v-if="getThemeDirective('appNavigation') != 'seperate'">
|
</div>
|
||||||
<div class="vdiv display--large" v-if="getThemeDirective('windowLayout') == 'twopanel'"></div>
|
<div class="app-chrome-item full-height" v-else>
|
||||||
<div class="app-chrome-item">
|
<button
|
||||||
<button class="playback-button navigation" @click="navigateBack()"
|
class="app-mainmenu"
|
||||||
:title="$root.getLz('term.navigateBack')" v-b-tooltip.hover>
|
@blur="mainMenuVisibility(false)"
|
||||||
<%- include('../svg/chevron-left.svg') %>
|
@click="mainMenuVisibility(true)"
|
||||||
|
:class="{active: chrome.menuOpened}"
|
||||||
|
:aria-label="$root.getLz('term.quickNav')"
|
||||||
|
></button>
|
||||||
|
</div>
|
||||||
|
<template v-if="getThemeDirective('appNavigation') != 'seperate'">
|
||||||
|
<div
|
||||||
|
class="vdiv display--large"
|
||||||
|
v-if="getThemeDirective('windowLayout') == 'twopanel'"
|
||||||
|
></div>
|
||||||
|
<div class="app-chrome-item">
|
||||||
|
<button
|
||||||
|
class="playback-button navigation"
|
||||||
|
@click="navigateBack()"
|
||||||
|
:title="$root.getLz('term.navigateBack')"
|
||||||
|
v-b-tooltip.hover
|
||||||
|
>
|
||||||
|
<%- include('../svg/chevron-left.svg') %>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="app-chrome-item">
|
||||||
|
<button
|
||||||
|
class="playback-button navigation"
|
||||||
|
@click="navigateForward()"
|
||||||
|
:title="$root.getLz('term.navigateForward')"
|
||||||
|
v-b-tooltip.hover
|
||||||
|
>
|
||||||
|
<%- include('../svg/chevron-right.svg') %>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
class="vdiv display--large"
|
||||||
|
v-if="getThemeDirective('windowLayout') != 'twopanel'"
|
||||||
|
></div>
|
||||||
|
</template>
|
||||||
|
<template v-if="getThemeDirective('windowLayout') != 'twopanel'">
|
||||||
|
<div class="app-chrome-item display--large">
|
||||||
|
<button
|
||||||
|
class="playback-button--small shuffle"
|
||||||
|
v-if="mk.shuffleMode == 0"
|
||||||
|
:class="isDisabled() && 'disabled'"
|
||||||
|
@click="mk.shuffleMode = 1"
|
||||||
|
:title="$root.getLz('term.enableShuffle')"
|
||||||
|
v-b-tooltip.hover
|
||||||
|
></button>
|
||||||
|
<button
|
||||||
|
class="playback-button--small shuffle active"
|
||||||
|
v-else
|
||||||
|
:class="isDisabled() && 'disabled'"
|
||||||
|
@click="mk.shuffleMode = 0"
|
||||||
|
:title="$root.getLz('term.disableShuffle')"
|
||||||
|
v-b-tooltip.hover
|
||||||
|
></button>
|
||||||
|
</div>
|
||||||
|
<div class="app-chrome-item display--large">
|
||||||
|
<button
|
||||||
|
class="playback-button previous"
|
||||||
|
@click="prevButton()"
|
||||||
|
:class="isPrevDisabled() && 'disabled'"
|
||||||
|
:title="$root.getLz('term.previous')"
|
||||||
|
v-b-tooltip.hover
|
||||||
|
></button>
|
||||||
|
</div>
|
||||||
|
<div class="app-chrome-item display--large">
|
||||||
|
<button
|
||||||
|
class="playback-button stop"
|
||||||
|
@click="mk.stop()"
|
||||||
|
v-if="mk.isPlaying && mk.nowPlayingItem.attributes.playParams.kind == 'radioStation'"
|
||||||
|
:title="$root.getLz('term.stop')"
|
||||||
|
v-b-tooltip.hover
|
||||||
|
></button>
|
||||||
|
<button
|
||||||
|
class="playback-button pause"
|
||||||
|
@click="mk.pause()"
|
||||||
|
v-else-if="mk.isPlaying"
|
||||||
|
:title="$root.getLz('term.pause')"
|
||||||
|
v-b-tooltip.hover
|
||||||
|
></button>
|
||||||
|
<button
|
||||||
|
class="playback-button play"
|
||||||
|
@click="mk.play()"
|
||||||
|
v-else
|
||||||
|
:title="$root.getLz('term.play')"
|
||||||
|
v-b-tooltip.hover
|
||||||
|
></button>
|
||||||
|
</div>
|
||||||
|
<div class="app-chrome-item display--large">
|
||||||
|
<button
|
||||||
|
class="playback-button next"
|
||||||
|
@click="skipToNextItem()"
|
||||||
|
:class="isNextDisabled() && 'disabled'"
|
||||||
|
:title="$root.getLz('term.next')"
|
||||||
|
v-b-tooltip.hover
|
||||||
|
></button>
|
||||||
|
</div>
|
||||||
|
<div class="app-chrome-item display--large">
|
||||||
|
<button
|
||||||
|
class="playback-button--small repeat"
|
||||||
|
v-if="mk.repeatMode == 0"
|
||||||
|
:class="isDisabled() && 'disabled'"
|
||||||
|
@click="mk.repeatMode = 1"
|
||||||
|
:title="$root.getLz('term.enableRepeatOne')"
|
||||||
|
v-b-tooltip.hover
|
||||||
|
></button>
|
||||||
|
<button
|
||||||
|
class="playback-button--small repeat repeatOne"
|
||||||
|
@click="mk.repeatMode = 2"
|
||||||
|
:class="isDisabled() && 'disabled'"
|
||||||
|
v-else-if="mk.repeatMode == 1"
|
||||||
|
:title="$root.getLz('term.disableRepeatOne')"
|
||||||
|
v-b-tooltip.hover
|
||||||
|
></button>
|
||||||
|
<button
|
||||||
|
class="playback-button--small repeat active"
|
||||||
|
@click="mk.repeatMode = 0"
|
||||||
|
:class="isDisabled() && 'disabled'"
|
||||||
|
v-else-if="mk.repeatMode == 2"
|
||||||
|
:title="$root.getLz('term.disableRepeat')"
|
||||||
|
v-b-tooltip.hover
|
||||||
|
></button>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</div>
|
||||||
|
<div class="app-chrome--center">
|
||||||
|
<div
|
||||||
|
class="app-chrome-item playback-controls"
|
||||||
|
v-if="getThemeDirective('windowLayout') != 'twopanel'"
|
||||||
|
>
|
||||||
|
<template v-if="mkReady()">
|
||||||
|
<div
|
||||||
|
class="app-playback-controls"
|
||||||
|
@mouseover="chrome.progresshover = true"
|
||||||
|
@mouseleave="chrome.progresshover = false"
|
||||||
|
@contextmenu="nowPlayingContextMenu"
|
||||||
|
>
|
||||||
|
<div class="artwork" id="artworkLCD">
|
||||||
|
<mediaitem-artwork :url="currentArtUrl"></mediaitem-artwork>
|
||||||
|
</div>
|
||||||
|
<b-popover
|
||||||
|
custom-class="mediainfo-popover"
|
||||||
|
target="artworkLCD"
|
||||||
|
triggers="hover"
|
||||||
|
placement="bottom"
|
||||||
|
>
|
||||||
|
<div class="content">
|
||||||
|
<div class="shadow-artwork">
|
||||||
|
<mediaitem-artwork
|
||||||
|
:url="currentArtUrl"
|
||||||
|
:url="currentArtUrlRaw"
|
||||||
|
></mediaitem-artwork>
|
||||||
|
</div>
|
||||||
|
<div class="popover-artwork">
|
||||||
|
<mediaitem-artwork
|
||||||
|
:size="210"
|
||||||
|
:url="currentArtUrlRaw"
|
||||||
|
></mediaitem-artwork>
|
||||||
|
</div>
|
||||||
|
<div class="song-name">
|
||||||
|
{{ mk.nowPlayingItem["attributes"]["name"] }}
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
class="song-artist"
|
||||||
|
@click="getNowPlayingItemDetailed(`artist`)"
|
||||||
|
>
|
||||||
|
{{ mk.nowPlayingItem["attributes"]["artistName"] }}
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
class="song-album"
|
||||||
|
@click="getNowPlayingItemDetailed(`album`)"
|
||||||
|
>
|
||||||
|
{{
|
||||||
|
mk.nowPlayingItem["attributes"]["albumName"]
|
||||||
|
? mk.nowPlayingItem["attributes"]["albumName"]
|
||||||
|
: ""
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
<hr />
|
||||||
|
<div class="btn-group" style="width: 100%">
|
||||||
|
<button
|
||||||
|
class="md-btn md-btn-small"
|
||||||
|
style="width: 100%"
|
||||||
|
@click="drawer.open = false; miniPlayer(true)"
|
||||||
|
>
|
||||||
|
{{ $root.getLz("term.miniplayer") }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
<button
|
||||||
<div class="app-chrome-item">
|
class="md-btn md-btn-small"
|
||||||
<button class="playback-button navigation" @click="navigateForward()"
|
style="width: 100%"
|
||||||
:title="$root.getLz('term.navigateForward')" v-b-tooltip.hover>
|
@click="drawer.open = false; fullscreen(true)"
|
||||||
<%- include('../svg/chevron-right.svg') %>
|
>
|
||||||
|
{{ $root.getLz("term.fullscreenView") }}
|
||||||
</button>
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="vdiv display--large" v-if="getThemeDirective('windowLayout') != 'twopanel'"></div>
|
</b-popover>
|
||||||
</template>
|
<div class="playback-info">
|
||||||
<template v-if="getThemeDirective('windowLayout') != 'twopanel'">
|
<div class="chrome-icon-container">
|
||||||
<div class="app-chrome-item display--large">
|
<div
|
||||||
<button class="playback-button--small shuffle" v-if="mk.shuffleMode == 0" :class="isDisabled() && 'disabled'"
|
class="audio-type private-icon"
|
||||||
@click="mk.shuffleMode = 1" :title="$root.getLz('term.enableShuffle')"
|
v-if="cfg.general.privateEnabled === true"
|
||||||
v-b-tooltip.hover></button>
|
></div>
|
||||||
<button class="playback-button--small shuffle active" v-else :class="isDisabled() && 'disabled'"
|
<div
|
||||||
@click="mk.shuffleMode = 0" :title="$root.getLz('term.disableShuffle')"
|
class="audio-type ppe-icon"
|
||||||
v-b-tooltip.hover></button>
|
v-if="cfg.audio.maikiwiAudio.ciderPPE === true"
|
||||||
|
></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="app-chrome-item display--large">
|
<div
|
||||||
<button class="playback-button previous" @click="prevButton()" :class="isPrevDisabled() && 'disabled'"
|
class="song-name"
|
||||||
:title="$root.getLz('term.previous')" v-b-tooltip.hover></button>
|
:class="[isElementOverflowing('#app-main > div.app-chrome > div.app-chrome--center > div > div > div.playback-info > div.song-name') ? 'marquee' : '']"
|
||||||
|
>
|
||||||
|
{{ mk.nowPlayingItem["attributes"]["name"] }}
|
||||||
|
<div
|
||||||
|
class="explicit-icon"
|
||||||
|
v-if="mk.nowPlayingItem['attributes']['contentRating'] == 'explicit'"
|
||||||
|
style="display: inline-block"
|
||||||
|
></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="app-chrome-item display--large">
|
<div class="song-artist-album">
|
||||||
<button class="playback-button stop" @click="mk.stop()" v-if="mk.isPlaying && mk.nowPlayingItem.attributes.playParams.kind == 'radioStation'"
|
<div
|
||||||
:title="$root.getLz('term.stop')" v-b-tooltip.hover></button>
|
class="song-artist-album-content"
|
||||||
<button class="playback-button pause" @click="mk.pause()" v-else-if="mk.isPlaying"
|
:class="[isElementOverflowing('#app-main > .app-chrome .app-chrome-item > .app-playback-controls > div >.song-artist-album > .song-artist-album-content') ? 'marquee' : '']"
|
||||||
:title="$root.getLz('term.pause')" v-b-tooltip.hover></button>
|
style="
|
||||||
<button class="playback-button play" @click="mk.play()" v-else
|
display: inline-block;
|
||||||
:title="$root.getLz('term.play')" v-b-tooltip.hover></button>
|
-webkit-box-orient: horizontal;
|
||||||
</div>
|
white-space: nowrap;
|
||||||
<div class="app-chrome-item display--large">
|
"
|
||||||
<button class="playback-button next" @click="skipToNextItem()" :class="isNextDisabled() && 'disabled'"
|
>
|
||||||
:title="$root.getLz('term.next')" v-b-tooltip.hover></button>
|
<div
|
||||||
</div>
|
class="item-navigate song-artist"
|
||||||
<div class="app-chrome-item display--large">
|
style="display: inline-block"
|
||||||
<button class="playback-button--small repeat" v-if="mk.repeatMode == 0" :class="isDisabled() && 'disabled'"
|
@click="getNowPlayingItemDetailed(`artist`)"
|
||||||
@click="mk.repeatMode = 1" :title="$root.getLz('term.enableRepeatOne')"
|
>
|
||||||
v-b-tooltip.hover></button>
|
{{ mk.nowPlayingItem["attributes"]["artistName"] }}
|
||||||
<button class="playback-button--small repeat repeatOne" @click="mk.repeatMode = 2" :class="isDisabled() && 'disabled'"
|
|
||||||
v-else-if="mk.repeatMode == 1" :title="$root.getLz('term.disableRepeatOne')"
|
|
||||||
v-b-tooltip.hover></button>
|
|
||||||
<button class="playback-button--small repeat active" @click="mk.repeatMode = 0" :class="isDisabled() && 'disabled'"
|
|
||||||
v-else-if="mk.repeatMode == 2" :title="$root.getLz('term.disableRepeat')"
|
|
||||||
v-b-tooltip.hover></button>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
</div>
|
|
||||||
<div class="app-chrome--center">
|
|
||||||
<div class="app-chrome-item playback-controls" v-if="getThemeDirective('windowLayout') != 'twopanel'">
|
|
||||||
<template v-if="mkReady()">
|
|
||||||
<div class="app-playback-controls" @mouseover="chrome.progresshover = true"
|
|
||||||
@mouseleave="chrome.progresshover = false" @contextmenu="nowPlayingContextMenu">
|
|
||||||
<div class="artwork" id="artworkLCD">
|
|
||||||
<mediaitem-artwork :url="currentArtUrl"></mediaitem-artwork>
|
|
||||||
</div>
|
|
||||||
<b-popover custom-class="mediainfo-popover" target="artworkLCD" triggers="hover" placement="bottom">
|
|
||||||
<div class="content">
|
|
||||||
<div class="shadow-artwork">
|
|
||||||
<mediaitem-artwork :url="currentArtUrl" :url="currentArtUrlRaw"></mediaitem-artwork>
|
|
||||||
</div>
|
|
||||||
<div class="popover-artwork">
|
|
||||||
<mediaitem-artwork :size="210" :url="currentArtUrlRaw"></mediaitem-artwork>
|
|
||||||
</div>
|
|
||||||
<div class="song-name">{{ mk.nowPlayingItem["attributes"]["name"] }}</div>
|
|
||||||
<div class="song-artist" @click="getNowPlayingItemDetailed(`artist`)">{{ mk.nowPlayingItem["attributes"]["artistName"] }}</div>
|
|
||||||
<div class="song-album" @click="getNowPlayingItemDetailed(`album`)">
|
|
||||||
{{(mk.nowPlayingItem["attributes"]["albumName"]) ?
|
|
||||||
(mk.nowPlayingItem["attributes"]["albumName"]) : "" }}
|
|
||||||
</div>
|
|
||||||
<hr>
|
|
||||||
<div class="btn-group" style="width:100%;">
|
|
||||||
<button class="md-btn md-btn-small" style="width: 100%;" @click="drawer.open = false; miniPlayer(true)">{{ $root.getLz("term.miniplayer") }}</button>
|
|
||||||
<button class="md-btn md-btn-small" style="width: 100%;" @click="drawer.open = false; fullscreen(true)">{{ $root.getLz("term.fullscreenView") }}</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</b-popover>
|
|
||||||
<div class="playback-info">
|
|
||||||
<div class="chrome-icon-container">
|
|
||||||
<div class="audio-type private-icon" v-if="cfg.general.privateEnabled === true"></div>
|
|
||||||
<div class="audio-type ppe-icon" v-if="cfg.audio.maikiwiAudio.ciderPPE === true"></div>
|
|
||||||
</div>
|
|
||||||
<div class="song-name"
|
|
||||||
:class="[isElementOverflowing('#app-main > div.app-chrome > div.app-chrome--center > div > div > div.playback-info > div.song-name') ? 'marquee' : '']">
|
|
||||||
{{ mk.nowPlayingItem["attributes"]["name"] }}
|
|
||||||
<div class="explicit-icon"
|
|
||||||
v-if="mk.nowPlayingItem['attributes']['contentRating'] == 'explicit'"
|
|
||||||
style="display: inline-block"></div>
|
|
||||||
</div>
|
|
||||||
<div class="song-artist-album">
|
|
||||||
<div class="song-artist-album-content"
|
|
||||||
:class="[isElementOverflowing('#app-main > .app-chrome .app-chrome-item > .app-playback-controls > div >.song-artist-album > .song-artist-album-content') ? 'marquee' : '']"
|
|
||||||
style="display: inline-block; -webkit-box-orient: horizontal; white-space: nowrap;">
|
|
||||||
<div class="item-navigate song-artist" style="display: inline-block"
|
|
||||||
@click="getNowPlayingItemDetailed(`artist`)">
|
|
||||||
{{ mk.nowPlayingItem["attributes"]["artistName"] }}
|
|
||||||
</div>
|
|
||||||
<div class="song-artist item-navigate" style="display: inline-block"
|
|
||||||
@click="getNowPlayingItemDetailed('album')"
|
|
||||||
v-if="mk.nowPlayingItem['attributes']['albumName'] != ''">
|
|
||||||
<div class="separator" style="display: inline-block;">{{"—"}}</div>
|
|
||||||
{{(mk.nowPlayingItem["attributes"]["albumName"]) ?
|
|
||||||
(mk.nowPlayingItem["attributes"]["albumName"]) : "" }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="song-progress">
|
|
||||||
<div class="song-duration"
|
|
||||||
style="justify-content: space-between; height: 1px;"
|
|
||||||
:style="[chrome.progresshover ? {'display': 'flex'} : {'display' : 'none'} ]">
|
|
||||||
<p style="width: auto">{{ convertTime(getSongProgress()) }}</p>
|
|
||||||
<p style="width: auto">{{ convertTime(mk.currentPlaybackDuration) }}
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<input type="range" step="0.01" min="0" :style="progressBarStyle()"
|
|
||||||
@input="playerLCD.desiredDuration = $event.target.value;playerLCD.userInteraction = true"
|
|
||||||
@mouseup="mk.seekToTime($event.target.value);setTimeout(()=>{playerLCD.desiredDuration = 0;playerLCD.userInteraction = false}, 1000);"
|
|
||||||
@touchend="mk.seekToTime($event.target.value);setTimeout(()=>{playerLCD.desiredDuration = 0;playerLCD.userInteraction = false}, 1000);"
|
|
||||||
:max="mk.currentPlaybackDuration" :value="getSongProgress()">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<template v-if="mk.nowPlayingItem['attributes']['playParams']">
|
|
||||||
<div class="actions">
|
|
||||||
<button class="lcdMenu" @click="nowPlayingContextMenu"
|
|
||||||
:title="$root.getLz('term.more')" v-b-tooltip.hover>
|
|
||||||
<div class="svg-icon"></div>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
<div
|
||||||
|
class="song-artist item-navigate"
|
||||||
</div>
|
style="display: inline-block"
|
||||||
<div class="app-chrome-item" v-else>
|
@click="getNowPlayingItemDetailed('album')"
|
||||||
<div class="search-input-container">
|
v-if="mk.nowPlayingItem['attributes']['albumName'] != ''"
|
||||||
<div class="search-input--icon"></div>
|
>
|
||||||
<input type="search" spellcheck="false" @click="showSearch()" @focus="search.showHints = true"
|
<div class="separator" style="display: inline-block">
|
||||||
@blur="setTimeout(()=>{search.showHints = false}, 300)"
|
{{ "—" }}
|
||||||
v-on:keyup.enter="searchQuery();search.showHints = false" @change="showSearch();"
|
</div>
|
||||||
@input="getSearchHints()" :placeholder="$root.getLz('term.search') + '...'" v-model="search.term"
|
{{
|
||||||
ref="searchInput" class="search-input">
|
mk.nowPlayingItem["attributes"]["albumName"]
|
||||||
|
? mk.nowPlayingItem["attributes"]["albumName"]
|
||||||
<div class="search-hints-container" v-if="search.showHints && search.hints.length != 0">
|
: ""
|
||||||
<div class="search-hints">
|
}}
|
||||||
<button class="search-hint text-overflow-elipsis" v-for="hint in search.hints"
|
|
||||||
@click="search.term = hint;search.showHints = false;searchQuery(hint)">
|
|
||||||
{{ hint }}
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="song-progress">
|
||||||
|
<div
|
||||||
|
class="song-duration"
|
||||||
|
style="justify-content: space-between; height: 1px"
|
||||||
|
:style="[chrome.progresshover ? {'display': 'flex'} : {'display' : 'none'} ]"
|
||||||
|
>
|
||||||
|
<p style="width: auto">{{ convertTime(getSongProgress()) }}</p>
|
||||||
|
<p style="width: auto">
|
||||||
|
{{ convertTime(mk.currentPlaybackDuration) }}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<input
|
||||||
|
type="range"
|
||||||
|
step="0.01"
|
||||||
|
min="0"
|
||||||
|
:style="progressBarStyle()"
|
||||||
|
@input="playerLCD.desiredDuration = $event.target.value;playerLCD.userInteraction = true"
|
||||||
|
@mouseup="mk.seekToTime($event.target.value);setTimeout(()=>{playerLCD.desiredDuration = 0;playerLCD.userInteraction = false}, 1000);"
|
||||||
|
@touchend="mk.seekToTime($event.target.value);setTimeout(()=>{playerLCD.desiredDuration = 0;playerLCD.userInteraction = false}, 1000);"
|
||||||
|
:max="mk.currentPlaybackDuration"
|
||||||
|
:value="getSongProgress()"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<template v-if="mk.nowPlayingItem['attributes']['playParams']">
|
||||||
|
<div class="actions">
|
||||||
|
<button
|
||||||
|
class="lcdMenu"
|
||||||
|
@click="nowPlayingContextMenu"
|
||||||
|
:title="$root.getLz('term.more')"
|
||||||
|
v-b-tooltip.hover
|
||||||
|
>
|
||||||
|
<div class="svg-icon"></div>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
</template>
|
||||||
</div>
|
</div>
|
||||||
<div class="app-chrome--right">
|
<div class="app-chrome-item" v-else>
|
||||||
<template v-if="getThemeDirective('windowLayout') != 'twopanel'">
|
<div class="top-nav-group">
|
||||||
<div class="app-chrome-item volume display--large">
|
<sidebar-library-item
|
||||||
<button class="volume-button--small volume" @click="muteButtonPressed()"
|
:name="$root.getLz('home.title')"
|
||||||
:class="{'active': this.cfg.audio.volume == 0}"
|
svg-icon="./assets/feather/home.svg"
|
||||||
:title="cfg.audio.muted ? $root.getLz('term.unmute') : $root.getLz('term.mute')"
|
page="home"
|
||||||
v-b-tooltip.hover></button>
|
>
|
||||||
<input type="range" @wheel="volumeWheel" :step="cfg.audio.volumeStep" min="0" :max="cfg.audio.maxVolume"
|
</sidebar-library-item>
|
||||||
v-model="mk.volume" v-if="typeof mk.volume != 'undefined'" @change="checkMuteChange()"
|
<sidebar-library-item
|
||||||
v-b-tooltip.hover :title="formatVolumeTooltip()">
|
:name="$root.getLz('term.listenNow')"
|
||||||
</div>
|
svg-icon="./assets/feather/play-circle.svg"
|
||||||
<div class="app-chrome-item generic">
|
page="listen_now"
|
||||||
<button class="playback-button--small cast"
|
></sidebar-library-item>
|
||||||
:title="$root.getLz('term.cast')"
|
<sidebar-library-item
|
||||||
@click="cfg.advanced.AudioContext ? modals.castMenu = true : $root.notyf.error($root.getLz('settings.warn.enableAdvancedFunctionality'))"
|
:name="$root.getLz('term.browse')"
|
||||||
v-b-tooltip.hover
|
svg-icon="./assets/feather/globe.svg"
|
||||||
></button>
|
page="browse"
|
||||||
</div>
|
>
|
||||||
<div class="app-chrome-item generic">
|
</sidebar-library-item>
|
||||||
<button class="playback-button--small queue"
|
<sidebar-library-item
|
||||||
:title="$root.getLz('term.queue')"
|
:name="$root.getLz('term.radio')"
|
||||||
v-b-tooltip.hover
|
svg-icon="./assets/feather/radio.svg"
|
||||||
:class="{'active': drawer.panel == 'queue'}"
|
page="radio"
|
||||||
@click="invokeDrawer('queue')"></button>
|
></sidebar-library-item>
|
||||||
</div>
|
</div>
|
||||||
<div class="app-chrome-item generic">
|
</div>
|
||||||
<template v-if="lyrics && lyrics != [] && lyrics.length > 0">
|
</div>
|
||||||
<button class="playback-button--small lyrics"
|
<div class="app-chrome--right">
|
||||||
:title="$root.getLz('term.lyrics')"
|
<template v-if="getThemeDirective('windowLayout') != 'twopanel'">
|
||||||
v-b-tooltip.hover
|
<div class="app-chrome-item volume display--large">
|
||||||
:class="{'active': drawer.panel == 'lyrics'}"
|
<button
|
||||||
@click="invokeDrawer('lyrics')"></button>
|
class="volume-button--small volume"
|
||||||
</template>
|
@click="muteButtonPressed()"
|
||||||
<template v-else>
|
:class="{'active': this.cfg.audio.volume == 0}"
|
||||||
<button class="playback-button--small lyrics"
|
:title="cfg.audio.muted ? $root.getLz('term.unmute') : $root.getLz('term.mute')"
|
||||||
:style="{'opacity': 0.3, 'pointer-events': 'none'}"></button>
|
v-b-tooltip.hover
|
||||||
</template>
|
></button>
|
||||||
</div>
|
<input
|
||||||
|
type="range"
|
||||||
|
@wheel="volumeWheel"
|
||||||
|
:step="cfg.audio.volumeStep"
|
||||||
|
min="0"
|
||||||
|
:max="cfg.audio.maxVolume"
|
||||||
|
v-model="mk.volume"
|
||||||
|
v-if="typeof mk.volume != 'undefined'"
|
||||||
|
@change="checkMuteChange()"
|
||||||
|
v-b-tooltip.hover
|
||||||
|
:title="formatVolumeTooltip()"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="app-chrome-item generic">
|
||||||
|
<button
|
||||||
|
class="playback-button--small cast"
|
||||||
|
:title="$root.getLz('term.cast')"
|
||||||
|
@click="cfg.advanced.AudioContext ? modals.castMenu = true : $root.notyf.error($root.getLz('settings.warn.enableAdvancedFunctionality'))"
|
||||||
|
v-b-tooltip.hover
|
||||||
|
></button>
|
||||||
|
</div>
|
||||||
|
<div class="app-chrome-item generic">
|
||||||
|
<button
|
||||||
|
class="playback-button--small queue"
|
||||||
|
:title="$root.getLz('term.queue')"
|
||||||
|
v-b-tooltip.hover
|
||||||
|
:class="{'active': drawer.panel == 'queue'}"
|
||||||
|
@click="invokeDrawer('queue')"
|
||||||
|
></button>
|
||||||
|
</div>
|
||||||
|
<div class="app-chrome-item generic">
|
||||||
|
<template v-if="lyrics && lyrics != [] && lyrics.length > 0">
|
||||||
|
<button
|
||||||
|
class="playback-button--small lyrics"
|
||||||
|
:title="$root.getLz('term.lyrics')"
|
||||||
|
v-b-tooltip.hover
|
||||||
|
:class="{'active': drawer.panel == 'lyrics'}"
|
||||||
|
@click="invokeDrawer('lyrics')"
|
||||||
|
></button>
|
||||||
</template>
|
</template>
|
||||||
<div class="app-chrome-item full-height" id="window-controls-container"
|
<template v-else>
|
||||||
v-if="chrome.windowControlPosition == 'right' && !chrome.nativeControls">
|
<button
|
||||||
<div class="window-controls">
|
class="playback-button--small lyrics"
|
||||||
<div class="minimize" @click="ipcRenderer.send('minimize')"></div>
|
:style="{'opacity': 0.3, 'pointer-events': 'none'}"
|
||||||
<div class="minmax restore" v-if="chrome.maximized"
|
></button>
|
||||||
@click="ipcRenderer.send('maximize')">
|
</template>
|
||||||
</div>
|
</div>
|
||||||
<div class="minmax" v-else @click="ipcRenderer.send('maximize')"></div>
|
</template>
|
||||||
<div class="close" @click="ipcRenderer.send('close')"></div>
|
<template v-else>
|
||||||
|
<div class="app-chrome-item">
|
||||||
|
<div class="search-input-container">
|
||||||
|
<div class="search-input--icon"></div>
|
||||||
|
<input
|
||||||
|
type="search"
|
||||||
|
spellcheck="false"
|
||||||
|
@click="showSearch()"
|
||||||
|
@focus="search.showHints = true"
|
||||||
|
@blur="setTimeout(()=>{search.showHints = false}, 300)"
|
||||||
|
v-on:keyup.enter="searchQuery();search.showHints = false"
|
||||||
|
@change="showSearch();"
|
||||||
|
@input="getSearchHints()"
|
||||||
|
:placeholder="$root.getLz('term.search') + '...'"
|
||||||
|
v-model="search.term"
|
||||||
|
ref="searchInput"
|
||||||
|
class="search-input"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<div
|
||||||
|
class="search-hints-container"
|
||||||
|
v-if="search.showHints && search.hints.length != 0"
|
||||||
|
>
|
||||||
|
<div class="search-hints">
|
||||||
|
<button
|
||||||
|
class="search-hint text-overflow-elipsis"
|
||||||
|
v-for="hint in search.hints"
|
||||||
|
@click="search.term = hint;search.showHints = false;searchQuery(hint)"
|
||||||
|
>
|
||||||
|
{{ hint }}
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="app-chrome-item full-height" v-else-if="platform != 'darwin' && !chrome.nativeControls">
|
</div>
|
||||||
<button class="app-mainmenu"
|
</template>
|
||||||
@blur="mainMenuVisibility(false)"
|
<div
|
||||||
@click="mainMenuVisibility(true)"
|
class="app-chrome-item full-height"
|
||||||
:class="{active: chrome.menuOpened}"></button>
|
id="window-controls-container"
|
||||||
</div>
|
v-if="chrome.windowControlPosition == 'right' && !chrome.nativeControls"
|
||||||
|
>
|
||||||
|
<div class="window-controls">
|
||||||
|
<div class="minimize" @click="ipcRenderer.send('minimize')"></div>
|
||||||
|
<div
|
||||||
|
class="minmax restore"
|
||||||
|
v-if="chrome.maximized"
|
||||||
|
@click="ipcRenderer.send('maximize')"
|
||||||
|
></div>
|
||||||
|
<div class="minmax" v-else @click="ipcRenderer.send('maximize')"></div>
|
||||||
|
<div class="close" @click="ipcRenderer.send('close')"></div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div
|
||||||
|
class="app-chrome-item full-height"
|
||||||
|
v-else-if="platform != 'darwin' && !chrome.nativeControls"
|
||||||
|
>
|
||||||
|
<button
|
||||||
|
class="app-mainmenu"
|
||||||
|
@blur="mainMenuVisibility(false)"
|
||||||
|
@click="mainMenuVisibility(true)"
|
||||||
|
:class="{active: chrome.menuOpened}"
|
||||||
|
></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -22,30 +22,34 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<div class="app-sidebar-content" scrollaxis="y">
|
<div class="app-sidebar-content" scrollaxis="y">
|
||||||
<div class="app-sidebar-header-text"
|
<!-- AM Navigation -->
|
||||||
@click="cfg.general.sidebarCollapsed.cider = !cfg.general.sidebarCollapsed.cider"
|
<template v-if="getThemeDirective('windowLayout') != 'twopanel'">
|
||||||
:class="{collapsed: cfg.general.sidebarCollapsed.cider}">
|
<div class="app-sidebar-header-text"
|
||||||
{{$root.getLz('app.name')}}
|
@click="cfg.general.sidebarCollapsed.cider = !cfg.general.sidebarCollapsed.cider"
|
||||||
</div>
|
:class="{collapsed: cfg.general.sidebarCollapsed.cider}">
|
||||||
<template v-if="!cfg.general.sidebarCollapsed.cider">
|
{{$root.getLz('app.name')}}
|
||||||
<sidebar-library-item :name="$root.getLz('home.title')" svg-icon="./assets/feather/home.svg" page="home">
|
</div>
|
||||||
</sidebar-library-item>
|
<template v-if="!cfg.general.sidebarCollapsed.cider">
|
||||||
|
<sidebar-library-item :name="$root.getLz('home.title')" svg-icon="./assets/feather/home.svg" page="home">
|
||||||
|
</sidebar-library-item>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<div class="app-sidebar-header-text"
|
||||||
|
@click="cfg.general.sidebarCollapsed.applemusic = !cfg.general.sidebarCollapsed.applemusic"
|
||||||
|
:class="{collapsed: cfg.general.sidebarCollapsed.applemusic}">
|
||||||
|
{{$root.getLz('term.appleMusic')}}
|
||||||
|
</div>
|
||||||
|
<template v-if="!cfg.general.sidebarCollapsed.applemusic">
|
||||||
|
<sidebar-library-item :name="$root.getLz('term.listenNow')" svg-icon="./assets/feather/play-circle.svg"
|
||||||
|
page="listen_now"></sidebar-library-item>
|
||||||
|
<sidebar-library-item :name="$root.getLz('term.browse')" svg-icon="./assets/feather/globe.svg"
|
||||||
|
page="browse">
|
||||||
|
</sidebar-library-item>
|
||||||
|
<sidebar-library-item :name="$root.getLz('term.radio')" svg-icon="./assets/feather/radio.svg"
|
||||||
|
page="radio"></sidebar-library-item>
|
||||||
|
</template>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<div class="app-sidebar-header-text"
|
|
||||||
@click="cfg.general.sidebarCollapsed.applemusic = !cfg.general.sidebarCollapsed.applemusic"
|
|
||||||
:class="{collapsed: cfg.general.sidebarCollapsed.applemusic}">
|
|
||||||
{{$root.getLz('term.appleMusic')}}
|
|
||||||
</div>
|
|
||||||
<template v-if="!cfg.general.sidebarCollapsed.applemusic">
|
|
||||||
<sidebar-library-item :name="$root.getLz('term.listenNow')" svg-icon="./assets/feather/play-circle.svg"
|
|
||||||
page="listen_now"></sidebar-library-item>
|
|
||||||
<sidebar-library-item :name="$root.getLz('term.browse')" svg-icon="./assets/feather/globe.svg"
|
|
||||||
page="browse">
|
|
||||||
</sidebar-library-item>
|
|
||||||
<sidebar-library-item :name="$root.getLz('term.radio')" svg-icon="./assets/feather/radio.svg"
|
|
||||||
page="radio"></sidebar-library-item>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<div class="app-sidebar-header-text"
|
<div class="app-sidebar-header-text"
|
||||||
@click="cfg.general.sidebarCollapsed.library = !cfg.general.sidebarCollapsed.library"
|
@click="cfg.general.sidebarCollapsed.library = !cfg.general.sidebarCollapsed.library"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue