mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-03-11 17:45:38 +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) {
|
||||
// Smoothly transition to the new color
|
||||
backgroundColorShared.value = withTiming(dominantColor, {
|
||||
duration: 800, // Longer duration for smoother transition
|
||||
easing: Easing.bezier(0.25, 0.1, 0.25, 1), // Smooth easing curve
|
||||
duration: 300, // Faster appearance
|
||||
easing: Easing.out(Easing.cubic), // Smooth out easing
|
||||
});
|
||||
} else {
|
||||
// Transition back to theme background if needed
|
||||
backgroundColorShared.value = withTiming(currentTheme.colors.darkBackground, {
|
||||
duration: 800,
|
||||
easing: Easing.bezier(0.25, 0.1, 0.25, 1),
|
||||
duration: 300,
|
||||
easing: Easing.out(Easing.cubic),
|
||||
});
|
||||
}
|
||||
}, [dominantColor, currentTheme.colors.darkBackground]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue