mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 21:28:06 +00:00
fix: bugs
This commit is contained in:
parent
7efe109c83
commit
752d7cb482
7 changed files with 20 additions and 9 deletions
|
|
@ -97,8 +97,8 @@ class Background {
|
||||||
console.log("creating app window");
|
console.log("creating app window");
|
||||||
|
|
||||||
this.window = new BrowserWindow({
|
this.window = new BrowserWindow({
|
||||||
width: this.store.get("window.width") | 1440,
|
width: this.store.get("window.width") || 1440,
|
||||||
height: this.store.get("window.height") | 840,
|
height: this.store.get("window.height") || 840,
|
||||||
minWidth: 1080,
|
minWidth: 1080,
|
||||||
minHeight: 720,
|
minHeight: 720,
|
||||||
titleBarStyle: "hiddenInset",
|
titleBarStyle: "hiddenInset",
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,6 @@ button {
|
||||||
}
|
}
|
||||||
&:hover {
|
&:hover {
|
||||||
background: var(--color-secondary-bg-for-transparent);
|
background: var(--color-secondary-bg-for-transparent);
|
||||||
opacity: 0.88;
|
|
||||||
}
|
}
|
||||||
&:active {
|
&:active {
|
||||||
transform: scale(0.92);
|
transform: scale(0.92);
|
||||||
|
|
|
||||||
|
|
@ -105,7 +105,7 @@ img {
|
||||||
.cover-hover {
|
.cover-hover {
|
||||||
&:hover {
|
&:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transform: scale(1.02);
|
/* transform: scale(1.02); */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -124,8 +124,9 @@ img {
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
color: white;
|
color: white;
|
||||||
backdrop-filter: blur(12px) brightness(96%);
|
backdrop-filter: blur(8px);
|
||||||
background: transparent;
|
background: rgba(255, 255, 255, 0.14);
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||||
height: 22%;
|
height: 22%;
|
||||||
width: 22%;
|
width: 22%;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
|
|
@ -138,7 +139,7 @@ img {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&:hover {
|
&:hover {
|
||||||
transform: scale(1.06);
|
background: rgba(255, 255, 255, 0.28);
|
||||||
}
|
}
|
||||||
&:active {
|
&:active {
|
||||||
transform: scale(0.94);
|
transform: scale(0.94);
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,12 @@
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
:class="{ artist: type === 'artist' }"
|
:class="{ artist: type === 'artist' }"
|
||||||
>
|
>
|
||||||
<Cover :imageUrl="getImageUrl(item)" :type="type" :id="item.id" />
|
<Cover
|
||||||
|
:imageUrl="getImageUrl(item)"
|
||||||
|
:type="type"
|
||||||
|
:id="item.id"
|
||||||
|
:playButtonSize="type === 'artist' ? 26 : 22"
|
||||||
|
/>
|
||||||
<div class="text">
|
<div class="text">
|
||||||
<div class="info" v-if="showPlayCount">
|
<div class="info" v-if="showPlayCount">
|
||||||
<span class="play-count"
|
<span class="play-count"
|
||||||
|
|
|
||||||
|
|
@ -132,6 +132,9 @@ export default {
|
||||||
&:hover {
|
&:hover {
|
||||||
background: rgba(255, 255, 255, 0.44);
|
background: rgba(255, 255, 255, 0.44);
|
||||||
}
|
}
|
||||||
|
&:active {
|
||||||
|
transform: scale(0.94);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes move {
|
@keyframes move {
|
||||||
|
|
|
||||||
|
|
@ -313,6 +313,7 @@ nav {
|
||||||
padding: 6px 10px;
|
padding: 6px 10px;
|
||||||
color: var(--color-text);
|
color: var(--color-text);
|
||||||
transition: 0.2s;
|
transition: 0.2s;
|
||||||
|
-webkit-user-drag: none;
|
||||||
margin: {
|
margin: {
|
||||||
right: 12px;
|
right: 12px;
|
||||||
left: 12px;
|
left: 12px;
|
||||||
|
|
@ -404,6 +405,8 @@ nav {
|
||||||
vertical-align: -7px;
|
vertical-align: -7px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
-webkit-app-region: no-drag;
|
||||||
|
-webkit-user-drag: none;
|
||||||
&:hover {
|
&:hover {
|
||||||
filter: brightness(80%);
|
filter: brightness(80%);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ export function getSendSettingsPlugin() {
|
||||||
const ipcRenderer = electron.ipcRenderer;
|
const ipcRenderer = electron.ipcRenderer;
|
||||||
return (store) => {
|
return (store) => {
|
||||||
store.subscribe((mutation, state) => {
|
store.subscribe((mutation, state) => {
|
||||||
console.log(mutation);
|
// console.log(mutation);
|
||||||
if (mutation.type !== "updateSettings") return;
|
if (mutation.type !== "updateSettings") return;
|
||||||
ipcRenderer.send("settings", {
|
ipcRenderer.send("settings", {
|
||||||
minimizeToTray: state.settings.minimizeToTray,
|
minimizeToTray: state.settings.minimizeToTray,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue