mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-03-11 17:45:38 +00:00
some ui changes
This commit is contained in:
parent
3f57a19ea2
commit
a0714193be
2 changed files with 28 additions and 0 deletions
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -579,6 +579,7 @@ const MetadataScreen: React.FC = () => {
|
|||
setLogoLoadError={assetData.setLogoLoadError}
|
||||
groupedEpisodes={groupedEpisodes}
|
||||
dynamicBackgroundColor={dynamicBackgroundColor}
|
||||
handleBack={handleBack}
|
||||
/>
|
||||
|
||||
{/* Main Content - Optimized */}
|
||||
|
|
|
|||
Loading…
Reference in a new issue