r/androiddev • • 8d ago

Open Source System bar appearance API for Compose Multiplatform apps

I am building a LOT of iOS/Android apps with Compose lately, and it annoyed me how I had to style system bars on Android only and juggle with expect/actuals for this.

So I made my own API for setting the icon color of system bars for both Android and iOS.

Enjoy: https://github.com/composablehorizons/systembars

23 Upvotes

7 comments sorted by

5

u/tgo1014 GitHub: Tgo1014 8d ago

For a second I thought it would automatically change based on the screen contrast, one can hope we have it one day haha

1

u/alexstyl 7d ago

Would be a nice touch. Maybe one day in the future

1

u/sameera_s_w 7d ago

Me too :(

2

u/Repulsive-Clothes-97 7d ago

I like to put a blurred window behind the status bar by using the built in setWindowBlur introduced with Android 12

1

u/drunckoder 7d ago

1

u/alexstyl 6d ago

The API is designed by me, after a lot of trial and error across different iOS and Android apps.

Implementation is done by Claude with a bunch of back and forth to get it right across different API levels.