mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 19:32:16 +00:00
Fix: Action Text Color visibility (Closes #124)
This commit is contained in:
parent
5f64a8f071
commit
4f31854876
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user