From e18f95185feca212d68327e3f89ab87332f2b927 Mon Sep 17 00:00:00 2001 From: EVAST9919 Date: Fri, 19 May 2017 06:39:39 +0300 Subject: [PATCH] More constants --- osu.Game/Graphics/UserInterface/SettingsContainer.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/osu.Game/Graphics/UserInterface/SettingsContainer.cs b/osu.Game/Graphics/UserInterface/SettingsContainer.cs index df60ed9f35..45ba2f8677 100644 --- a/osu.Game/Graphics/UserInterface/SettingsContainer.cs +++ b/osu.Game/Graphics/UserInterface/SettingsContainer.cs @@ -18,6 +18,10 @@ public abstract class SettingsContainer : Container public abstract string Title { get; } private const float transition_duration = 600; + private const int container_width = 250; + private const int border_thickness = 2; + private const int header_height = 30; + private const int corner_radius = 5; private readonly FillFlowContainer content; private readonly SimpleButton button; @@ -26,11 +30,11 @@ public abstract class SettingsContainer : Container protected SettingsContainer() { AutoSizeAxes = Axes.Y; - Width = 250; + Width = container_width; Masking = true; - CornerRadius = 5; + CornerRadius = corner_radius; BorderColour = Color4.Black; - BorderThickness = 2; + BorderThickness = border_thickness; Children = new Drawable[] { @@ -51,7 +55,7 @@ protected SettingsContainer() new Container { RelativeSizeAxes = Axes.X, - Height = 30, + Height = header_height, Origin = Anchor.TopCentre, Anchor = Anchor.TopCentre,