mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 02:43:01 +08:00
Remove awkward width specification
This commit is contained in:
parent
51940133df
commit
ffcca9fd89
@ -31,8 +31,10 @@ namespace osu.Game.Overlays.Mods
|
|||||||
set
|
set
|
||||||
{
|
{
|
||||||
headerBackground.Colour = value;
|
headerBackground.Colour = value;
|
||||||
|
|
||||||
var hsv = new Colour4(value.R, value.G, value.B, 1f).ToHSV();
|
var hsv = new Colour4(value.R, value.G, value.B, 1f).ToHSV();
|
||||||
triangles.Colour = ColourInfo.GradientVertical(Colour4.FromHSV(hsv.X, hsv.Y + 0.2f, hsv.Z - 0.1f), value);
|
var trianglesColour = Colour4.FromHSV(hsv.X, hsv.Y + 0.2f, hsv.Z - 0.1f);
|
||||||
|
triangles.Colour = ColourInfo.GradientVertical(trianglesColour, trianglesColour.MultiplyAlpha(0f));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -82,14 +84,10 @@ namespace osu.Game.Overlays.Mods
|
|||||||
},
|
},
|
||||||
triangles = new TrianglesV2
|
triangles = new TrianglesV2
|
||||||
{
|
{
|
||||||
Anchor = Anchor.TopRight,
|
|
||||||
Origin = Anchor.TopRight,
|
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
Width = 1.03f, // Makes sure the sheared area is fully covered
|
|
||||||
Height = header_height,
|
Height = header_height,
|
||||||
Shear = new Vector2(-ShearedOverlayContainer.SHEAR, 0),
|
Shear = new Vector2(-ShearedOverlayContainer.SHEAR, 0),
|
||||||
Velocity = 0.7f,
|
Velocity = 0.7f,
|
||||||
Masking = true
|
|
||||||
},
|
},
|
||||||
headerText = new OsuTextFlowContainer(t =>
|
headerText = new OsuTextFlowContainer(t =>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user