Fix tint color of add icon.

This commit is contained in:
Onuray Sahin 2020-07-07 15:05:47 +03:00
parent 8313e45737
commit ac7a929a1a
2 changed files with 4 additions and 4 deletions

View file

@ -145,7 +145,7 @@ class VectorSettingsGeneralFragment : VectorSettingsBaseFragment() {
// It does not work on XML, do it here
it.icon = activity?.let {
ThemeUtils.tintDrawable(it,
ContextCompat.getDrawable(it, R.drawable.ic_add_black)!!, R.attr.vctr_settings_icon_tint_color)
ContextCompat.getDrawable(it, R.drawable.ic_material_add)!!, R.attr.colorAccent)
}
// Unfortunately, this is not supported in lib v7
@ -167,7 +167,7 @@ class VectorSettingsGeneralFragment : VectorSettingsBaseFragment() {
// It does not work on XML, do it here
it.icon = activity?.let {
ThemeUtils.tintDrawable(it,
ContextCompat.getDrawable(it, R.drawable.ic_add_black)!!, R.attr.vctr_settings_icon_tint_color)
ContextCompat.getDrawable(it, R.drawable.ic_material_add)!!, R.attr.colorAccent)
}
it.setOnPreferenceClickListener {

View file

@ -31,7 +31,7 @@
android:key="ADD_EMAIL_PREFERENCE_KEY"
android:order="100"
android:title="@string/settings_add_email_address"
app:iconTint="?colorAccent" />
app:iconTint="@color/riotx_accent" />
<!-- Phone will be added here -->
@ -41,7 +41,7 @@
android:key="ADD_PHONE_NUMBER_PREFERENCE_KEY"
android:order="200"
android:title="@string/settings_add_phone_number"
app:iconTint="?colorAccent" />
app:iconTint="@color/riotx_accent" />
<im.vector.riotx.core.preference.VectorPreference
android:order="1000"