1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-19 07:23:20 +08:00
osu-lazer/osu.Game/Overlays/Settings/SettingsSidebar.cs
2023-12-26 20:09:34 +01:00

36 lines
1022 B
C#

// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Shapes;
using osu.Game.Graphics.Containers;
namespace osu.Game.Overlays.Settings
{
public partial class SettingsSidebar : ExpandingContainer
{
public const float CONTRACTED_WIDTH = 70;
public const int EXPANDED_WIDTH = 170;
protected override bool ExpandOnHover => false;
public SettingsSidebar()
: base(CONTRACTED_WIDTH, EXPANDED_WIDTH)
{
Expanded.Value = true;
}
[BackgroundDependencyLoader]
private void load(OverlayColourProvider colourProvider)
{
AddInternal(new Box
{
Colour = colourProvider.Background5,
RelativeSizeAxes = Axes.Both,
Depth = float.MaxValue
});
}
}
}