Skip to content

Commit

Permalink
trailing toolbar icons are tinted with onSurfaceVariant color
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Scherzinger <[email protected]>
  • Loading branch information
AndyScherzinger committed Mar 17, 2023
1 parent a5bf2f1 commit dd05184
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class AndroidViewThemeUtils @Inject constructor(schemes: MaterialSchemes, privat

fun colorToolbarMenuIcon(context: Context, item: MenuItem) {
withScheme(context) { scheme ->
colorMenuItemIcon(scheme.onSurface, item)
colorMenuItemIcon(scheme.onSurfaceVariant, item)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class MaterialViewThemeUtils @Inject constructor(schemes: MaterialSchemes, priva
ViewThemeUtilsBase(schemes) {
fun colorToolbarOverflowIcon(toolbar: MaterialToolbar) {
withScheme(toolbar) { scheme ->
toolbar.overflowIcon?.setColorFilter(scheme.onSurface, PorterDuff.Mode.SRC_ATOP)
toolbar.overflowIcon?.setColorFilter(scheme.onSurfaceVariant, PorterDuff.Mode.SRC_ATOP)
}
}

Expand Down

0 comments on commit dd05184

Please sign in to comment.