mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 19:32:16 +00:00
Update: Theme Touchups
This commit is contained in:
parent
c3d9967587
commit
5da839e072
@ -356,7 +356,7 @@ class ProductAdapter(private val callbacks: Callbacks, private val columns: Int)
|
|||||||
init {
|
init {
|
||||||
itemView as TextView
|
itemView as TextView
|
||||||
itemView.typeface = TypefaceExtra.medium
|
itemView.typeface = TypefaceExtra.medium
|
||||||
itemView.setTextSizeScaled(15)
|
itemView.setTextSizeScaled(14)
|
||||||
itemView.setTextColor(itemView.context.getColorFromAttr(android.R.attr.textColor))
|
itemView.setTextColor(itemView.context.getColorFromAttr(android.R.attr.textColor))
|
||||||
itemView.background =
|
itemView.background =
|
||||||
ResourcesCompat.getDrawable(
|
ResourcesCompat.getDrawable(
|
||||||
|
@ -70,19 +70,15 @@ class ScreenshotsFragment() : DialogFragment() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
val background =
|
val background =
|
||||||
dialog.context.getColorFromAttr(android.R.attr.colorBackground).defaultColor
|
dialog.context.getColorFromAttr(R.attr.colorSurface).defaultColor
|
||||||
decorView?.setBackgroundColor(background.let {
|
decorView?.setBackgroundColor(background.let {
|
||||||
ColorUtils.blendARGB(
|
ColorUtils.blendARGB(
|
||||||
0x00ffffff and it,
|
0x00ffffff and it,
|
||||||
it,
|
it,
|
||||||
0.9f
|
1f
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
decorView?.setPadding(0, 0, 0, 0)
|
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) {
|
if (window != null) {
|
||||||
window.attributes = window.attributes.apply {
|
window.attributes = window.attributes.apply {
|
||||||
title = ScreenshotsFragment::class.java.name
|
title = ScreenshotsFragment::class.java.name
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
android:fontFamily="sans-serif-medium"
|
android:fontFamily="sans-serif-medium"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:textColor="?android:attr/textColor"
|
android:textColor="?android:attr/textColor"
|
||||||
android:textSize="16sp" />
|
android:textSize="17sp" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/package_name"
|
android:id="@+id/package_name"
|
||||||
@ -55,7 +55,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingBottom="2sp"
|
android:paddingBottom="2sp"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:textColor="?attr/colorSurface"
|
android:textColor="?attr/colorOnSurface"
|
||||||
android:textSize="12sp" />
|
android:textSize="12sp" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user