Reduce width of sidebar buttons

This commit is contained in:
Dean Herbert 2023-12-27 02:38:23 +09:00
parent 9a1a97180d
commit 5de8307918
No known key found for this signature in database
2 changed files with 7 additions and 7 deletions

View File

@ -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;

View File

@ -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