mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-04-21 00:32:04 +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;
|
setLogoLoadError: (error: boolean) => void;
|
||||||
groupedEpisodes?: { [seasonNumber: number]: any[] };
|
groupedEpisodes?: { [seasonNumber: number]: any[] };
|
||||||
dynamicBackgroundColor?: string;
|
dynamicBackgroundColor?: string;
|
||||||
|
handleBack: () => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ultra-optimized ActionButtons Component - minimal re-renders
|
// Ultra-optimized ActionButtons Component - minimal re-renders
|
||||||
|
|
@ -679,6 +680,7 @@ const HeroSection: React.FC<HeroSectionProps> = memo(({
|
||||||
setLogoLoadError,
|
setLogoLoadError,
|
||||||
groupedEpisodes,
|
groupedEpisodes,
|
||||||
dynamicBackgroundColor,
|
dynamicBackgroundColor,
|
||||||
|
handleBack,
|
||||||
}) => {
|
}) => {
|
||||||
const { currentTheme } = useTheme();
|
const { currentTheme } = useTheme();
|
||||||
const { isAuthenticated: isTraktAuthenticated } = useTraktContext();
|
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 */}
|
{/* Ultra-light Gradient with subtle dynamic background blend */}
|
||||||
<LinearGradient
|
<LinearGradient
|
||||||
colors={[
|
colors={[
|
||||||
|
|
@ -1025,6 +1038,20 @@ const styles = StyleSheet.create({
|
||||||
right: 0,
|
right: 0,
|
||||||
bottom: 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: {
|
heroGradient: {
|
||||||
flex: 1,
|
flex: 1,
|
||||||
justifyContent: 'flex-end',
|
justifyContent: 'flex-end',
|
||||||
|
|
|
||||||
|
|
@ -579,6 +579,7 @@ const MetadataScreen: React.FC = () => {
|
||||||
setLogoLoadError={assetData.setLogoLoadError}
|
setLogoLoadError={assetData.setLogoLoadError}
|
||||||
groupedEpisodes={groupedEpisodes}
|
groupedEpisodes={groupedEpisodes}
|
||||||
dynamicBackgroundColor={dynamicBackgroundColor}
|
dynamicBackgroundColor={dynamicBackgroundColor}
|
||||||
|
handleBack={handleBack}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* Main Content - Optimized */}
|
{/* Main Content - Optimized */}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue