adding some light theme related fixes

This commit is contained in:
tibbi 2020-10-27 16:01:59 +01:00
parent f537b78aa2
commit e0b13c648a
2 changed files with 4 additions and 8 deletions

View File

@ -199,9 +199,8 @@ class EditContactActivity : ContactActivity() {
} }
val textColor = config.textColor val textColor = config.textColor
arrayOf(contact_name_image, contact_numbers_image, contact_emails_image, contact_addresses_image, arrayOf(contact_name_image, contact_numbers_image, contact_emails_image, contact_addresses_image, contact_ims_image, contact_events_image,
contact_ims_image, contact_events_image, contact_notes_image, contact_organization_image, contact_websites_image, contact_groups_image, contact_notes_image, contact_organization_image, contact_websites_image, contact_groups_image, contact_source_image).forEach {
contact_source_image).forEach {
it.applyColorFilter(textColor) it.applyColorFilter(textColor)
} }
@ -233,7 +232,6 @@ class EditContactActivity : ContactActivity() {
contact_toggle_favorite.apply { contact_toggle_favorite.apply {
setImageDrawable(getStarDrawable(contact!!.starred == 1)) setImageDrawable(getStarDrawable(contact!!.starred == 1))
tag = contact!!.starred tag = contact!!.starred
applyColorFilter(textColor)
} }
updateTextColors(contact_scrollview) updateTextColors(contact_scrollview)

View File

@ -176,9 +176,8 @@ class ViewContactActivity : ContactActivity() {
} }
val textColor = config.textColor val textColor = config.textColor
arrayOf(contact_send_sms, contact_start_call, contact_send_email, contact_name_image, contact_numbers_image, contact_emails_image, arrayOf(contact_name_image, contact_numbers_image, contact_emails_image, contact_addresses_image, contact_events_image, contact_source_image,
contact_addresses_image, contact_events_image, contact_source_image, contact_notes_image, contact_organization_image, contact_notes_image, contact_organization_image, contact_websites_image, contact_groups_image).forEach {
contact_websites_image, contact_groups_image).forEach {
it.applyColorFilter(textColor) it.applyColorFilter(textColor)
} }
@ -239,7 +238,6 @@ class ViewContactActivity : ContactActivity() {
beVisible() beVisible()
tag = contact!!.starred tag = contact!!.starred
setImageDrawable(getStarDrawable(tag == 1)) setImageDrawable(getStarDrawable(tag == 1))
applyColorFilter(config.textColor)
setOnClickListener { setOnClickListener {
val newIsStarred = if (tag == 1) 0 else 1 val newIsStarred = if (tag == 1) 0 else 1