mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
Adjust now playing header
This commit is contained in:
@@ -7,7 +7,7 @@ import { getHeaderColor } from '/@/utils';
|
|||||||
import { useTheme } from '/@/hooks';
|
import { useTheme } from '/@/hooks';
|
||||||
|
|
||||||
export const NowPlayingHeader = () => {
|
export const NowPlayingHeader = () => {
|
||||||
const [headerColor, setHeaderColor] = useState({ isDark: false, value: 'transparent' });
|
const [headerColor, setHeaderColor] = useState({ isDark: false, value: 'rgba(0, 0, 0, 0)' });
|
||||||
const currentSong = useCurrentSong();
|
const currentSong = useCurrentSong();
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
|
|
||||||
@@ -29,7 +29,7 @@ export const NowPlayingHeader = () => {
|
|||||||
const isDark = color.isDark;
|
const isDark = color.isDark;
|
||||||
setHeaderColor({
|
setHeaderColor({
|
||||||
isDark,
|
isDark,
|
||||||
value: getHeaderColor(color.rgb, theme === 'dark' ? 0.3 : 0.8),
|
value: getHeaderColor(color.rgb, theme === 'dark' ? 0.5 : 0.8),
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user