mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-16 12:00:03 +03:00
Fix tint color of add icon.
This commit is contained in:
parent
8313e45737
commit
ac7a929a1a
2 changed files with 4 additions and 4 deletions
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue