From b4c01f104bbbe1b788d2258d043bc8741c0443c8 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Mon, 30 Jan 2017 18:10:30 +0900 Subject: [PATCH] Make buttons look closer to the design. --- osu.Game/Graphics/UserInterface/OsuButton.cs | 21 +++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/osu.Game/Graphics/UserInterface/OsuButton.cs b/osu.Game/Graphics/UserInterface/OsuButton.cs index 2afcf56140..7314d0006e 100644 --- a/osu.Game/Graphics/UserInterface/OsuButton.cs +++ b/osu.Game/Graphics/UserInterface/OsuButton.cs @@ -2,23 +2,34 @@ //Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System; -using OpenTK.Graphics; -using osu.Framework.Allocation; -using osu.Framework.Graphics.UserInterface; - +using OpenTK.Graphics; +using osu.Framework.Allocation; +using osu.Framework.Graphics; +using osu.Framework.Graphics.UserInterface; +using osu.Game.Graphics.Backgrounds; + namespace osu.Game.Graphics.UserInterface { public class OsuButton : Button { public OsuButton() { - Height = 25; + Height = 40; } [BackgroundDependencyLoader] private void load(OsuColour colours) { Colour = colours.BlueDark; + Masking = true; + CornerRadius = 5; + + Add(new Triangles + { + RelativeSizeAxes = Axes.Both, + ColourDark = colours.BlueDarker, + ColourLight = colours.Blue, + }); } } } \ No newline at end of file