Remove grid usage in KeyBindingRow

This commit is contained in:
Bartłomiej Dach
2021-10-18 20:36:47 +02:00
parent 830f49bca6
commit 6c3637a62a

View File

@ -82,32 +82,29 @@ namespace osu.Game.Overlays.Settings.Sections.Input
{ {
RelativeSizeAxes = Axes.X; RelativeSizeAxes = Axes.X;
AutoSizeAxes = Axes.Y; AutoSizeAxes = Axes.Y;
Padding = new MarginPadding { Right = SettingsPanel.CONTENT_MARGINS };
InternalChild = new GridContainer InternalChildren = new Drawable[]
{ {
RelativeSizeAxes = Axes.X, new Container
AutoSizeAxes = Axes.Y,
ColumnDimensions = new[]
{ {
new Dimension(GridSizeMode.Absolute, SettingsPanel.CONTENT_MARGINS), RelativeSizeAxes = Axes.Y,
new Dimension(), Width = SettingsPanel.CONTENT_MARGINS,
new Dimension(GridSizeMode.Absolute, SettingsPanel.CONTENT_MARGINS), Child = new RestoreDefaultValueButton<bool>
},
RowDimensions = new[]
{
new Dimension(GridSizeMode.AutoSize)
},
Content = new[]
{
new Drawable[]
{
new RestoreDefaultValueButton<bool>
{ {
Current = isDefault, Current = isDefault,
Action = RestoreDefaults, Action = RestoreDefaults,
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.Centre Origin = Anchor.Centre,
}
}, },
new Container
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Padding = new MarginPadding { Left = SettingsPanel.CONTENT_MARGINS },
Children = new Drawable[]
{
content = new Container content = new Container
{ {
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
@ -154,10 +151,10 @@ namespace osu.Game.Overlays.Settings.Sections.Input
}, },
} }
} }
}
}
}, },
new HoverClickSounds() new HoverClickSounds()
}
}
}; };
foreach (var b in bindings) foreach (var b in bindings)