Hi! Does anyone know if it is possible to change o...
# compose-android
s
Hi! Does anyone know if it is possible to change only the text color of the status bar? I must develop a screen that is at full screen so the status bar background color is transparent but on the same screen if I scroll down, the status bar background color changes to white. I have attached two examples (these are for iOS but the behavior must be the same) I was able to change the background color but no the text 😅 thanks in advance! 🙂
s
Yes! I forgot to mention that, sorry 😅, I have used the function edgetoedge() but when I try to set the statusbarstyle to white color, nothing changes, I am not sure if that's works that way…
s
The color should be transparent, but perhaps the part that lets you pick if you're in dark mode or not will adjust the content color accordingly?
s
Hi @Stylianos Gakis the thing is that It’s not about light or dark mode, the thing is a screen that is displayed at full screen and there is an image “under” the status bar and the text of the status bar should be displayed in white, instead of black. And when I scroll down in that screen, it appears a toolbar with a white background, so at this moment, the status bar text must change the color to black, just to be visible.
s
Yes sorry I probably didn't explain it well. I meant that in dark mode, the system tries to add white content color, and in light mode dark system bar colors. So maybe you can use that fact to say that you are in dark/light mode according to what color you want your system bar content to be
s
Ohhh okay! I am sorry I didn’t understand before 😅 maybe I could try to set that programmatically, but now I am thinking that maybe that changes also the background of the status bar. Let me try and I would come back 🙂 thanks!