added <svg-icon/>
params: - url: string - url of the svg icon - name: string - the icon's name to help with theming
This commit is contained in:
parent
530d73ba81
commit
5309c987f0
5 changed files with 226 additions and 193 deletions
|
@ -64,7 +64,8 @@
|
||||||
overflow-y: overlay;
|
overflow-y: overlay;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-footer {}
|
.modal-footer {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,7 +75,9 @@
|
||||||
height: 700px;
|
height: 700px;
|
||||||
max-height: 700px;
|
max-height: 700px;
|
||||||
width: 800px;
|
width: 800px;
|
||||||
max-width : 800px;}
|
max-width: 800px;
|
||||||
|
}
|
||||||
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
.info-header {
|
.info-header {
|
||||||
|
@ -481,6 +484,7 @@
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
filter: blur(32px) brightness(50%) saturate(280%);
|
filter: blur(32px) brightness(50%) saturate(280%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.popover-artwork {
|
.popover-artwork {
|
||||||
width: 200px;
|
width: 200px;
|
||||||
height: 200px;
|
height: 200px;
|
||||||
|
@ -491,6 +495,7 @@
|
||||||
.song-name {
|
.song-name {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
.song-artist, .song-album {
|
.song-artist, .song-album {
|
||||||
opacity: 0.75;
|
opacity: 0.75;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
@ -501,3 +506,13 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
._svg-icon {
|
||||||
|
--icon: url("./assets/chevron-left.svg");
|
||||||
|
width: 1em;
|
||||||
|
height: 1em;
|
||||||
|
-webkit-mask-image: var(--icon);
|
||||||
|
-webkit-mask-position: center;
|
||||||
|
background: white;
|
||||||
|
-webkit-mask-repeat: no-repeat;
|
||||||
|
}
|
|
@ -7,6 +7,7 @@ import {Events} from './events.js'
|
||||||
import { wsapi } from "./wsapi_interop.js"
|
import { wsapi } from "./wsapi_interop.js"
|
||||||
import { MusicKitTools } from "./musickittools.js"
|
import { MusicKitTools } from "./musickittools.js"
|
||||||
import { spawnMica } from "./mica.js"
|
import { spawnMica } from "./mica.js"
|
||||||
|
import { svgIcon } from './components/svg-icon.js'
|
||||||
|
|
||||||
|
|
||||||
// Define window objects
|
// Define window objects
|
||||||
|
|
16
src/renderer/main/components/svg-icon.js
Normal file
16
src/renderer/main/components/svg-icon.js
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
export const svgIcon = Vue.component("svg-icon", {
|
||||||
|
template: `
|
||||||
|
<div class="_svg-icon" :svg-name="name" :style="{'--icon': 'url(' + url + ')'}"></div>
|
||||||
|
`,
|
||||||
|
props: {
|
||||||
|
name: {
|
||||||
|
type: String,
|
||||||
|
required: false
|
||||||
|
},
|
||||||
|
url: {
|
||||||
|
type: String,
|
||||||
|
required: true,
|
||||||
|
default: "./assets/repeat.svg"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
|
@ -6,7 +6,7 @@
|
||||||
<b-tabs class="no-style" pills vertical content-class="mt-3" v-model="$store.state.pageState['settings'].currentTabIndex">
|
<b-tabs class="no-style" pills vertical content-class="mt-3" v-model="$store.state.pageState['settings'].currentTabIndex">
|
||||||
<b-tab>
|
<b-tab>
|
||||||
<template #title>
|
<template #title>
|
||||||
<div>⚙️</div>
|
<div><svg-icon url="./assets/play.svg" name="settings-general" /></div>
|
||||||
<div>
|
<div>
|
||||||
{{ $root.getLz('settings.header.general') }}
|
{{ $root.getLz('settings.header.general') }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -234,7 +234,7 @@
|
||||||
</b-tab>
|
</b-tab>
|
||||||
<b-tab>
|
<b-tab>
|
||||||
<template #title>
|
<template #title>
|
||||||
<div>🔊</div>
|
<div><svg-icon url="./assets/play.svg" name="settings-audio" /></div>
|
||||||
<div>
|
<div>
|
||||||
{{ $root.getLz('settings.header.audio') }}
|
{{ $root.getLz('settings.header.audio') }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -372,7 +372,7 @@
|
||||||
</b-tab>
|
</b-tab>
|
||||||
<b-tab v-if="app.cfg.advanced.AudioContext">
|
<b-tab v-if="app.cfg.advanced.AudioContext">
|
||||||
<template #title>
|
<template #title>
|
||||||
<div>✨</div>
|
<div><svg-icon url="./assets/play.svg" name="settings-audiolabs" /></div>
|
||||||
<div>
|
<div>
|
||||||
{{ $root.getLz('settings.option.audio.audioLab') }}
|
{{ $root.getLz('settings.option.audio.audioLab') }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -383,7 +383,7 @@
|
||||||
</b-tab>
|
</b-tab>
|
||||||
<b-tab>
|
<b-tab>
|
||||||
<template #title>
|
<template #title>
|
||||||
<div>🎨</div>
|
<div><svg-icon url="./assets/play.svg" name="settings-visual" /></div>
|
||||||
<div>
|
<div>
|
||||||
{{ $root.getLz('settings.header.visual') }}
|
{{ $root.getLz('settings.header.visual') }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -624,7 +624,7 @@
|
||||||
</b-tab>
|
</b-tab>
|
||||||
<b-tab>
|
<b-tab>
|
||||||
<template #title>
|
<template #title>
|
||||||
<div>🎤</div>
|
<div><svg-icon url="./assets/play.svg" name="settings-lyrics" /></div>
|
||||||
<div>
|
<div>
|
||||||
{{ $root.getLz('settings.header.lyrics') }}
|
{{ $root.getLz('settings.header.lyrics') }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -963,7 +963,7 @@
|
||||||
</b-tab>
|
</b-tab>
|
||||||
<b-tab>
|
<b-tab>
|
||||||
<template #title>
|
<template #title>
|
||||||
<div>🔌</div>
|
<div><svg-icon url="./assets/play.svg" name="settings-connectivity" /></div>
|
||||||
<div>
|
<div>
|
||||||
{{ $root.getLz('settings.header.connectivity') }}
|
{{ $root.getLz('settings.header.connectivity') }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -1143,7 +1143,7 @@
|
||||||
</b-tab>
|
</b-tab>
|
||||||
<b-tab>
|
<b-tab>
|
||||||
<template #title>
|
<template #title>
|
||||||
<div>💻</div>
|
<div><svg-icon url="./assets/play.svg" name="settings-advanced" /></div>
|
||||||
<div>
|
<div>
|
||||||
{{$root.getLz('settings.header.advanced')}}
|
{{$root.getLz('settings.header.advanced')}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<script type="text/x-template" id="cider-zoo">
|
<script type="text/x-template" id="cider-zoo">
|
||||||
<div class="content-inner">
|
<div class="content-inner">
|
||||||
|
<svg-icon/>
|
||||||
<h3>Welcome to element park. *BERR NERR NERR NERR NERRRRR BERR NER NER NER NERRR BERRR NR NR NRRRR*</h3>
|
<h3>Welcome to element park. *BERR NERR NERR NERR NERRRRR BERR NER NER NER NERRR BERRR NR NR NRRRR*</h3>
|
||||||
<button @click="app.playMediaItemById('1592151778', 'album')">Play Test Album</button>
|
<button @click="app.playMediaItemById('1592151778', 'album')">Play Test Album</button>
|
||||||
{{ $store.state.test }}
|
{{ $store.state.test }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue