Added Settings option in Folders tab

This commit is contained in:
Prathamesh More 2022-01-19 18:21:25 +05:30
parent d1f2cac5c0
commit e328ac116e
2 changed files with 12 additions and 9 deletions

View file

@ -265,15 +265,10 @@ fun Context.getColorCompat(@ColorRes colorRes: Int): Int {
@ColorInt
fun Context.darkAccentColor(): Int {
val colorSurfaceVariant = if (surfaceColor().isColorLight) {
surfaceColor()
} else {
surfaceColor().lighterColor
}
return ColorUtils.blendARGB(
accentColor(),
colorSurfaceVariant,
if (surfaceColor().isColorLight) 0.96f else 0.975f
surfaceColor(),
if (surfaceColor().isColorLight) 0.9f else 0.92f
)
}