pref: 加深夜间模式缩略图遮罩颜色

This commit is contained in:
HuanCheng65 2023-10-02 01:10:39 +08:00
parent 78e509b638
commit a8113c1e9a
No known key found for this signature in database
GPG Key ID: 5EC9DD60A32C7360
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package com.huanchengfly.tieba.post.ui.widgets.compose package com.huanchengfly.tieba.post.ui.widgets.compose
import android.content.Context import android.content.Context
import android.graphics.Color
import android.os.Parcelable import android.os.Parcelable
import android.util.Log import android.util.Log
import androidx.compose.animation.core.Animatable import androidx.compose.animation.core.Animatable
@ -232,7 +233,7 @@ fun NetworkImage(
val colorMask = val colorMask =
if (ExtendedTheme.colors.isNightMode && context.appPreferences.imageDarkenWhenNightMode) { if (ExtendedTheme.colors.isNightMode && context.appPreferences.imageDarkenWhenNightMode) {
MaskTransformation(0x35000000) MaskTransformation(Color.parseColor("#99000000"))
} else null } else null
var imageAspectRatio by remember(imageUri) { mutableFloatStateOf(0f) } var imageAspectRatio by remember(imageUri) { mutableFloatStateOf(0f) }