mirror of
https://github.com/cmclark00/RetroMusicPlayer.git
synced 2025-05-20 00:55:20 +01:00
Added Settings option in Folders tab
This commit is contained in:
parent
d1f2cac5c0
commit
e328ac116e
2 changed files with 12 additions and 9 deletions
|
@ -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
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue