robercoding
01/12/2023, 4:16 PMrememberSystemUiController
from accompanist 0.29.0-alpha
and I'm trying to animate from Color.White
to Color.Black.copy(0.5f)
for the Screen along the Status Bar at the same time, so it gives a nice dim animation altogether.
But there's a small problem I'm facing
More info in the 🧵robercoding
01/12/2023, 4:16 PMColor.Black 0.5f
as expected, but wonder why it starts as if it was Color.Black and transitions to Color.Black 05f
instead of transitioning from Color.White
to Color.Black 0.5f
As it is:
This is how it's going right now.
• Screen: ✅
◦ Initial color: Color.White
◦ Starts animation: Color.White
◦ Ends animation: Color.Black.copy(0.5f)
• Status Bar: ❌
◦ Initial color: Color.White
◦ Starts animation: Color.Black
(Or more darker than the ending animation color)
◦ Ends animation: Color.Black.copy(0.5f)
Additional info:
• Both have the same source of truth, wonder if I'm missing something.
• I tried removing the default implementation for the transformColorForLightContent = { ... }
from the systemUi.statusBarColor(...)
but didn't work
• I'm using a DialogFragment
on top of it, but that shouldn't be a problem, right?
Any idea? 🤔robercoding
01/12/2023, 4:20 PMrobercoding
01/12/2023, 4:24 PMColor.Black
but it reaches to a darker point than the Screen even though they have the same source of truth 🤔Alex Vanyo
01/12/2023, 4:24 PMrobercoding
01/12/2023, 4:26 PMColor.Transparent
robercoding
01/12/2023, 4:48 PMrobercoding
01/12/2023, 4:49 PMAlex Vanyo
01/12/2023, 4:51 PMStylianos Gakis
01/13/2023, 11:19 AMrobercoding
01/14/2023, 7:53 AMScreen
was also getting the same color value and was being displayed correctly, so I'm assuming it might be something to do with the Status Bar
? However, I believe there might be some relation at some level with the issue you mentioned
I'm giving ➕ to the issue and will also remember the word "Alpha premultiplication" 😂
Thank you for sharing!