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; RelativeSizeAxes = Axes.X;
AutoSizeAxes = Axes.Y; AutoSizeAxes = Axes.Y;
Direction = FillDirection.Vertical; Direction = FillDirection.Vertical;
Padding = new MarginPadding { Bottom = 50 };
} }
} }
} }

View File

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

View File

@ -8,6 +8,7 @@ using osu.Framework.Allocation;
using osu.Framework.Extensions.Color4Extensions; using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Graphics.Sprites; using osu.Framework.Graphics.Sprites;
using osu.Game.Graphics; using osu.Game.Graphics;
using osu.Game.Graphics.Containers; using osu.Game.Graphics.Containers;
@ -31,7 +32,7 @@ namespace osu.Game.Overlays.Changelog
} }
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load(CancellationToken? cancellation, IAPIProvider api) private void load(CancellationToken? cancellation, IAPIProvider api, OverlayColourProvider colourProvider)
{ {
bool complete = false; bool complete = false;
@ -63,10 +64,14 @@ namespace osu.Game.Overlays.Changelog
Children = new Drawable[] Children = new Drawable[]
{ {
new ChangelogBuildWithNavigation(build) { SelectBuild = SelectBuild }, 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); comments.ShowComments(CommentableType.Build, build.Id);