mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-05-19 08:22:00 +00:00
IMDb logo and rating text styles when MDblist disabled
Updated IMDb logo display and adjusted text color based on current theme. keep it like before when only IMDb rating is show fixes issue #393
This commit is contained in:
parent
7bf3a344f3
commit
0e0e79cd50
1 changed files with 15 additions and 4 deletions
|
|
@ -233,13 +233,24 @@ const MetadataDetails: React.FC<MetadataDetailsProps> = ({
|
||||||
)}
|
)}
|
||||||
{metadata.imdbRating && !isMDBEnabled && (
|
{metadata.imdbRating && !isMDBEnabled && (
|
||||||
<View style={styles.ratingContainer}>
|
<View style={styles.ratingContainer}>
|
||||||
|
<FastImage
|
||||||
|
source={{ uri: 'https://upload.wikimedia.org/wikipedia/commons/6/69/IMDB_Logo_2016.svg' }}
|
||||||
|
style={[
|
||||||
|
styles.imdbLogo,
|
||||||
|
{
|
||||||
|
width: isTV ? 42 : isLargeTablet ? 38 : isTablet ? 35 : 35,
|
||||||
|
height: isTV ? 22 : isLargeTablet ? 20 : isTablet ? 18 : 22
|
||||||
|
}
|
||||||
|
]}
|
||||||
|
resizeMode={FastImage.resizeMode.contain}
|
||||||
|
/>
|
||||||
<Text style={[
|
<Text style={[
|
||||||
styles.ratingText,
|
styles.ratingText,
|
||||||
{
|
{
|
||||||
color: '#F5C518',
|
color: currentTheme.colors.text,
|
||||||
fontSize: isTV ? 18 : isLargeTablet ? 17 : isTablet ? 16 : 15
|
fontSize: isTV ? 18 : isLargeTablet ? 17 : isTablet ? 16 : 15
|
||||||
}
|
}
|
||||||
]}>{metadata.imdbRating}</Text>
|
]}> {metadata.imdbRating}</Text>
|
||||||
</View>
|
</View>
|
||||||
)}
|
)}
|
||||||
</View>
|
</View>
|
||||||
|
|
@ -463,7 +474,7 @@ const styles = StyleSheet.create({
|
||||||
imdbLogo: {
|
imdbLogo: {
|
||||||
width: 35,
|
width: 35,
|
||||||
height: 18,
|
height: 18,
|
||||||
marginRight: 4,
|
paddingHorizontal: 24,
|
||||||
},
|
},
|
||||||
ratingText: {
|
ratingText: {
|
||||||
fontWeight: '700',
|
fontWeight: '700',
|
||||||
|
|
@ -515,4 +526,4 @@ const styles = StyleSheet.create({
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
export default React.memo(MetadataDetails);
|
export default React.memo(MetadataDetails);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue