small ui fix

This commit is contained in:
tapframe 2025-08-08 18:57:16 +05:30
parent f43d113f56
commit 2a320e5a00

View file

@ -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]);