 		wantsLayer = true
 		
 		defaults.registerDefaults([
-			ClockStyleDefaultsKey: ClockStyle.Light.toRaw(),
-			BackgroundStyleDefaultsKey: ClockStyle.Dark.toRaw(),
+			ClockStyleDefaultsKey: Style.Light.toRaw(),
+			BackgroundStyleDefaultsKey: Style.Dark.toRaw(),
 			TickMarksDefaultsKey: true,
 			NumbersDefaultsKey: true,
 			DateDefaultsKey: true,

		handColor = NSColor(calibratedRed: 0.039, green: 0.039, blue: 0.043, alpha: 1)
		faceColor = NSColor(calibratedWhite: 0.996, alpha: 1)
		
		if faceStyle == ClockStyle.Dark {
			handColor = NSColor(calibratedRed: 0.988, green: 0.992, blue: 0.988, alpha: 1)
			faceColor = NSColor(calibratedRed: 0.129, green: 0.125, blue: 0.141, alpha: 1)
		}
		
		backgroundColor = NSColor.whiteColor()
		
		if backgroundStyle == ClockStyle.Light {
			if faceStyle == ClockStyle.Dark {
				backgroundColor = NSColor(calibratedWhite: 0.996, alpha: 1)
			}
		} else {
			if faceStyle == ClockStyle.Light {
				backgroundColor = NSColor.blackColor()
			} else {
				backgroundColor = NSColor(calibratedRed: 0.129, green: 0.125, blue: 0.141, alpha: 1)

	}
	
	func configurationDidChange(notification: NSNotification?) {
		faceStyle = Style(integer: defaults.integerForKey(ClockStyleDefaultsKey))
		backgroundStyle = Style(integer: defaults.integerForKey(BackgroundStyleDefaultsKey))
		drawsTicks = defaults.boolForKey(TickMarksDefaultsKey)
		drawsNumbers = defaults.boolForKey(NumbersDefaultsKey)
		drawsDate = defaults.boolForKey(DateDefaultsKey)
