Update: Theme Touchups

This commit is contained in:
LooKeR
2021-10-17 12:12:39 +05:30
parent c3d9967587
commit 5da839e072
3 changed files with 5 additions and 9 deletions

View File

@ -356,7 +356,7 @@ class ProductAdapter(private val callbacks: Callbacks, private val columns: Int)
init {
itemView as TextView
itemView.typeface = TypefaceExtra.medium
itemView.setTextSizeScaled(15)
itemView.setTextSizeScaled(14)
itemView.setTextColor(itemView.context.getColorFromAttr(android.R.attr.textColor))
itemView.background =
ResourcesCompat.getDrawable(

View File

@ -70,19 +70,15 @@ class ScreenshotsFragment() : DialogFragment() {
}
val background =
dialog.context.getColorFromAttr(android.R.attr.colorBackground).defaultColor
dialog.context.getColorFromAttr(R.attr.colorSurface).defaultColor
decorView?.setBackgroundColor(background.let {
ColorUtils.blendARGB(
0x00ffffff and it,
it,
0.9f
1f
)
})
decorView?.setPadding(0, 0, 0, 0)
background.let { ColorUtils.blendARGB(0x00ffffff and it, it, 0.8f) }.let {
window?.statusBarColor = it
window?.navigationBarColor = it
}
if (window != null) {
window.attributes = window.attributes.apply {
title = ScreenshotsFragment::class.java.name