mirror of
https://github.com/osukey/osukey.git
synced 2025-07-24 20:00:02 +09:00
Adjust design
This commit is contained in:
@ -65,28 +65,16 @@ namespace osu.Game.Screens.Ranking.Contracted
|
|||||||
},
|
},
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
// Buffered container is used to prevent 1px bleed outside the masking region
|
new Box
|
||||||
new BufferedContainer
|
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Children = new Drawable[]
|
Colour = Color4Extensions.FromHex("444")
|
||||||
{
|
},
|
||||||
new Box
|
new UserCoverBackground
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Colour = Color4Extensions.FromHex("444")
|
User = score.User,
|
||||||
},
|
Colour = ColourInfo.GradientVertical(Color4.White.Opacity(0.5f), Color4Extensions.FromHex("#444").Opacity(0))
|
||||||
new UserCoverBackground
|
|
||||||
{
|
|
||||||
RelativeSizeAxes = Axes.Both,
|
|
||||||
User = score.User,
|
|
||||||
},
|
|
||||||
new Box
|
|
||||||
{
|
|
||||||
RelativeSizeAxes = Axes.Both,
|
|
||||||
Colour = ColourInfo.GradientVertical(Color4.Black.Opacity(0.5f), Color4Extensions.FromHex("#444"))
|
|
||||||
},
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
new FillFlowContainer
|
new FillFlowContainer
|
||||||
{
|
{
|
||||||
@ -100,7 +88,7 @@ namespace osu.Game.Screens.Ranking.Contracted
|
|||||||
{
|
{
|
||||||
Anchor = Anchor.TopCentre,
|
Anchor = Anchor.TopCentre,
|
||||||
Origin = Anchor.TopCentre,
|
Origin = Anchor.TopCentre,
|
||||||
Size = new Vector2(140),
|
Size = new Vector2(110),
|
||||||
Masking = true,
|
Masking = true,
|
||||||
CornerExponent = 2.5f,
|
CornerExponent = 2.5f,
|
||||||
CornerRadius = 20,
|
CornerRadius = 20,
|
||||||
|
@ -23,12 +23,12 @@ namespace osu.Game.Screens.Ranking
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Width of the panel when contracted.
|
/// Width of the panel when contracted.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const float CONTRACTED_WIDTH = 160;
|
public const float CONTRACTED_WIDTH = 130;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Height of the panel when contracted.
|
/// Height of the panel when contracted.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private const float contracted_height = 385;
|
private const float contracted_height = 355;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Width of the panel when expanded.
|
/// Width of the panel when expanded.
|
||||||
@ -48,7 +48,7 @@ namespace osu.Game.Screens.Ranking
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Height of the top layer when the panel is contracted.
|
/// Height of the top layer when the panel is contracted.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private const float contracted_top_layer_height = 40;
|
private const float contracted_top_layer_height = 30;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Duration for the panel to resize into its expanded/contracted size.
|
/// Duration for the panel to resize into its expanded/contracted size.
|
||||||
|
Reference in New Issue
Block a user