@@ -61,11 +61,11 @@ public partial class DispatchViewerBeta : Form
61
61
/// contains the last position of the mouse
62
62
/// </summary>
63
63
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 ) ) ;
67
67
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 ) ) ;
69
69
public Pen grayPen = new Pen ( Color . Gray ) ;
70
70
public Pen PlatformPen = new Pen ( Color . Blue ) ;
71
71
public Pen TrackPen = new Pen ( Color . FromArgb ( 46 , 64 , 83 ) ) ;
@@ -140,6 +140,10 @@ void InitializeForm()
140
140
messagesPanel . Visible = true ;
141
141
multiplayerSettingsPanel . Visible = true ;
142
142
}
143
+
144
+ float [ ] dashPattern = { 4 , 2 } ;
145
+ ZoomTargetPen . DashPattern = dashPattern ;
146
+ pathPen . DashPattern = dashPattern ;
143
147
}
144
148
145
149
#region initData
@@ -392,11 +396,6 @@ public void GenerateView(bool dragging = false)
392
396
grayPen . Width = greenPen . Width = orangePen . Width = redPen . Width = penWidth ;
393
397
pathPen . Width = penWidth * 2 ;
394
398
395
- float [ ] dashPattern = { 4 , 2 } ;
396
- ZoomTargetPen . DashPattern = dashPattern ;
397
-
398
-
399
-
400
399
var forwardDist = 100 / xScale ; if ( forwardDist < 5 ) forwardDist = 5 ;
401
400
402
401
/*PointF scaledA = new PointF(0, 0);
@@ -967,9 +966,9 @@ private void ShowSwitches(Graphics g, float width)
967
966
var scaledItem = new PointF ( ) { X = x , Y = y } ;
968
967
969
968
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 ) ) ;
971
970
else
972
- g . FillEllipse ( Brushes . Gray , DispatchViewer . GetRect ( scaledItem , width ) ) ;
971
+ g . FillEllipse ( new SolidBrush ( Color . FromArgb ( 161 , 136 , 127 ) ) , DispatchViewer . GetRect ( scaledItem , width ) ) ;
973
972
974
973
sw . Location2D . X = scaledItem . X ; sw . Location2D . Y = scaledItem . Y ;
975
974
switchItemsDrawn . Add ( sw ) ;
@@ -994,19 +993,19 @@ private void ShowSignals(Graphics g, PointF scaledB, float width)
994
993
s . Location2D . X = scaledItem . X ; s . Location2D . Y = scaledItem . Y ;
995
994
if ( s . Signal . isSignalNormal ( ) )
996
995
{
997
- var color = Brushes . Lime ; // bright colour for readability
996
+ var color = new SolidBrush ( Color . FromArgb ( 76 , 175 , 80 ) ) ;
998
997
var pen = greenPen ;
999
998
if ( s . IsProceed == 0 )
1000
999
{
1001
1000
}
1002
1001
else if ( s . IsProceed == 1 )
1003
1002
{
1004
- color = Brushes . Yellow ; // bright colour for readbility
1003
+ color = new SolidBrush ( Color . FromArgb ( 255 , 235 , 59 ) ) ;
1005
1004
pen = orangePen ;
1006
1005
}
1007
1006
else
1008
1007
{
1009
- color = Brushes . Red ;
1008
+ color = new SolidBrush ( Color . FromArgb ( 244 , 67 , 54 ) ) ;
1010
1009
pen = redPen ;
1011
1010
}
1012
1011
g . FillEllipse ( color , DispatchViewer . GetRect ( scaledItem , width ) ) ;
0 commit comments