diff --git a/components/support/ktx/src/main/java/mozilla/components/support/ktx/android/view/Window.kt b/components/support/ktx/src/main/java/mozilla/components/support/ktx/android/view/Window.kt index e2eff49a3fb..61e53f5a340 100644 --- a/components/support/ktx/src/main/java/mozilla/components/support/ktx/android/view/Window.kt +++ b/components/support/ktx/src/main/java/mozilla/components/support/ktx/android/view/Window.kt @@ -17,7 +17,7 @@ import mozilla.components.support.utils.ColorUtils.isDark */ fun Window.setStatusBarTheme(@ColorInt color: Int) { getWindowInsetsController().isAppearanceLightStatusBars = - isDark(color) + !isDark(color) statusBarColor = color } @@ -27,7 +27,7 @@ fun Window.setStatusBarTheme(@ColorInt color: Int) { */ fun Window.setNavigationBarTheme(@ColorInt color: Int) { getWindowInsetsController().isAppearanceLightNavigationBars = - isDark(color) + !isDark(color) if (SDK_INT >= Build.VERSION_CODES.P) { navigationBarDividerColor = 0 diff --git a/docs/changelog.md b/docs/changelog.md index 18f30780925..be017b1d84e 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -25,7 +25,10 @@ permalink: /changelog/ * **browser-engine-gecko**: * Canceling the "Open in app?" displays an empty page [#12894](https://github.com/mozilla-mobile/android-components/issues/12894) - + +* **support-ktx**: + * The colors of the icons from the status bar should be in contrast with the status bar background color [#1795650](https://bugzilla.mozilla.org/show_bug.cgi?id=1795650) + # 106.0.0 * [Commits](https://github.com/mozilla-mobile/android-components/compare/v105.0.0..v106.0.0) * [Milestone](https://github.com/mozilla-mobile/android-components/milestone/153?closed=1)