Skip to content

Commit

Permalink
change MouseMoveNormalizedFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
a1xd committed Sep 24, 2021
1 parent 79c6a88 commit f932312
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
19 changes: 9 additions & 10 deletions grapher/Constants/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,6 @@ public static class Constants
/// <summary> Text to directionality panel title when panel is open. </summary>
public const string DirectionalityTitleOpen = "Anisotropy \u25B2";

/// <summary> Default last mouse move label text format. </summary>
public const string MouseMoveDefaultFormat = "Last (x, y): ({0}, {1})";

/// <summary> Last mouse move label text format when last input was from a dpi normalized device. </summary>
public const string MouseMoveNormalizedFormat = MouseMoveDefaultFormat + "!";

/// <summary> Style used by System.Double.Parse </summary>
public const NumberStyles FloatStyle = NumberStyles.Float | NumberStyles.AllowThousands;

Expand All @@ -151,6 +145,15 @@ public static class Constants

/// <summary> Line Width For Series data on chart </summary>
public const int ChartSeriesLineWidth = 3;
#endregion Constants

#region ReadOnly

/// <summary> Default last mouse move label text format. </summary>
public static readonly string MouseMoveDefaultFormat = "Last (x, y): ({0}, {1})";

/// <summary> Last mouse move label text format when last input was from a dpi normalized device. </summary>
public static readonly string MouseMoveNormalizedFormat = $"{MouseMoveDefaultFormat} (n)";

/// <summary> Marker size for last-mouse-move chart series. </summary>
public const int DotMarkerSize = 7;
Expand All @@ -167,10 +170,6 @@ public static class Constants
/// <summary> Background Color When Streamer Mode Inactive </summary>
public static readonly System.Drawing.Color bgNoStreamer = System.Drawing.Color.White;

#endregion Constants

#region ReadOnly

/// <summary> Color of font in active value labels. </summary>
public static readonly Color ActiveValueFontColor = Color.FromArgb(255, 65, 65, 65);

Expand Down
4 changes: 2 additions & 2 deletions grapher/Models/Mouse/MouseWatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -761,8 +761,8 @@ public void ReadMouseMove(Message message)
if (normalized != LastMoveNormalized)
{
LastMoveDisplayFormat = normalized ?
Constants.MouseMoveNormalizedFormat :
Constants.MouseMoveDefaultFormat;
Constants.MouseMoveNormalizedFormat :
Constants.MouseMoveDefaultFormat;
LastMoveNormalized = normalized;
}

Expand Down

0 comments on commit f932312

Please sign in to comment.