mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-06-16 04:19:19 +00:00
Update: Theme Touchups
This commit is contained in:
@ -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(
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user