1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 14:17:26 +08:00

Use Alpha instead of opacity on bg color

This commit is contained in:
EXtremeExploit 2023-01-25 10:22:42 -03:00
parent 8d4889d5ce
commit 0eaebfd40a
No known key found for this signature in database

View File

@ -47,15 +47,14 @@ namespace osu.Game.Overlays.Profile.Header.Components
{
FillFlowContainer innerContainer;
var bgColor = colourProvider?.Background6 ?? Colour4.Black;
AddRangeInternal(new Drawable[]
{
new Box
{
RelativeSizeAxes = Axes.Both,
// Normal background color is 0.75 opacity, probationary doesn't have this cause they are a bit transparent already
Colour = group.IsProbationary ? bgColor : bgColor.Opacity(0.75f),
Colour = colourProvider?.Background6 ?? Colour4.Black,
Alpha = group.IsProbationary ? 1 : 0.75f,
},
innerContainer = new FillFlowContainer
{