mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 07:42:57 +08:00
Reduce size and fix alignment of back button
This commit is contained in:
parent
6f672b8cb3
commit
8cd240fbec
@ -37,7 +37,7 @@ namespace osu.Game.Overlays
|
|||||||
|
|
||||||
public partial class BackButton : SidebarButton
|
public partial class BackButton : SidebarButton
|
||||||
{
|
{
|
||||||
private Container content;
|
private Drawable content;
|
||||||
|
|
||||||
public BackButton()
|
public BackButton()
|
||||||
: base(HoverSampleSet.Default)
|
: base(HoverSampleSet.Default)
|
||||||
@ -49,30 +49,31 @@ namespace osu.Game.Overlays
|
|||||||
{
|
{
|
||||||
Size = new Vector2(SettingsSidebar.EXPANDED_WIDTH);
|
Size = new Vector2(SettingsSidebar.EXPANDED_WIDTH);
|
||||||
|
|
||||||
Padding = new MarginPadding(5);
|
Padding = new MarginPadding(40);
|
||||||
|
|
||||||
AddRange(new Drawable[]
|
AddRange(new Drawable[]
|
||||||
{
|
{
|
||||||
content = new Container
|
content = new FillFlowContainer
|
||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
|
Direction = FillDirection.Vertical,
|
||||||
|
AutoSizeAxes = Axes.Both,
|
||||||
|
Spacing = new Vector2(5),
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
new SpriteIcon
|
new SpriteIcon
|
||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.TopCentre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.TopCentre,
|
||||||
Y = -5,
|
|
||||||
Size = new Vector2(30),
|
Size = new Vector2(30),
|
||||||
Shadow = true,
|
Shadow = true,
|
||||||
Icon = FontAwesome.Solid.ChevronLeft
|
Icon = FontAwesome.Solid.ChevronLeft
|
||||||
},
|
},
|
||||||
new OsuSpriteText
|
new OsuSpriteText
|
||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.TopCentre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.TopCentre,
|
||||||
Y = 30,
|
|
||||||
Font = OsuFont.GetFont(size: 16, weight: FontWeight.Regular),
|
Font = OsuFont.GetFont(size: 16, weight: FontWeight.Regular),
|
||||||
Text = @"back",
|
Text = @"back",
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user