Skip to content

Commit

Permalink
ui: Reduce gradient brightness
Browse files Browse the repository at this point in the history
  • Loading branch information
mikooomich authored and reocat committed Jan 6, 2025
1 parent 16ea748 commit 86f9b18
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/com/dd3boh/outertune/ui/player/Player.kt
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ fun BottomSheetPlayer(
Box(
modifier = Modifier
.fillMaxSize()
.background(Brush.verticalGradient(gradientColors))
.background(Brush.verticalGradient(gradientColors), alpha = 0.8f)
)
}

Expand Down
1 change: 0 additions & 1 deletion app/src/main/java/com/dd3boh/outertune/ui/theme/Theme.kt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ fun Bitmap.extractGradientColors(): List<Color> {
.associate { it.rgb to it.population }

val orderedColors = Score.score(extractedColors, 2, 0xff4285f4.toInt(), true)
.take(2)
.sortedByDescending { Color(it).luminance() }

return if (orderedColors.size >= 2)
Expand Down

0 comments on commit 86f9b18

Please sign in to comment.