mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Adjust comments placement
This commit is contained in:
@ -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 };
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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 },
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
Reference in New Issue
Block a user