diff --git a/RailtimeScreenSaver/My Project/AssemblyInfo.vb b/RailtimeScreenSaver/My Project/AssemblyInfo.vb index 606137c..da3f781 100644 --- a/RailtimeScreenSaver/My Project/AssemblyInfo.vb +++ b/RailtimeScreenSaver/My Project/AssemblyInfo.vb @@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices ' by using the '*' as shown below: ' - - + + diff --git a/RailtimeScreenSaver/Templates.vb b/RailtimeScreenSaver/Templates.vb index d46929d..a92a910 100644 --- a/RailtimeScreenSaver/Templates.vb +++ b/RailtimeScreenSaver/Templates.vb @@ -220,7 +220,7 @@ Public Class SNCBTemplate Dim AirplaneIcon As Bitmap = My.Resources.airplane Dim Pallete As System.Drawing.Imaging.ColorPalette = AirplaneIcon.Palette Pallete.Entries(0) = m_ForeColor - Pallete.Entries(1) = Color.FromArgb(0, 0, 0, 0) + Pallete.Entries(1) = Color.FromArgb(0, TrainRectColor.R, TrainRectColor.G, TrainRectColor.B) AirplaneIcon.Palette = Pallete Graphics.DrawImage(AirplaneIcon, New RectangleF(TrackRect.X - BorderWidth - AirPlaneSize, TrackRect.Y, AirPlaneSize, AirPlaneSize)) ElseIf TrainType = "TGV" OrElse TrainType = "THA" OrElse TrainType = "ICE" OrElse TrainType = "TGV" OrElse TrainType = "EUR" Then @@ -231,7 +231,7 @@ Public Class SNCBTemplate Dim LogoWidth As Double = TrackRect.Height / Logo.Height * Logo.Width * 7 / 8 Dim Pallete As System.Drawing.Imaging.ColorPalette = Logo.Palette Pallete.Entries(0) = m_ForeColor - Pallete.Entries(1) = Color.FromArgb(0, 0, 0, 0) + Pallete.Entries(1) = Color.FromArgb(0, TrainRectColor.R, TrainRectColor.G, TrainRectColor.B) Logo.Palette = Pallete Graphics.InterpolationMode = Drawing2D.InterpolationMode.HighQualityBilinear Graphics.DrawImage(Logo, New RectangleF(TrackRect.X - BorderWidth - LogoWidth, TrackRect.Y, LogoWidth, TrackRect.Height)) diff --git a/exe/RailtimeScreenSaver.exe b/exe/RailtimeScreenSaver.exe index 3d4e396..2c53e43 100644 Binary files a/exe/RailtimeScreenSaver.exe and b/exe/RailtimeScreenSaver.exe differ diff --git a/exe/RailtimeScreenSaver.scr b/exe/RailtimeScreenSaver.scr index 3d4e396..2c53e43 100644 Binary files a/exe/RailtimeScreenSaver.scr and b/exe/RailtimeScreenSaver.scr differ