mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Fix misaligned settings buttons
This commit is contained in:
@ -28,6 +28,7 @@ namespace osu.Game.Overlays.KeyBinding
|
|||||||
this.variant = variant;
|
this.variant = variant;
|
||||||
|
|
||||||
FlowContent.Spacing = new Vector2(0, 1);
|
FlowContent.Spacing = new Vector2(0, 1);
|
||||||
|
FlowContent.Padding = new MarginPadding { Left = SettingsOverlay.CONTENT_MARGINS, Right = SettingsOverlay.CONTENT_MARGINS };
|
||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
|
@ -22,9 +22,8 @@ namespace osu.Game.Overlays.Settings.Sections.Audio
|
|||||||
LabelText = "Audio Offset",
|
LabelText = "Audio Offset",
|
||||||
Bindable = config.GetBindable<double>(OsuSetting.AudioOffset)
|
Bindable = config.GetBindable<double>(OsuSetting.AudioOffset)
|
||||||
},
|
},
|
||||||
new OsuButton
|
new SettingsButton
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
|
||||||
Text = "Offset wizard"
|
Text = "Offset wizard"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -24,9 +24,8 @@ namespace osu.Game.Overlays.Settings.Sections.Debug
|
|||||||
LabelText = "Active mode",
|
LabelText = "Active mode",
|
||||||
Bindable = config.GetBindable<GCLatencyMode>(DebugSetting.ActiveGCMode)
|
Bindable = config.GetBindable<GCLatencyMode>(DebugSetting.ActiveGCMode)
|
||||||
},
|
},
|
||||||
new OsuButton
|
new SettingsButton
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
|
||||||
Text = "Force garbage collection",
|
Text = "Force garbage collection",
|
||||||
Action = GC.Collect
|
Action = GC.Collect
|
||||||
},
|
},
|
||||||
|
@ -230,15 +230,13 @@ namespace osu.Game.Overlays.Settings.Sections.General
|
|||||||
LabelText = "Stay logged in",
|
LabelText = "Stay logged in",
|
||||||
Bindable = config.GetBindable<bool>(OsuSetting.SavePassword),
|
Bindable = config.GetBindable<bool>(OsuSetting.SavePassword),
|
||||||
},
|
},
|
||||||
new OsuButton
|
new SettingsButton
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
|
||||||
Text = "Sign in",
|
Text = "Sign in",
|
||||||
Action = performLogin
|
Action = performLogin
|
||||||
},
|
},
|
||||||
new OsuButton
|
new SettingsButton
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
|
||||||
Text = "Register new account",
|
Text = "Register new account",
|
||||||
//Action = registerLink
|
//Action = registerLink
|
||||||
}
|
}
|
||||||
|
@ -23,9 +23,8 @@ namespace osu.Game.Overlays.Settings.Sections.General
|
|||||||
LabelText = "Release stream",
|
LabelText = "Release stream",
|
||||||
Bindable = config.GetBindable<ReleaseStream>(OsuSetting.ReleaseStream),
|
Bindable = config.GetBindable<ReleaseStream>(OsuSetting.ReleaseStream),
|
||||||
},
|
},
|
||||||
new OsuButton
|
new SettingsButton
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
|
||||||
Text = "Open osu! folder",
|
Text = "Open osu! folder",
|
||||||
Action = storage.OpenInNativeExplorer,
|
Action = storage.OpenInNativeExplorer,
|
||||||
}
|
}
|
||||||
|
@ -14,9 +14,8 @@ namespace osu.Game.Overlays.Settings.Sections.Input
|
|||||||
{
|
{
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
new OsuButton
|
new SettingsButton
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
|
||||||
Text = "Key Configuration",
|
Text = "Key Configuration",
|
||||||
Action = keyConfig.ToggleVisibility
|
Action = keyConfig.ToggleVisibility
|
||||||
},
|
},
|
||||||
|
@ -22,9 +22,8 @@ namespace osu.Game.Overlays.Settings.Sections.Maintenance
|
|||||||
{
|
{
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
importButton = new OsuButton
|
importButton = new SettingsButton
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
|
||||||
Text = "Import beatmaps from stable",
|
Text = "Import beatmaps from stable",
|
||||||
Action = () =>
|
Action = () =>
|
||||||
{
|
{
|
||||||
@ -32,9 +31,8 @@ namespace osu.Game.Overlays.Settings.Sections.Maintenance
|
|||||||
Task.Run(() => beatmaps.ImportFromStable()).ContinueWith(t => Schedule(() => importButton.Enabled.Value = true));
|
Task.Run(() => beatmaps.ImportFromStable()).ContinueWith(t => Schedule(() => importButton.Enabled.Value = true));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
deleteButton = new OsuButton
|
deleteButton = new SettingsButton
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
|
||||||
Text = "Delete ALL beatmaps",
|
Text = "Delete ALL beatmaps",
|
||||||
Action = () =>
|
Action = () =>
|
||||||
{
|
{
|
||||||
@ -42,9 +40,8 @@ namespace osu.Game.Overlays.Settings.Sections.Maintenance
|
|||||||
Task.Run(() => beatmaps.DeleteAll()).ContinueWith(t => Schedule(() => deleteButton.Enabled.Value = true));
|
Task.Run(() => beatmaps.DeleteAll()).ContinueWith(t => Schedule(() => deleteButton.Enabled.Value = true));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
restoreButton = new OsuButton
|
restoreButton = new SettingsButton
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
|
||||||
Text = "Restore all hidden difficulties",
|
Text = "Restore all hidden difficulties",
|
||||||
Action = () =>
|
Action = () =>
|
||||||
{
|
{
|
||||||
|
17
osu.Game/Overlays/Settings/SettingsButton.cs
Normal file
17
osu.Game/Overlays/Settings/SettingsButton.cs
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
|
||||||
|
|
||||||
|
using osu.Framework.Graphics;
|
||||||
|
using osu.Game.Graphics.UserInterface;
|
||||||
|
|
||||||
|
namespace osu.Game.Overlays.Settings.Sections
|
||||||
|
{
|
||||||
|
public class SettingsButton : OsuButton
|
||||||
|
{
|
||||||
|
public SettingsButton()
|
||||||
|
{
|
||||||
|
RelativeSizeAxes = Axes.X;
|
||||||
|
Padding = new MarginPadding { Left = SettingsOverlay.CONTENT_MARGINS, Right = SettingsOverlay.CONTENT_MARGINS };
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -288,6 +288,7 @@
|
|||||||
<Compile Include="Migrations\OsuDbContextModelSnapshot.cs" />
|
<Compile Include="Migrations\OsuDbContextModelSnapshot.cs" />
|
||||||
<Compile Include="Online\API\Requests\GetBeatmapSetRequest.cs" />
|
<Compile Include="Online\API\Requests\GetBeatmapSetRequest.cs" />
|
||||||
<Compile Include="Online\API\Requests\GetBeatmapSetsResponse.cs" />
|
<Compile Include="Online\API\Requests\GetBeatmapSetsResponse.cs" />
|
||||||
|
<Compile Include="Overlays\Settings\SettingsButton.cs" />
|
||||||
<Compile Include="Screens\Edit\Screens\Compose\Timeline\BeatmapWaveformGraph.cs" />
|
<Compile Include="Screens\Edit\Screens\Compose\Timeline\BeatmapWaveformGraph.cs" />
|
||||||
<Compile Include="Beatmaps\Drawables\DifficultyColouredContainer.cs" />
|
<Compile Include="Beatmaps\Drawables\DifficultyColouredContainer.cs" />
|
||||||
<Compile Include="Beatmaps\Drawables\DifficultyIcon.cs" />
|
<Compile Include="Beatmaps\Drawables\DifficultyIcon.cs" />
|
||||||
|
Reference in New Issue
Block a user