mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-07-09 22:49:18 +00:00
Fix: Action Text Color visibility (Closes #124)
This commit is contained in:
@ -330,14 +330,11 @@ class ProductAdapter(private val callbacks: Callbacks, private val columns: Int)
|
|||||||
|
|
||||||
val actionTintNormal = action.context.getColorFromAttr(R.attr.colorSurface)
|
val actionTintNormal = action.context.getColorFromAttr(R.attr.colorSurface)
|
||||||
val actionTintCancel = action.context.getColorFromAttr(R.attr.colorError)
|
val actionTintCancel = action.context.getColorFromAttr(R.attr.colorError)
|
||||||
val actionTintOnNormal = action.context.getColorFromAttr(android.R.attr.textColorPrimary)
|
val actionTintOnNormal = action.context.getColorFromAttr(R.attr.colorOnSurface)
|
||||||
val actionTintOnCancel = action.context.getColorFromAttr(R.attr.colorOnError)
|
val actionTintOnCancel = action.context.getColorFromAttr(R.attr.colorOnError)
|
||||||
|
|
||||||
init {
|
init {
|
||||||
action.apply {
|
action.height = itemView.resources.sizeScaled(48)
|
||||||
setTextColor(action.context.getColorFromAttr(R.attr.colorOnPrimary))
|
|
||||||
height = itemView.resources.sizeScaled(48)
|
|
||||||
}
|
|
||||||
val (progressIcon, defaultIcon) = Utils.getDefaultApplicationIcons(icon.context)
|
val (progressIcon, defaultIcon) = Utils.getDefaultApplicationIcons(icon.context)
|
||||||
this.progressIcon = progressIcon
|
this.progressIcon = progressIcon
|
||||||
this.defaultIcon = defaultIcon
|
this.defaultIcon = defaultIcon
|
||||||
|
Reference in New Issue
Block a user