Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8da038f

Browse files
committed
Revised colours
1 parent f0f2a72 commit 8da038f

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

Source/RunActivity/Viewer3D/Debugging/DebugViewerBetaForm.cs

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ public partial class DispatchViewerBeta : Form
6161
/// contains the last position of the mouse
6262
/// </summary>
6363
private System.Drawing.Point LastCursorPosition = new System.Drawing.Point();
64-
public Pen redPen = new Pen(Color.Red);
65-
public Pen greenPen = new Pen(Color.Green);
66-
public Pen orangePen = new Pen(Color.Orange);
64+
public Pen redPen = new Pen(Color.FromArgb(244, 67, 54));
65+
public Pen greenPen = new Pen(Color.FromArgb(76, 175, 80));
66+
public Pen orangePen = new Pen(Color.FromArgb(255, 235, 59));
6767
public Pen trainPen = new Pen(Color.DarkGreen);
68-
public Pen pathPen = new Pen(Color.DeepPink);
68+
public Pen pathPen = new Pen(Color.FromArgb(52, 152, 219));
6969
public Pen grayPen = new Pen(Color.Gray);
7070
public Pen PlatformPen = new Pen(Color.Blue);
7171
public Pen TrackPen = new Pen(Color.FromArgb(46, 64, 83));
@@ -140,6 +140,10 @@ void InitializeForm()
140140
messagesPanel.Visible = true;
141141
multiplayerSettingsPanel.Visible = true;
142142
}
143+
144+
float[] dashPattern = { 4, 2 };
145+
ZoomTargetPen.DashPattern = dashPattern;
146+
pathPen.DashPattern = dashPattern;
143147
}
144148

145149
#region initData
@@ -392,11 +396,6 @@ public void GenerateView(bool dragging = false)
392396
grayPen.Width = greenPen.Width = orangePen.Width = redPen.Width = penWidth;
393397
pathPen.Width = penWidth * 2;
394398

395-
float[] dashPattern = { 4, 2 };
396-
ZoomTargetPen.DashPattern = dashPattern;
397-
398-
399-
400399
var forwardDist = 100 / xScale; if (forwardDist < 5) forwardDist = 5;
401400

402401
/*PointF scaledA = new PointF(0, 0);
@@ -967,9 +966,9 @@ private void ShowSwitches(Graphics g, float width)
967966
var scaledItem = new PointF() { X = x, Y = y };
968967

969968
if (sw.Item.TrJunctionNode.SelectedRoute == sw.main)
970-
g.FillEllipse(Brushes.Black, DispatchViewer.GetRect(scaledItem, width));
969+
g.FillEllipse(new SolidBrush(Color.FromArgb(93, 64, 55)), DispatchViewer.GetRect(scaledItem, width));
971970
else
972-
g.FillEllipse(Brushes.Gray, DispatchViewer.GetRect(scaledItem, width));
971+
g.FillEllipse(new SolidBrush(Color.FromArgb(161, 136, 127)), DispatchViewer.GetRect(scaledItem, width));
973972

974973
sw.Location2D.X = scaledItem.X; sw.Location2D.Y = scaledItem.Y;
975974
switchItemsDrawn.Add(sw);
@@ -994,19 +993,19 @@ private void ShowSignals(Graphics g, PointF scaledB, float width)
994993
s.Location2D.X = scaledItem.X; s.Location2D.Y = scaledItem.Y;
995994
if (s.Signal.isSignalNormal())
996995
{
997-
var color = Brushes.Lime; // bright colour for readability
996+
var color = new SolidBrush(Color.FromArgb(76, 175, 80));
998997
var pen = greenPen;
999998
if (s.IsProceed == 0)
1000999
{
10011000
}
10021001
else if (s.IsProceed == 1)
10031002
{
1004-
color = Brushes.Yellow; // bright colour for readbility
1003+
color = new SolidBrush(Color.FromArgb(255, 235, 59));
10051004
pen = orangePen;
10061005
}
10071006
else
10081007
{
1009-
color = Brushes.Red;
1008+
color = new SolidBrush(Color.FromArgb(244, 67, 54));
10101009
pen = redPen;
10111010
}
10121011
g.FillEllipse(color, DispatchViewer.GetRect(scaledItem, width));

0 commit comments

Comments
 (0)