mirror of
https://github.com/osukey/osukey.git
synced 2025-05-19 12:37:38 +09:00
made DeleteAll-button pink
This commit is contained in:
parent
2e196661bb
commit
6ac33e3c00
23
osu.Game/Overlays/Settings/DangerousSettingsButton.cs
Normal file
23
osu.Game/Overlays/Settings/DangerousSettingsButton.cs
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
|
using osu.Framework.Allocation;
|
||||||
|
using osu.Game.Graphics;
|
||||||
|
|
||||||
|
namespace osu.Game.Overlays.Settings
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// A <see cref="SettingsButton"/> with pink colours to mark dangerous/destructive actions.
|
||||||
|
/// </summary>
|
||||||
|
public class DangerousSettingsButton : SettingsButton
|
||||||
|
{
|
||||||
|
[BackgroundDependencyLoader]
|
||||||
|
private void load(OsuColour colours)
|
||||||
|
{
|
||||||
|
BackgroundColour = colours.Pink;
|
||||||
|
|
||||||
|
Triangles.ColourDark = colours.PinkDark;
|
||||||
|
Triangles.ColourLight = colours.PinkLight;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -33,7 +33,7 @@ namespace osu.Game.Overlays.Settings.Sections.Maintenance
|
|||||||
.ContinueWith(t => Schedule(() => importButton.Enabled.Value = true), TaskContinuationOptions.LongRunning);
|
.ContinueWith(t => Schedule(() => importButton.Enabled.Value = true), TaskContinuationOptions.LongRunning);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
deleteButton = new SettingsButton
|
deleteButton = new DangerousSettingsButton
|
||||||
{
|
{
|
||||||
Text = "Delete ALL beatmaps",
|
Text = "Delete ALL beatmaps",
|
||||||
Action = () =>
|
Action = () =>
|
||||||
|
@ -270,6 +270,7 @@
|
|||||||
<Compile Include="Beatmaps\Formats\LegacyStoryboardDecoder.cs" />
|
<Compile Include="Beatmaps\Formats\LegacyStoryboardDecoder.cs" />
|
||||||
<Compile Include="Database\DatabaseContextFactory.cs" />
|
<Compile Include="Database\DatabaseContextFactory.cs" />
|
||||||
<Compile Include="Database\IHasPrimaryKey.cs" />
|
<Compile Include="Database\IHasPrimaryKey.cs" />
|
||||||
|
<Compile Include="Overlays\Settings\DangerousSettingsButton.cs" />
|
||||||
<Compile Include="Graphics\UserInterface\HoverClickSounds.cs" />
|
<Compile Include="Graphics\UserInterface\HoverClickSounds.cs" />
|
||||||
<Compile Include="Graphics\UserInterface\HoverSounds.cs" />
|
<Compile Include="Graphics\UserInterface\HoverSounds.cs" />
|
||||||
<Compile Include="Graphics\UserInterface\OsuButton.cs" />
|
<Compile Include="Graphics\UserInterface\OsuButton.cs" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user