mirror of
https://github.com/ppy/osu
synced 2024-12-14 19:06:07 +00:00
Reduce width of sidebar buttons
This commit is contained in:
parent
9a1a97180d
commit
5de8307918
@ -11,7 +11,7 @@ namespace osu.Game.Overlays.Settings
|
||||
public partial class SettingsSidebar : ExpandingContainer
|
||||
{
|
||||
public const float DEFAULT_WIDTH = 70;
|
||||
public const int EXPANDED_WIDTH = 200;
|
||||
public const int EXPANDED_WIDTH = 170;
|
||||
|
||||
protected override bool ExpandOnHover => false;
|
||||
|
||||
|
@ -69,18 +69,18 @@ namespace osu.Game.Overlays.Settings
|
||||
Colour = OsuColour.Gray(0.6f),
|
||||
Children = new Drawable[]
|
||||
{
|
||||
headerText = new OsuSpriteText
|
||||
{
|
||||
Position = new Vector2(SettingsSidebar.DEFAULT_WIDTH + 10, 0),
|
||||
Anchor = Anchor.CentreLeft,
|
||||
Origin = Anchor.CentreLeft,
|
||||
},
|
||||
iconContainer = new ConstrainedIconContainer
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
Size = new Vector2(20),
|
||||
},
|
||||
headerText = new OsuSpriteText
|
||||
{
|
||||
Position = new Vector2(60, 0),
|
||||
Anchor = Anchor.CentreLeft,
|
||||
Origin = Anchor.CentreLeft,
|
||||
},
|
||||
}
|
||||
},
|
||||
selectionIndicator = new CircularContainer
|
||||
|
Loading…
Reference in New Issue
Block a user