1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-08 23:32:59 +08:00

Make save changes button more prominent

This commit is contained in:
Dean Herbert 2020-03-06 17:43:47 +09:00
parent aeb6bf5b46
commit 01e32896ee

View File

@ -22,6 +22,7 @@ using osu.Game.Online.API.Requests;
using osu.Game.Tournament.IPC; using osu.Game.Tournament.IPC;
using osu.Game.Tournament.Models; using osu.Game.Tournament.Models;
using osu.Game.Users; using osu.Game.Users;
using osuTK;
using osuTK.Graphics; using osuTK.Graphics;
using osuTK.Input; using osuTK.Input;
@ -74,17 +75,41 @@ namespace osu.Game.Tournament
AddRange(new[] AddRange(new[]
{ {
new Container
{
CornerRadius = 10,
Depth = float.MinValue,
Position = new Vector2(5),
Masking = true,
AutoSizeAxes = Axes.Both,
Anchor = Anchor.BottomRight,
Origin = Anchor.BottomRight,
Children = new Drawable[]
{
new Box
{
Colour = OsuColour.Gray(0.2f),
RelativeSizeAxes = Axes.Both,
},
new TourneyButton new TourneyButton
{ {
Text = "Save Changes", Text = "Save Changes",
Width = 140, Width = 140,
Height = 50, Height = 50,
Depth = float.MinValue, Padding = new MarginPadding
Anchor = Anchor.BottomRight, {
Origin = Anchor.BottomRight, Top = 10,
Padding = new MarginPadding(10), Left = 10,
},
Margin = new MarginPadding
{
Right = 10,
Bottom = 10,
},
Action = SaveChanges, Action = SaveChanges,
}, },
}
},
heightWarning = new Container heightWarning = new Container
{ {
Masking = true, Masking = true,