diff -r cc1e116d0f2c -r 813d8bc3192f GUI/SensorNotifyIcon.cs --- a/GUI/SensorNotifyIcon.cs Thu Aug 05 19:28:50 2010 +0000 +++ b/GUI/SensorNotifyIcon.cs Sun Aug 08 13:57:26 2010 +0000 @@ -62,7 +62,7 @@ private Font font; public SensorNotifyIcon(SystemTray sensorSystemTray, ISensor sensor, - bool balloonTip) + bool balloonTip, PersistentSettings settings) { this.sensor = sensor; this.notifyIcon = new NotifyIcon(); @@ -71,7 +71,7 @@ if (sensor.SensorType == SensorType.Load) { defaultColor = Color.FromArgb(0xff, 0x70, 0x8c, 0xf1); } - Color = Config.Get(new Identifier(sensor.Identifier, + Color = settings.Get(new Identifier(sensor.Identifier, "traycolor").ToString(), defaultColor); this.pen = new Pen(Color.FromArgb(96, Color.Black)); @@ -95,7 +95,7 @@ dialog.Color = Color; if (dialog.ShowDialog() == DialogResult.OK) { Color = dialog.Color; - Config.Set(new Identifier(sensor.Identifier, + settings.Set(new Identifier(sensor.Identifier, "traycolor").ToString(), Color); } };