mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 18:32:55 +08:00
Adjust triangles colour
This commit is contained in:
parent
f5f041acc8
commit
1c20df780a
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
|
using osu.Framework.Extensions.Color4Extensions;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Colour;
|
using osu.Framework.Graphics.Colour;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
@ -118,9 +119,7 @@ namespace osu.Game.Overlays.Profile
|
|||||||
Anchor = Anchor.BottomCentre,
|
Anchor = Anchor.BottomCentre,
|
||||||
Origin = Anchor.BottomCentre,
|
Origin = Anchor.BottomCentre,
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Height = 0.95f,
|
TriangleScale = 3,
|
||||||
TriangleScale = 4,
|
|
||||||
Velocity = 0.5f,
|
|
||||||
},
|
},
|
||||||
foreground = new Box
|
foreground = new Box
|
||||||
{
|
{
|
||||||
@ -133,8 +132,8 @@ namespace osu.Game.Overlays.Profile
|
|||||||
private void load(OsuColour colours)
|
private void load(OsuColour colours)
|
||||||
{
|
{
|
||||||
triangles.ColourLight = colours.GreySeafoamDark;
|
triangles.ColourLight = colours.GreySeafoamDark;
|
||||||
triangles.ColourDark = colours.GreySeafoamDarker;
|
triangles.ColourDark = OsuColour.FromHex("171b1a");
|
||||||
foreground.Colour = ColourInfo.GradientVertical(colours.GreySeafoamDarker, new Color4(0, 0, 0, 0));
|
foreground.Colour = ColourInfo.GradientVertical(colours.GreySeafoamDarker, colours.GreySeafoamDarker.Opacity(0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -188,8 +188,7 @@ namespace osu.Game.Overlays
|
|||||||
RelativeSizeAxes = Axes.Both;
|
RelativeSizeAxes = Axes.Both;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override FlowContainer<ProfileSection> CreateScrollContentContainer()
|
protected override FlowContainer<ProfileSection> CreateScrollContentContainer() => new FillFlowContainer<ProfileSection>
|
||||||
=> new FillFlowContainer<ProfileSection>
|
|
||||||
{
|
{
|
||||||
Direction = FillDirection.Vertical,
|
Direction = FillDirection.Vertical,
|
||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
|
Loading…
Reference in New Issue
Block a user