White "plus" home screen icon.

This commit is contained in:
Anton Chekulaev 2020-09-02 21:35:23 +10:00
parent 98bc35d378
commit 00e60d86ae

View File

@ -77,7 +77,13 @@ class NewConversationButtonSetView : RelativeLayout {
background.color = ColorStateList.valueOf(resources.getColorWithID(backgroundColorID, context.theme))
result.scaleType = ImageView.ScaleType.CENTER
result.setImageResource(iconID)
result.imageTintList = ColorStateList.valueOf(resources.getColorWithID(R.color.text, context.theme))
result.imageTintList = if (isMain)
// Always use white icon for the main button.
ColorStateList.valueOf(resources.getColorWithID(android.R.color.white, context.theme))
else
ColorStateList.valueOf(resources.getColorWithID(R.color.text, context.theme))
result
}