1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 02:43:19 +08:00

Improve paddings of collection management dialog

This commit is contained in:
Dean Herbert 2020-09-08 12:51:42 +09:00
parent ab58f60529
commit 3e96c6d036
2 changed files with 2 additions and 2 deletions

View File

@ -13,13 +13,14 @@ namespace osu.Game.Collections
protected override ScrollContainer<Drawable> CreateScrollContainer() => base.CreateScrollContainer().With(d => protected override ScrollContainer<Drawable> CreateScrollContainer() => base.CreateScrollContainer().With(d =>
{ {
d.ScrollbarVisible = false; d.ScrollbarVisible = false;
d.Padding = new MarginPadding(10);
}); });
protected override FillFlowContainer<RearrangeableListItem<BeatmapCollection>> CreateListFillFlowContainer() => new FillFlowContainer<RearrangeableListItem<BeatmapCollection>> protected override FillFlowContainer<RearrangeableListItem<BeatmapCollection>> CreateListFillFlowContainer() => new FillFlowContainer<RearrangeableListItem<BeatmapCollection>>
{ {
LayoutDuration = 200, LayoutDuration = 200,
LayoutEasing = Easing.OutQuint, LayoutEasing = Easing.OutQuint,
Spacing = new Vector2(0, 2) Spacing = new Vector2(0, 5)
}; };
protected override OsuRearrangeableListItem<BeatmapCollection> CreateOsuDrawable(BeatmapCollection item) => new DrawableCollectionListItem(item); protected override OsuRearrangeableListItem<BeatmapCollection> CreateOsuDrawable(BeatmapCollection item) => new DrawableCollectionListItem(item);

View File

@ -25,7 +25,6 @@ namespace osu.Game.Collections
public DrawableCollectionListItem(BeatmapCollection item) public DrawableCollectionListItem(BeatmapCollection item)
: base(item) : base(item)
{ {
Padding = new MarginPadding { Right = 20 };
} }
protected override Drawable CreateContent() => new ItemContent(Model); protected override Drawable CreateContent() => new ItemContent(Model);