Rename DropdownButton to DropdownHeader

This commit is contained in:
Andrei Zavatski 2021-05-11 16:42:18 +03:00
parent 208224cc0d
commit 1c0b0996cf

View File

@ -38,7 +38,7 @@ namespace osu.Game.Overlays.News.Sidebar
Spacing = new Vector2(0, 5), Spacing = new Vector2(0, 5),
Children = new Drawable[] Children = new Drawable[]
{ {
new DropdownButton(posts.ElementAt(0).PublishedAt) new DropdownHeader(posts.ElementAt(0).PublishedAt)
{ {
IsOpen = { BindTarget = IsOpen } IsOpen = { BindTarget = IsOpen }
}, },
@ -96,15 +96,16 @@ namespace osu.Game.Overlays.News.Sidebar
} }
} }
private class DropdownButton : OsuClickableContainer private class DropdownHeader : OsuClickableContainer
{ {
public readonly BindableBool IsOpen = new BindableBool(); public readonly BindableBool IsOpen = new BindableBool();
private readonly SpriteIcon icon; private readonly SpriteIcon icon;
public DropdownButton(DateTimeOffset date) public DropdownHeader(DateTimeOffset date)
{ {
Size = new Vector2(160, header_height); RelativeSizeAxes = Axes.X;
Height = header_height;
Action = IsOpen.Toggle; Action = IsOpen.Toggle;
Children = new Drawable[] Children = new Drawable[]
{ {