mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 04:13:00 +08:00
Fix TestSceneSideOverlays
test failure
This commit is contained in:
parent
5d0b524794
commit
c107bfcd31
@ -10,13 +10,13 @@ namespace osu.Game.Overlays.Settings
|
|||||||
{
|
{
|
||||||
public partial class SettingsSidebar : ExpandingContainer
|
public partial class SettingsSidebar : ExpandingContainer
|
||||||
{
|
{
|
||||||
public const float DEFAULT_WIDTH = 70;
|
public const float CONTRACTED_WIDTH = 70;
|
||||||
public const int EXPANDED_WIDTH = 170;
|
public const int EXPANDED_WIDTH = 170;
|
||||||
|
|
||||||
protected override bool ExpandOnHover => false;
|
protected override bool ExpandOnHover => false;
|
||||||
|
|
||||||
public SettingsSidebar()
|
public SettingsSidebar()
|
||||||
: base(DEFAULT_WIDTH, EXPANDED_WIDTH)
|
: base(CONTRACTED_WIDTH, EXPANDED_WIDTH)
|
||||||
{
|
{
|
||||||
Expanded.Value = true;
|
Expanded.Value = true;
|
||||||
}
|
}
|
||||||
|
@ -66,7 +66,7 @@ namespace osu.Game.Overlays.Settings
|
|||||||
{
|
{
|
||||||
textIconContent = new Container
|
textIconContent = new Container
|
||||||
{
|
{
|
||||||
Width = SettingsSidebar.DEFAULT_WIDTH,
|
Width = SettingsSidebar.CONTRACTED_WIDTH,
|
||||||
RelativeSizeAxes = Axes.Y,
|
RelativeSizeAxes = Axes.Y,
|
||||||
Colour = OsuColour.Gray(0.6f),
|
Colour = OsuColour.Gray(0.6f),
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
|
@ -33,7 +33,7 @@ namespace osu.Game.Overlays
|
|||||||
|
|
||||||
public const float TRANSITION_LENGTH = 600;
|
public const float TRANSITION_LENGTH = 600;
|
||||||
|
|
||||||
private const float sidebar_width = SettingsSidebar.DEFAULT_WIDTH;
|
private const float sidebar_width = SettingsSidebar.EXPANDED_WIDTH;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The width of the settings panel content, excluding the sidebar.
|
/// The width of the settings panel content, excluding the sidebar.
|
||||||
|
Loading…
Reference in New Issue
Block a user