mirror of
https://github.com/osukey/osukey.git
synced 2025-05-09 23:57:18 +09:00
Update DirectListPanel to use same styling
This commit is contained in:
parent
a5074d550c
commit
7f30f61d1b
@ -15,6 +15,7 @@ using osu.Framework.Graphics.Sprites;
|
|||||||
using osu.Framework.Localisation;
|
using osu.Framework.Localisation;
|
||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
using osu.Game.Beatmaps.Drawables;
|
using osu.Game.Beatmaps.Drawables;
|
||||||
|
using osu.Game.Graphics.Containers;
|
||||||
|
|
||||||
namespace osu.Game.Overlays.Direct
|
namespace osu.Game.Overlays.Direct
|
||||||
{
|
{
|
||||||
@ -163,26 +164,21 @@ namespace osu.Game.Overlays.Direct
|
|||||||
{
|
{
|
||||||
new Statistic(FontAwesome.Solid.PlayCircle, SetInfo.OnlineInfo?.PlayCount ?? 0),
|
new Statistic(FontAwesome.Solid.PlayCircle, SetInfo.OnlineInfo?.PlayCount ?? 0),
|
||||||
new Statistic(FontAwesome.Solid.Heart, SetInfo.OnlineInfo?.FavouriteCount ?? 0),
|
new Statistic(FontAwesome.Solid.Heart, SetInfo.OnlineInfo?.FavouriteCount ?? 0),
|
||||||
new FillFlowContainer
|
new LinkFlowContainer(s =>
|
||||||
|
{
|
||||||
|
s.Shadow = false;
|
||||||
|
s.Font = OsuFont.GetFont(size: 14);
|
||||||
|
})
|
||||||
{
|
{
|
||||||
Anchor = Anchor.TopRight,
|
Anchor = Anchor.TopRight,
|
||||||
Origin = Anchor.TopRight,
|
Origin = Anchor.TopRight,
|
||||||
AutoSizeAxes = Axes.Both,
|
AutoSizeAxes = Axes.Both,
|
||||||
Direction = FillDirection.Horizontal,
|
}.With(d =>
|
||||||
Children = new[]
|
{
|
||||||
{
|
d.AutoSizeAxes = Axes.Both;
|
||||||
new OsuSpriteText
|
d.AddText("mapped by ");
|
||||||
{
|
d.AddUserLink(SetInfo.Metadata.Author);
|
||||||
Text = "mapped by ",
|
}),
|
||||||
Font = OsuFont.GetFont(size: 14)
|
|
||||||
},
|
|
||||||
new OsuSpriteText
|
|
||||||
{
|
|
||||||
Text = SetInfo.Metadata.Author.Username,
|
|
||||||
Font = OsuFont.GetFont(size: 14, weight: FontWeight.SemiBold, italics: true)
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
new OsuSpriteText
|
new OsuSpriteText
|
||||||
{
|
{
|
||||||
Text = SetInfo.Metadata.Source,
|
Text = SetInfo.Metadata.Source,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user