mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-16 20:52:06 +00:00
fix(plugins): fix many bugs (in-app-menu, album-color-theme, blur-nav-bar)
This commit is contained in:
@ -186,7 +186,6 @@ export default createPlugin<
|
|||||||
|
|
||||||
document.body.style.setProperty('background', this.getMixedColor('#030303', COLOR_KEY), 'important');
|
document.body.style.setProperty('background', this.getMixedColor('#030303', COLOR_KEY), 'important');
|
||||||
document.documentElement.style.setProperty('--ytmusic-background', this.getMixedColor('#030303', DARK_COLOR_KEY), 'important');
|
document.documentElement.style.setProperty('--ytmusic-background', this.getMixedColor('#030303', DARK_COLOR_KEY), 'important');
|
||||||
document.documentElement.style.setProperty('--ytmusic-nav-bar', this.getMixedColor('#030303', DARK_COLOR_KEY), 'important');
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@ -53,15 +53,19 @@ ytmusic-app-layout > [slot='player-page'] {
|
|||||||
.icon.ytmusic-menu-navigation-item-renderer {
|
.icon.ytmusic-menu-navigation-item-renderer {
|
||||||
color: rgba(255, 255, 255, 0.5) !important;
|
color: rgba(255, 255, 255, 0.5) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu.ytmusic-player-bar {
|
.menu.ytmusic-player-bar {
|
||||||
--iron-icon-fill-color: rgba(255, 255, 255, 0.5) !important;
|
--iron-icon-fill-color: rgba(255, 255, 255, 0.5) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
ytmusic-player-bar {
|
ytmusic-player-bar {
|
||||||
color: rgba(255, 255, 255, 0.5) !important;
|
color: rgba(255, 255, 255, 0.5) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.time-info.ytmusic-player-bar {
|
.time-info.ytmusic-player-bar {
|
||||||
color: rgba(255, 255, 255, 0.5) !important;
|
color: rgba(255, 255, 255, 0.5) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.volume-slider.ytmusic-player-bar, .expand-volume-slider.ytmusic-player-bar {
|
.volume-slider.ytmusic-player-bar, .expand-volume-slider.ytmusic-player-bar {
|
||||||
--paper-slider-container-color: rgba(255, 255, 255, 0.5) !important;
|
--paper-slider-container-color: rgba(255, 255, 255, 0.5) !important;
|
||||||
}
|
}
|
||||||
@ -70,12 +74,16 @@ ytmusic-player-bar {
|
|||||||
ytmusic-fullbleed-thumbnail-renderer img {
|
ytmusic-fullbleed-thumbnail-renderer img {
|
||||||
mask: linear-gradient(to bottom, #000 0%, #000 50%, transparent 100%);
|
mask: linear-gradient(to bottom, #000 0%, #000 50%, transparent 100%);
|
||||||
}
|
}
|
||||||
.background-gradient.style-scope {
|
|
||||||
|
.background-gradient.style-scope,
|
||||||
|
ytmusic-app-layout[is-bauhaus-sidenav-enabled] #mini-guide-background.ytmusic-app-layout {
|
||||||
background: var(--ytmusic-background) !important;
|
background: var(--ytmusic-background) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
ytmusic-browse-response[has-background]:not([disable-gradient]) .background-gradient.ytmusic-browse-response {
|
ytmusic-browse-response[has-background]:not([disable-gradient]) .background-gradient.ytmusic-browse-response {
|
||||||
background: unset !important;
|
background: unset !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#background.immersive-background.style-scope.ytmusic-browse-response {
|
#background.immersive-background.style-scope.ytmusic-browse-response {
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,11 +1,24 @@
|
|||||||
import { createPlugin } from '@/utils';
|
import { createPlugin } from '@/utils';
|
||||||
import style from './style.css?inline';
|
|
||||||
import { t } from '@/i18n';
|
import { t } from '@/i18n';
|
||||||
|
|
||||||
|
import style from './style.css?inline';
|
||||||
|
|
||||||
export default createPlugin({
|
export default createPlugin({
|
||||||
name: () => t('plugins.blur-nav-bar.name'),
|
name: () => t('plugins.blur-nav-bar.name'),
|
||||||
description: () => t('plugins.blur-nav-bar.description'),
|
description: () => t('plugins.blur-nav-bar.description'),
|
||||||
restartNeeded: true,
|
restartNeeded: false,
|
||||||
stylesheets: [style],
|
renderer: {
|
||||||
renderer() {},
|
styleSheet: null as CSSStyleSheet | null,
|
||||||
|
|
||||||
|
async start() {
|
||||||
|
this.styleSheet = new CSSStyleSheet();
|
||||||
|
await this.styleSheet.replace(style);
|
||||||
|
|
||||||
|
document.adoptedStyleSheets = [...document.adoptedStyleSheets, this.styleSheet];
|
||||||
|
},
|
||||||
|
async stop() {
|
||||||
|
await this.styleSheet?.replace('');
|
||||||
|
},
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@ -4,6 +4,8 @@ import { css } from 'solid-styled-components';
|
|||||||
import { cache } from '@/providers/decorators';
|
import { cache } from '@/providers/decorators';
|
||||||
|
|
||||||
const iconButton = cache(() => css`
|
const iconButton = cache(() => css`
|
||||||
|
-webkit-app-region: none;
|
||||||
|
|
||||||
background: transparent;
|
background: transparent;
|
||||||
|
|
||||||
width: 24px;
|
width: 24px;
|
||||||
|
|||||||
Reference in New Issue
Block a user