Fix tint color of add icon.
This commit is contained in:
parent
8313e45737
commit
ac7a929a1a
@ -145,7 +145,7 @@ class VectorSettingsGeneralFragment : VectorSettingsBaseFragment() {
|
|||||||
// It does not work on XML, do it here
|
// It does not work on XML, do it here
|
||||||
it.icon = activity?.let {
|
it.icon = activity?.let {
|
||||||
ThemeUtils.tintDrawable(it,
|
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
|
// 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 does not work on XML, do it here
|
||||||
it.icon = activity?.let {
|
it.icon = activity?.let {
|
||||||
ThemeUtils.tintDrawable(it,
|
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 {
|
it.setOnPreferenceClickListener {
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
android:key="ADD_EMAIL_PREFERENCE_KEY"
|
android:key="ADD_EMAIL_PREFERENCE_KEY"
|
||||||
android:order="100"
|
android:order="100"
|
||||||
android:title="@string/settings_add_email_address"
|
android:title="@string/settings_add_email_address"
|
||||||
app:iconTint="?colorAccent" />
|
app:iconTint="@color/riotx_accent" />
|
||||||
|
|
||||||
<!-- Phone will be added here -->
|
<!-- Phone will be added here -->
|
||||||
|
|
||||||
@ -41,7 +41,7 @@
|
|||||||
android:key="ADD_PHONE_NUMBER_PREFERENCE_KEY"
|
android:key="ADD_PHONE_NUMBER_PREFERENCE_KEY"
|
||||||
android:order="200"
|
android:order="200"
|
||||||
android:title="@string/settings_add_phone_number"
|
android:title="@string/settings_add_phone_number"
|
||||||
app:iconTint="?colorAccent" />
|
app:iconTint="@color/riotx_accent" />
|
||||||
|
|
||||||
<im.vector.riotx.core.preference.VectorPreference
|
<im.vector.riotx.core.preference.VectorPreference
|
||||||
android:order="1000"
|
android:order="1000"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user