fix(album-color-theme): use 30 instead of 25

This commit is contained in:
JellyBrick
2023-09-30 15:16:46 +09:00
parent 92ecf6a0b0
commit 8fd6bdbdf3

View File

@ -77,7 +77,7 @@ export default () => {
if (mutation.type === 'attributes') { if (mutation.type === 'attributes') {
const isPageOpen = ytmusicAppLayout?.hasAttribute('player-page-open'); const isPageOpen = ytmusicAppLayout?.hasAttribute('player-page-open');
if (isPageOpen) { if (isPageOpen) {
changeElementColor(sidebarSmall, hue, saturation, lightness - 25); changeElementColor(sidebarSmall, hue, saturation, lightness - 30);
} else { } else {
if (sidebarSmall) { if (sidebarSmall) {
sidebarSmall.style.backgroundColor = 'black'; sidebarSmall.style.backgroundColor = 'black';
@ -94,13 +94,13 @@ export default () => {
ipcRenderer.on('album-color-changed', (_, albumColor: FastAverageColorResult) => { ipcRenderer.on('album-color-changed', (_, albumColor: FastAverageColorResult) => {
if (albumColor) { if (albumColor) {
[hue, saturation, lightness] = hexToHSL(albumColor.hex); [hue, saturation, lightness] = hexToHSL(albumColor.hex);
changeElementColor(playerPage, hue, saturation, lightness - 25); changeElementColor(playerPage, hue, saturation, lightness - 30);
changeElementColor(navBarBackground, hue, saturation, lightness - 15); changeElementColor(navBarBackground, hue, saturation, lightness - 15);
changeElementColor(ytmusicPlayerBar, hue, saturation, lightness - 15); changeElementColor(ytmusicPlayerBar, hue, saturation, lightness - 15);
changeElementColor(playerBarBackground, hue, saturation, lightness - 15); changeElementColor(playerBarBackground, hue, saturation, lightness - 15);
changeElementColor(sidebarBig, hue, saturation, lightness - 15); changeElementColor(sidebarBig, hue, saturation, lightness - 15);
if (ytmusicAppLayout?.hasAttribute('player-page-open')) { if (ytmusicAppLayout?.hasAttribute('player-page-open')) {
changeElementColor(sidebarSmall, hue, saturation, lightness - 25); changeElementColor(sidebarSmall, hue, saturation, lightness - 30);
} }
const ytRightClickList = document.querySelector<HTMLElement>('tp-yt-paper-listbox'); const ytRightClickList = document.querySelector<HTMLElement>('tp-yt-paper-listbox');
changeElementColor(ytRightClickList, hue, saturation, lightness - 15); changeElementColor(ytRightClickList, hue, saturation, lightness - 15);