summaryrefslogtreecommitdiff
path: root/grapher/Models/Options/ActiveValueLabel.cs
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2020-09-01 02:39:09 -0700
committerJacob Palecki <[email protected]>2020-09-01 02:39:09 -0700
commit4aa2f3ed741dcbd39233e125a34cac8163267d8d (patch)
tree59399d8d793e7aa35c3a79fe369d19f7c3935ae4 /grapher/Models/Options/ActiveValueLabel.cs
parentAdd constants class and separate classes into regions (diff)
downloadrawaccel-4aa2f3ed741dcbd39233e125a34cac8163267d8d.tar.xz
rawaccel-4aa2f3ed741dcbd39233e125a34cac8163267d8d.zip
Move constants to central class
Diffstat (limited to 'grapher/Models/Options/ActiveValueLabel.cs')
-rw-r--r--grapher/Models/Options/ActiveValueLabel.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/grapher/Models/Options/ActiveValueLabel.cs b/grapher/Models/Options/ActiveValueLabel.cs
index b2355b5..d2b43ab 100644
--- a/grapher/Models/Options/ActiveValueLabel.cs
+++ b/grapher/Models/Options/ActiveValueLabel.cs
@@ -12,8 +12,6 @@ namespace grapher.Models.Options
{
#region Constants
- public const string DefaultFormatString = "0.######";
- public static readonly Color ActiveValueFontColor = Color.FromArgb(255, 65, 65, 65);
#endregion Constants
@@ -29,13 +27,13 @@ namespace grapher.Models.Options
public ActiveValueLabel(Label valueLabel, Label centeringLabel)
{
ValueLabel = valueLabel;
- ValueLabel.ForeColor = ActiveValueFontColor;
+ ValueLabel.ForeColor = Constants.ActiveValueFontColor;
Left = centeringLabel.Left;
Width = centeringLabel.Width;
ValueLabel.AutoSize = false;
ValueLabel.TextAlign = ContentAlignment.MiddleCenter;
- FormatString = DefaultFormatString;
+ FormatString = Constants.DefaultActiveValueFormatString;
Prefix = string.Empty;
}