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

View File

@ -39,7 +39,7 @@
android:fontFamily="sans-serif-medium"
android:singleLine="true"
android:textColor="?android:attr/textColor"
android:textSize="16sp" />
android:textSize="17sp" />
<TextView
android:id="@+id/package_name"
@ -55,7 +55,7 @@
android:layout_height="wrap_content"
android:paddingBottom="2sp"
android:singleLine="true"
android:textColor="?attr/colorSurface"
android:textColor="?attr/colorOnSurface"
android:textSize="12sp" />
</LinearLayout>