lets use alpha value from commons for consistency

This commit is contained in:
Tibor Kaputa 2022-11-25 22:00:45 +01:00 committed by GitHub
parent 740fd1f0eb
commit c25cfa7588
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ import com.simplemobiletools.commons.extensions.adjustAlpha
import com.simplemobiletools.commons.extensions.applyColorFilter import com.simplemobiletools.commons.extensions.applyColorFilter
import com.simplemobiletools.commons.extensions.getProperTextColor import com.simplemobiletools.commons.extensions.getProperTextColor
import com.simplemobiletools.commons.extensions.launchViewContactIntent import com.simplemobiletools.commons.extensions.launchViewContactIntent
import com.simplemobiletools.commons.helpers.HIGHER_ALPHA
import com.simplemobiletools.commons.helpers.NavigationIcon import com.simplemobiletools.commons.helpers.NavigationIcon
import com.simplemobiletools.commons.helpers.SimpleContactsHelper import com.simplemobiletools.commons.helpers.SimpleContactsHelper
import com.simplemobiletools.commons.helpers.ensureBackgroundThread import com.simplemobiletools.commons.helpers.ensureBackgroundThread
@ -50,7 +51,7 @@ class ConversationDetailsActivity : SimpleActivity() {
private fun setupTextViews() { private fun setupTextViews() {
val textColor = getProperTextColor() val textColor = getProperTextColor()
val headingColor = textColor.adjustAlpha(0.8f) val headingColor = textColor.adjustAlpha(HIGHER_ALPHA)
members_heading.setTextColor(headingColor) members_heading.setTextColor(headingColor)
conversation_name_heading.setTextColor(headingColor) conversation_name_heading.setTextColor(headingColor)