Use framework extension method for FromHex

This commit is contained in:
Dean Herbert
2020-03-11 10:18:41 +09:00
parent 1648a0d2d3
commit ed837d3115
44 changed files with 249 additions and 276 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.Containers;
using osu.Framework.Graphics.Shapes;
@ -170,7 +171,7 @@ namespace osu.Game.Overlays.Profile.Header
userCountryText.Text = user?.Country?.FullName ?? "Alien";
supporterTag.SupportLevel = user?.SupportLevel ?? 0;
titleText.Text = user?.Title ?? string.Empty;
titleText.Colour = OsuColour.FromHex(user?.Colour ?? "fff");
titleText.Colour = Color4Extensions.FromHex(user?.Colour ?? "fff");
userStats.Clear();