some ui changes

This commit is contained in:
tapframe 2025-08-10 13:46:05 +05:30
parent 3f57a19ea2
commit a0714193be
2 changed files with 28 additions and 0 deletions

View file

@ -71,6 +71,7 @@ interface HeroSectionProps {
setLogoLoadError: (error: boolean) => void;
groupedEpisodes?: { [seasonNumber: number]: any[] };
dynamicBackgroundColor?: string;
handleBack: () => void;
}
// Ultra-optimized ActionButtons Component - minimal re-renders
@ -679,6 +680,7 @@ const HeroSection: React.FC<HeroSectionProps> = memo(({
setLogoLoadError,
groupedEpisodes,
dynamicBackgroundColor,
handleBack,
}) => {
const { currentTheme } = useTheme();
const { isAuthenticated: isTraktAuthenticated } = useTraktContext();
@ -924,6 +926,17 @@ const HeroSection: React.FC<HeroSectionProps> = memo(({
/>
)}
<Animated.View style={styles.backButtonContainer}>
<TouchableOpacity style={styles.backButton} onPress={handleBack}>
<MaterialIcons
name="arrow-back"
size={28}
color="#fff"
style={styles.backButtonIcon}
/>
</TouchableOpacity>
</Animated.View>
{/* Ultra-light Gradient with subtle dynamic background blend */}
<LinearGradient
colors={[
@ -1025,6 +1038,20 @@ const styles = StyleSheet.create({
right: 0,
bottom: 0,
},
backButtonContainer: {
position: 'absolute',
top: Platform.OS === 'android' ? 40 : 50,
left: 16,
zIndex: 10,
},
backButton: {
padding: 8,
},
backButtonIcon: {
textShadowColor: 'rgba(0, 0, 0, 0.75)',
textShadowOffset: { width: 0, height: 2 },
textShadowRadius: 3,
},
heroGradient: {
flex: 1,
justifyContent: 'flex-end',

View file

@ -579,6 +579,7 @@ const MetadataScreen: React.FC = () => {
setLogoLoadError={assetData.setLogoLoadError}
groupedEpisodes={groupedEpisodes}
dynamicBackgroundColor={dynamicBackgroundColor}
handleBack={handleBack}
/>
{/* Main Content - Optimized */}