Fix behaviour screen using old style buttons

This commit is contained in:
Dean Herbert
2022-05-10 17:35:43 +09:00
parent 61313b69ec
commit 63b9e01d38

View File

@ -9,7 +9,7 @@ using osu.Framework.Localisation;
using osu.Framework.Testing; using osu.Framework.Testing;
using osu.Game.Graphics; using osu.Game.Graphics;
using osu.Game.Graphics.Containers; using osu.Game.Graphics.Containers;
using osu.Game.Graphics.UserInterface; using osu.Game.Graphics.UserInterfaceV2;
using osu.Game.Localisation; using osu.Game.Localisation;
using osu.Game.Overlays.Settings; using osu.Game.Overlays.Settings;
using osu.Game.Overlays.Settings.Sections; using osu.Game.Overlays.Settings.Sections;
@ -22,7 +22,7 @@ namespace osu.Game.Overlays.FirstRunSetup
private SearchContainer<SettingsSection> searchContainer; private SearchContainer<SettingsSection> searchContainer;
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load() private void load(OsuColour colours)
{ {
Content.Children = new Drawable[] Content.Children = new Drawable[]
{ {
@ -50,7 +50,7 @@ namespace osu.Game.Overlays.FirstRunSetup
{ {
new[] new[]
{ {
new TriangleButton new RoundedButton
{ {
Anchor = Anchor.TopLeft, Anchor = Anchor.TopLeft,
Origin = Anchor.TopLeft, Origin = Anchor.TopLeft,
@ -59,10 +59,11 @@ namespace osu.Game.Overlays.FirstRunSetup
Action = applyStandard, Action = applyStandard,
}, },
Empty(), Empty(),
new DangerousTriangleButton new RoundedButton
{ {
Anchor = Anchor.TopRight, Anchor = Anchor.TopRight,
Origin = Anchor.TopRight, Origin = Anchor.TopRight,
BackgroundColour = colours.Pink3,
Text = FirstRunSetupOverlayStrings.ClassicDefaults, Text = FirstRunSetupOverlayStrings.ClassicDefaults,
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
Action = applyClassic Action = applyClassic