1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 15:03:13 +08:00

Adjust triangles colour

This commit is contained in:
Andrei Zavatski 2019-06-23 17:08:18 +03:00
parent f5f041acc8
commit 1c20df780a
2 changed files with 5 additions and 7 deletions

View File

@ -3,6 +3,7 @@
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Colour;
using osu.Framework.Graphics.Containers;
@ -118,9 +119,7 @@ namespace osu.Game.Overlays.Profile
Anchor = Anchor.BottomCentre,
Origin = Anchor.BottomCentre,
RelativeSizeAxes = Axes.Both,
Height = 0.95f,
TriangleScale = 4,
Velocity = 0.5f,
TriangleScale = 3,
},
foreground = new Box
{
@ -133,8 +132,8 @@ namespace osu.Game.Overlays.Profile
private void load(OsuColour colours)
{
triangles.ColourLight = colours.GreySeafoamDark;
triangles.ColourDark = colours.GreySeafoamDarker;
foreground.Colour = ColourInfo.GradientVertical(colours.GreySeafoamDarker, new Color4(0, 0, 0, 0));
triangles.ColourDark = OsuColour.FromHex("171b1a");
foreground.Colour = ColourInfo.GradientVertical(colours.GreySeafoamDarker, colours.GreySeafoamDarker.Opacity(0));
}
}
}

View File

@ -188,8 +188,7 @@ namespace osu.Game.Overlays
RelativeSizeAxes = Axes.Both;
}
protected override FlowContainer<ProfileSection> CreateScrollContentContainer()
=> new FillFlowContainer<ProfileSection>
protected override FlowContainer<ProfileSection> CreateScrollContentContainer() => new FillFlowContainer<ProfileSection>
{
Direction = FillDirection.Vertical,
AutoSizeAxes = Axes.Y,