From f9323128aeffbfd2fe2931d6e5ad29acd394d878 Mon Sep 17 00:00:00 2001
From: a1xd <68629610+a1xd@users.noreply.github.com>
Date: Thu, 23 Sep 2021 03:11:17 -0400
Subject: change MouseMoveNormalizedFormat
---
grapher/Constants/Constants.cs | 19 +++++++++----------
grapher/Models/Mouse/MouseWatcher.cs | 4 ++--
2 files changed, 11 insertions(+), 12 deletions(-)
diff --git a/grapher/Constants/Constants.cs b/grapher/Constants/Constants.cs
index fa500de..af9db23 100644
--- a/grapher/Constants/Constants.cs
+++ b/grapher/Constants/Constants.cs
@@ -134,12 +134,6 @@ namespace grapher
/// Text to directionality panel title when panel is open.
public const string DirectionalityTitleOpen = "Anisotropy \u25B2";
- /// Default last mouse move label text format.
- public const string MouseMoveDefaultFormat = "Last (x, y): ({0}, {1})";
-
- /// Last mouse move label text format when last input was from a dpi normalized device.
- public const string MouseMoveNormalizedFormat = MouseMoveDefaultFormat + "!";
-
/// Style used by System.Double.Parse
public const NumberStyles FloatStyle = NumberStyles.Float | NumberStyles.AllowThousands;
@@ -151,6 +145,15 @@ namespace grapher
/// Line Width For Series data on chart
public const int ChartSeriesLineWidth = 3;
+ #endregion Constants
+
+ #region ReadOnly
+
+ /// Default last mouse move label text format.
+ public static readonly string MouseMoveDefaultFormat = "Last (x, y): ({0}, {1})";
+
+ /// Last mouse move label text format when last input was from a dpi normalized device.
+ public static readonly string MouseMoveNormalizedFormat = $"{MouseMoveDefaultFormat} (n)";
/// Marker size for last-mouse-move chart series.
public const int DotMarkerSize = 7;
@@ -167,10 +170,6 @@ namespace grapher
/// Background Color When Streamer Mode Inactive
public static readonly System.Drawing.Color bgNoStreamer = System.Drawing.Color.White;
- #endregion Constants
-
- #region ReadOnly
-
/// Color of font in active value labels.
public static readonly Color ActiveValueFontColor = Color.FromArgb(255, 65, 65, 65);
diff --git a/grapher/Models/Mouse/MouseWatcher.cs b/grapher/Models/Mouse/MouseWatcher.cs
index 723f97b..fb34dd6 100644
--- a/grapher/Models/Mouse/MouseWatcher.cs
+++ b/grapher/Models/Mouse/MouseWatcher.cs
@@ -761,8 +761,8 @@ namespace grapher.Models.Mouse
if (normalized != LastMoveNormalized)
{
LastMoveDisplayFormat = normalized ?
- Constants.MouseMoveNormalizedFormat :
- Constants.MouseMoveDefaultFormat;
+ Constants.MouseMoveNormalizedFormat :
+ Constants.MouseMoveDefaultFormat;
LastMoveNormalized = normalized;
}
--
cgit v1.2.3