1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 14:17:26 +08:00
osu-lazer/osu.Game/Graphics/UserInterfaceV2/Users/UserListCard.cs

31 lines
856 B
C#
Raw Normal View History

2020-03-04 13:53:14 +08:00
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Game.Users;
using osu.Framework.Graphics;
using osu.Framework.Allocation;
using osu.Framework.Graphics.Colour;
using osu.Framework.Extensions.Color4Extensions;
using osuTK.Graphics;
2020-03-04 13:53:14 +08:00
namespace osu.Game.Graphics.UserInterfaceV2.Users
{
public class UserListCard : UserCard
{
public UserListCard(User user)
: base(user)
{
RelativeSizeAxes = Axes.X;
Height = 40;
CornerRadius = 6;
}
[BackgroundDependencyLoader]
private void load()
{
Background.Width = 0.5f;
Background.Colour = ColourInfo.GradientHorizontal(Color4.White.Opacity(1), Color4.White);
}
2020-03-04 13:53:14 +08:00
}
}