From 3723ea05de2b1222fbff6801e1ccb5d5c35a5b11 Mon Sep 17 00:00:00 2001 From: Andrei Zavatski Date: Sat, 22 Jun 2019 02:52:07 +0300 Subject: [PATCH] Adjust Title style --- osu.Game/Overlays/Profile/ProfileSection.cs | 26 +++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/osu.Game/Overlays/Profile/ProfileSection.cs b/osu.Game/Overlays/Profile/ProfileSection.cs index 8d1333b7ac..bdfdd44ac4 100644 --- a/osu.Game/Overlays/Profile/ProfileSection.cs +++ b/osu.Game/Overlays/Profile/ProfileSection.cs @@ -23,6 +23,7 @@ namespace osu.Game.Overlays.Profile private readonly FillFlowContainer content; private readonly Box background; + private readonly Box underscore; protected override Container Content => content; @@ -51,14 +52,30 @@ namespace osu.Game.Overlays.Profile RelativeSizeAxes = Axes.X, Children = new Drawable[] { - new OsuSpriteText + new Container { - Text = Title, - Font = OsuFont.GetFont(size: 20, weight: FontWeight.Regular, italics: true), + AutoSizeAxes = Axes.Both, Margin = new MarginPadding { Horizontal = UserProfileOverlay.CONTENT_X_MARGIN, - Vertical = 10 + Top = 15, + Bottom = 10, + }, + Children = new Drawable[] + { + new OsuSpriteText + { + Text = Title, + Font = OsuFont.GetFont(size: 20, weight: FontWeight.Bold), + }, + underscore = new Box + { + Anchor = Anchor.BottomCentre, + Origin = Anchor.TopCentre, + Margin = new MarginPadding { Top = 4 }, + RelativeSizeAxes = Axes.X, + Height = 2, + } } }, content = new FillFlowContainer @@ -81,6 +98,7 @@ namespace osu.Game.Overlays.Profile private void load(OsuColour colours) { background.Colour = colours.GreySeafoamDarker; + underscore.Colour = colours.Seafoam; } private class SectionTriangles : Container