change Bottom Action Menu icon colors to white

This commit is contained in:
Paul Akhamiogu 2021-12-31 16:14:24 +00:00
parent 58306d6b73
commit 71fd07d9b1
2 changed files with 4 additions and 3 deletions

View file

@ -47,7 +47,7 @@ class BottomActionMenuItemPopup(
view!!.cab_item.text = item.title
if (item.icon != View.NO_ID) {
val icon = ContextCompat.getDrawable(context, item.icon)
icon?.applyColorFilter(context.getAdjustedPrimaryColor())
icon?.applyColorFilter(ContextCompat.getColor(context, android.R.color.white))
view.cab_item.setCompoundDrawablesWithIntrinsicBounds(icon, null, null, null)
}

View file

@ -12,6 +12,7 @@ import android.view.ViewPropertyAnimator
import android.widget.ImageView
import android.widget.LinearLayout
import androidx.annotation.IdRes
import androidx.core.content.ContextCompat
import com.google.android.material.animation.AnimationUtils
import com.simplemobiletools.commons.R
import com.simplemobiletools.commons.extensions.*
@ -174,7 +175,7 @@ class BottomActionMenuView : LinearLayout {
setImageResource(R.drawable.ic_three_dots_vector)
val contentDesc = context.getString(R.string.more_info)
contentDescription = contentDesc
applyColorFilter(context.getAdjustedPrimaryColor())
applyColorFilter(ContextCompat.getColor(context, android.R.color.white))
val popup = getOverflowPopup(overFlowItems)
setOnClickListener {
popup.show(it)
@ -194,7 +195,7 @@ class BottomActionMenuView : LinearLayout {
setImageResource(item.icon)
}
beVisibleIf(item.isVisible)
applyColorFilter(context.getAdjustedPrimaryColor())
applyColorFilter(ContextCompat.getColor(context, android.R.color.white))
}
private fun getOverflowPopup(overFlowItems: List<BottomActionMenuItem>): BottomActionMenuItemPopup {