优化UI配色

This commit is contained in:
lyswhut 2021-05-21 23:34:04 +08:00
parent fc8f49b351
commit 4ca090616b
3 changed files with 4 additions and 4 deletions

View File

@ -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 &&

View File

@ -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}>

View File

@ -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>
) )
} }