1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 07:32:55 +08:00

Adjust comments placement

This commit is contained in:
Andrei Zavatski 2020-02-21 17:29:51 +03:00
parent 48a9b465ef
commit c49074dde3
3 changed files with 10 additions and 6 deletions

View File

@ -19,7 +19,6 @@ namespace osu.Game.Overlays.Changelog
RelativeSizeAxes = Axes.X;
AutoSizeAxes = Axes.Y;
Direction = FillDirection.Vertical;
Padding = new MarginPadding { Bottom = 50 };
}
}
}

View File

@ -40,7 +40,7 @@ namespace osu.Game.Overlays.Changelog
{
RelativeSizeAxes = Axes.X,
Height = 2,
Colour = new Color4(17, 17, 17, 255),
Colour = colourProvider.Background6,
Margin = new MarginPadding { Top = 30 },
});
}

View File

@ -8,6 +8,7 @@ using osu.Framework.Allocation;
using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Graphics.Sprites;
using osu.Game.Graphics;
using osu.Game.Graphics.Containers;
@ -31,7 +32,7 @@ namespace osu.Game.Overlays.Changelog
}
[BackgroundDependencyLoader]
private void load(CancellationToken? cancellation, IAPIProvider api)
private void load(CancellationToken? cancellation, IAPIProvider api, OverlayColourProvider colourProvider)
{
bool complete = false;
@ -63,10 +64,14 @@ namespace osu.Game.Overlays.Changelog
Children = new Drawable[]
{
new ChangelogBuildWithNavigation(build) { SelectBuild = SelectBuild },
comments = new CommentsContainer
new Box
{
Margin = new MarginPadding { Top = 10 }
}
RelativeSizeAxes = Axes.X,
Height = 2,
Colour = colourProvider.Background6,
Margin = new MarginPadding { Top = 30 },
},
comments = new CommentsContainer()
};
comments.ShowComments(CommentableType.Build, build.Id);