mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-06-07 00:09:55 +00:00
Update: Lesser alpha for the background when loading screenshots
This commit is contained in:
parent
a25fca1216
commit
822fd7597c
@ -7,6 +7,7 @@ import android.graphics.drawable.Drawable
|
||||
import android.os.Bundle
|
||||
import android.view.ViewGroup
|
||||
import android.view.WindowManager
|
||||
import androidx.core.graphics.ColorUtils
|
||||
import androidx.core.view.WindowCompat
|
||||
import androidx.core.view.WindowInsetsCompat
|
||||
import androidx.core.view.WindowInsetsControllerCompat
|
||||
@ -69,7 +70,13 @@ class ScreenshotsFragment() : DialogFragment() {
|
||||
}
|
||||
|
||||
val background = dialog.context.getColorFromAttr(R.attr.colorSurface).defaultColor
|
||||
decorView?.setBackgroundColor(background)
|
||||
decorView?.setBackgroundColor(
|
||||
ColorUtils.blendARGB(
|
||||
0x00FFFFFF and background,
|
||||
background,
|
||||
0.9f
|
||||
)
|
||||
)
|
||||
decorView?.setPadding(0, 0, 0, 0)
|
||||
if (window != null) {
|
||||
window.attributes = window.attributes.apply {
|
||||
|
Loading…
x
Reference in New Issue
Block a user