mirror of
https://github.com/nextcloud/android.git
synced 2024-12-23 09:10:33 +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
f53f246f6e
commit
eff6a5bed9
1 changed files with 5 additions and 1 deletions
|
@ -992,7 +992,11 @@ public abstract class DrawerActivity extends ToolbarActivity
|
||||||
MenuItem menuItem = mNavigationView.getMenu().getItem(i);
|
MenuItem menuItem = mNavigationView.getMenu().getItem(i);
|
||||||
if (menuItem.getIcon() != null) {
|
if (menuItem.getIcon() != null) {
|
||||||
menuItem.getIcon().clearColorFilter();
|
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>"));
|
menuItem.setTitle(Html.fromHtml("<font color='" + ThemeUtils.colorToHexString(ContextCompat.getColor(this, R.color.textColor)) + "'>" + menuItem.getTitle() + "</font>"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue