Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
For #1795650 The colors of the icons from the status bar should be in…
Browse files Browse the repository at this point in the history
… contrast with the status bar background color.
  • Loading branch information
iorgamgabriel committed Oct 17, 2022
1 parent 3320188 commit 73c6215
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -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
Expand Down
5 changes: 4 additions & 1 deletion docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 73c6215

Please sign in to comment.