[android-components](../index.md) / [mozilla.components.support.ktx.android.view](index.md) / [setStatusBarTheme](./set-status-bar-theme.md)

# setStatusBarTheme

`fun <ERROR CLASS>.setStatusBarTheme(themeColor: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/support/ktx/src/main/java/mozilla/components/support/ktx/android/view/Activity.kt#L47)

Colors the status bar to match the theme color.
If the color is light enough, a light status bar with dark icons will be used.

