mirror of
https://github.com/nextcloud/android.git
synced 2024-11-28 02:17:43 +03:00
don't tint avatars within the drawer menu
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
e32ec7a192
commit
8f8b67f57f
1 changed files with 5 additions and 1 deletions
|
@ -991,7 +991,11 @@ public abstract class DrawerActivity extends ToolbarActivity
|
|||
MenuItem menuItem = mNavigationView.getMenu().getItem(i);
|
||||
if (menuItem.getIcon() != null) {
|
||||
menuItem.getIcon().clearColorFilter();
|
||||
ThemeUtils.tintDrawable(menuItem.getIcon(), ContextCompat.getColor(this, R.color.drawer_menu_icon));
|
||||
if(menuItem.getGroupId() != R.id.drawer_menu_accounts
|
||||
|| menuItem.getItemId() == R.id.drawer_menu_account_add
|
||||
|| menuItem.getItemId() == R.id.drawer_menu_account_manage) {
|
||||
ThemeUtils.tintDrawable(menuItem.getIcon(), ContextCompat.getColor(this, R.color.drawer_menu_icon));
|
||||
}
|
||||
menuItem.setTitle(Html.fromHtml("<font color='" + ThemeUtils.colorToHexString(ContextCompat.getColor(this, R.color.textColor)) + "'>" + menuItem.getTitle() + "</font>"));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue