mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-05-23 22:37:41 +08:00
优化UI配色
This commit is contained in:
parent
fc8f49b351
commit
4ca090616b
@ -8,7 +8,7 @@ const LrcLine = memo(({ text, line, activeLine }) => {
|
|||||||
const theme = useGetter('common', 'theme')
|
const theme = useGetter('common', 'theme')
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Text style={{ ...styles.line, color: activeLine == line ? theme.secondary : theme.normal10 }}>{text}</Text>
|
<Text style={{ ...styles.line, color: activeLine == line ? theme.secondary : theme.normal30 }}>{text}</Text>
|
||||||
)
|
)
|
||||||
}, (prevProps, nextProps) => {
|
}, (prevProps, nextProps) => {
|
||||||
return prevProps.text == nextProps.text &&
|
return prevProps.text == nextProps.text &&
|
||||||
|
@ -16,7 +16,7 @@ export default memo(() => {
|
|||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [playMusicInfo])
|
}, [playMusicInfo])
|
||||||
|
|
||||||
const imgWidth = useMemo(() => layout.width * 0.75, [layout.width])
|
const imgWidth = useMemo(() => layout.width * 0.8, [layout.width])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={styles.container} onLayout={onLayout}>
|
<View style={styles.container} onLayout={onLayout}>
|
||||||
|
@ -21,8 +21,8 @@ export default () => {
|
|||||||
// console.log(playMusicInfo)
|
// console.log(playMusicInfo)
|
||||||
return (
|
return (
|
||||||
<View style={styles.container}>
|
<View style={styles.container}>
|
||||||
<Text style={{ width: '100%', fontSize: 14, color: theme.normal }} numberOfLines={2}>{titleInfo.name}</Text>
|
<Text style={{ width: '100%', fontSize: 14, color: theme.normal20 }} numberOfLines={2}>{titleInfo.name}</Text>
|
||||||
<Text style={{ width: '100%', fontSize: 14, color: theme.normal }} numberOfLines={2}>{titleInfo.singer}</Text>
|
<Text style={{ width: '100%', fontSize: 14, color: theme.normal20 }} numberOfLines={2}>{titleInfo.singer}</Text>
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user