Improve: Overall text appearance

This commit is contained in:
LooKeR
2021-11-14 00:39:59 +05:30
parent f290508ee2
commit cf430988c0
7 changed files with 17 additions and 19 deletions

View File

@ -339,7 +339,7 @@ class ProductAdapter(private val callbacks: Callbacks, private val columns: Int)
val actionTintNormal = action.context.getColorFromAttr(R.attr.colorSurface)
val actionTintCancel = action.context.getColorFromAttr(R.attr.colorError)
val actionTintOnNormal = action.context.getColorFromAttr(R.attr.colorOnSurface)
val actionTintOnNormal = action.context.getColorFromAttr(android.R.attr.textColorPrimary)
val actionTintOnCancel = action.context.getColorFromAttr(R.attr.colorOnError)
init {
@ -1186,7 +1186,6 @@ class ProductAdapter(private val callbacks: Callbacks, private val columns: Int)
holder.name.text = item.product.name
holder.packageName.apply {
text = item.product.packageName
setTextSizeScaled(15)
}
val action = action
holder.action.apply {

View File

@ -534,7 +534,6 @@ class TabsFragment : ScreenFragment() {
itemView as MaterialTextView
itemView.gravity = Gravity.CENTER_VERTICAL
itemView.resources.sizeScaled(16).let { itemView.setPadding(it, 0, it, 0) }
itemView.setTextSizeScaled(16)
itemView.background =
context.getDrawableFromAttr(android.R.attr.selectableItemBackground)
itemView.layoutParams = RecyclerView.LayoutParams(