From 34fe03c9e5e63e4f6988fe29acfad93f5e025c5d Mon Sep 17 00:00:00 2001 From: Mygod Date: Sat, 24 Dec 2016 16:03:29 +0800 Subject: [PATCH] Add icon tinting to drawer drawables --- src/main/scala/com/github/shadowsocks/MainActivity.scala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/scala/com/github/shadowsocks/MainActivity.scala b/src/main/scala/com/github/shadowsocks/MainActivity.scala index 00e2c371..3300a225 100644 --- a/src/main/scala/com/github/shadowsocks/MainActivity.scala +++ b/src/main/scala/com/github/shadowsocks/MainActivity.scala @@ -216,16 +216,19 @@ class MainActivity extends Activity with ServiceBoundContext with Drawer.OnDrawe .withIdentifier(DRAWER_PROFILES) .withName(R.string.profiles) .withIcon(ContextCompat.getDrawable(this, R.drawable.ic_action_description)) + .withIconTintingEnabled(true) ) .addStickyDrawerItems( new SecondaryDrawerItem() .withIdentifier(DRAWER_GLOBAL_SETTINGS) .withName(R.string.settings) - .withIcon(ContextCompat.getDrawable(this, R.drawable.ic_action_settings)), + .withIcon(ContextCompat.getDrawable(this, R.drawable.ic_action_settings)) + .withIconTintingEnabled(true), new SecondaryDrawerItem() .withIdentifier(DRAWER_ABOUT) .withName(R.string.about) .withIcon(ContextCompat.getDrawable(this, R.drawable.ic_action_copyright)) + .withIconTintingEnabled(true) .withSelectable(false) ) .withOnDrawerItemClickListener(this)