mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Add osu!-styled colour picker control
This commit is contained in:
19
osu.Game/Graphics/UserInterfaceV2/OsuColourPicker.cs
Normal file
19
osu.Game/Graphics/UserInterfaceV2/OsuColourPicker.cs
Normal file
@ -0,0 +1,19 @@
|
||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using osu.Framework.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterfaceV2
|
||||
{
|
||||
public class OsuColourPicker : ColourPicker
|
||||
{
|
||||
public OsuColourPicker()
|
||||
{
|
||||
CornerRadius = 10;
|
||||
Masking = true;
|
||||
}
|
||||
|
||||
protected override HSVColourPicker CreateHSVColourPicker() => new OsuHSVColourPicker();
|
||||
protected override HexColourPicker CreateHexColourPicker() => new OsuHexColourPicker();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user