mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-04-21 08:41:57 +00:00
small ui fix
This commit is contained in:
parent
f43d113f56
commit
2a320e5a00
1 changed files with 4 additions and 4 deletions
|
|
@ -124,14 +124,14 @@ const MetadataScreen: React.FC = () => {
|
||||||
if (dominantColor && dominantColor !== '#1a1a1a' && dominantColor !== null && dominantColor !== currentTheme.colors.darkBackground) {
|
if (dominantColor && dominantColor !== '#1a1a1a' && dominantColor !== null && dominantColor !== currentTheme.colors.darkBackground) {
|
||||||
// Smoothly transition to the new color
|
// Smoothly transition to the new color
|
||||||
backgroundColorShared.value = withTiming(dominantColor, {
|
backgroundColorShared.value = withTiming(dominantColor, {
|
||||||
duration: 800, // Longer duration for smoother transition
|
duration: 300, // Faster appearance
|
||||||
easing: Easing.bezier(0.25, 0.1, 0.25, 1), // Smooth easing curve
|
easing: Easing.out(Easing.cubic), // Smooth out easing
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
// Transition back to theme background if needed
|
// Transition back to theme background if needed
|
||||||
backgroundColorShared.value = withTiming(currentTheme.colors.darkBackground, {
|
backgroundColorShared.value = withTiming(currentTheme.colors.darkBackground, {
|
||||||
duration: 800,
|
duration: 300,
|
||||||
easing: Easing.bezier(0.25, 0.1, 0.25, 1),
|
easing: Easing.out(Easing.cubic),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}, [dominantColor, currentTheme.colors.darkBackground]);
|
}, [dominantColor, currentTheme.colors.darkBackground]);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue