Commit 34fe03c9 authored by Mygod's avatar Mygod

Add icon tinting to drawer drawables

parent a78c8aa5
...@@ -216,16 +216,19 @@ class MainActivity extends Activity with ServiceBoundContext with Drawer.OnDrawe ...@@ -216,16 +216,19 @@ class MainActivity extends Activity with ServiceBoundContext with Drawer.OnDrawe
.withIdentifier(DRAWER_PROFILES) .withIdentifier(DRAWER_PROFILES)
.withName(R.string.profiles) .withName(R.string.profiles)
.withIcon(ContextCompat.getDrawable(this, R.drawable.ic_action_description)) .withIcon(ContextCompat.getDrawable(this, R.drawable.ic_action_description))
.withIconTintingEnabled(true)
) )
.addStickyDrawerItems( .addStickyDrawerItems(
new SecondaryDrawerItem() new SecondaryDrawerItem()
.withIdentifier(DRAWER_GLOBAL_SETTINGS) .withIdentifier(DRAWER_GLOBAL_SETTINGS)
.withName(R.string.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() new SecondaryDrawerItem()
.withIdentifier(DRAWER_ABOUT) .withIdentifier(DRAWER_ABOUT)
.withName(R.string.about) .withName(R.string.about)
.withIcon(ContextCompat.getDrawable(this, R.drawable.ic_action_copyright)) .withIcon(ContextCompat.getDrawable(this, R.drawable.ic_action_copyright))
.withIconTintingEnabled(true)
.withSelectable(false) .withSelectable(false)
) )
.withOnDrawerItemClickListener(this) .withOnDrawerItemClickListener(this)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment