mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Use Alpha instead of opacity on bg color
This commit is contained in:
@ -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
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user