1.1 --- a/GUI/SensorNotifyIcon.cs Thu Aug 05 19:28:50 2010 +0000
1.2 +++ b/GUI/SensorNotifyIcon.cs Sun Aug 08 13:57:26 2010 +0000
1.3 @@ -62,7 +62,7 @@
1.4 private Font font;
1.5
1.6 public SensorNotifyIcon(SystemTray sensorSystemTray, ISensor sensor,
1.7 - bool balloonTip)
1.8 + bool balloonTip, PersistentSettings settings)
1.9 {
1.10 this.sensor = sensor;
1.11 this.notifyIcon = new NotifyIcon();
1.12 @@ -71,7 +71,7 @@
1.13 if (sensor.SensorType == SensorType.Load) {
1.14 defaultColor = Color.FromArgb(0xff, 0x70, 0x8c, 0xf1);
1.15 }
1.16 - Color = Config.Get(new Identifier(sensor.Identifier,
1.17 + Color = settings.Get(new Identifier(sensor.Identifier,
1.18 "traycolor").ToString(), defaultColor);
1.19
1.20 this.pen = new Pen(Color.FromArgb(96, Color.Black));
1.21 @@ -95,7 +95,7 @@
1.22 dialog.Color = Color;
1.23 if (dialog.ShowDialog() == DialogResult.OK) {
1.24 Color = dialog.Color;
1.25 - Config.Set(new Identifier(sensor.Identifier,
1.26 + settings.Set(new Identifier(sensor.Identifier,
1.27 "traycolor").ToString(), Color);
1.28 }
1.29 };