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

View File

@ -47,15 +47,14 @@ namespace osu.Game.Overlays.Profile.Header.Components
{ {
FillFlowContainer innerContainer; FillFlowContainer innerContainer;
var bgColor = colourProvider?.Background6 ?? Colour4.Black;
AddRangeInternal(new Drawable[] AddRangeInternal(new Drawable[]
{ {
new Box new Box
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
// Normal background color is 0.75 opacity, probationary doesn't have this cause they are a bit transparent already // 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 innerContainer = new FillFlowContainer
{ {