[kit] Pass colorStyle through too!

This commit is contained in:
Eryn Wells 2017-08-16 21:56:20 -07:00
parent b73e4c7af1
commit 88c97d4bf5
3 changed files with 46 additions and 15 deletions

View file

@ -259,6 +259,11 @@ public class Field {
func preferencesDidChange(note: Notification) {
guard let userInfo = note.userInfo else { return }
var didChange = false
if let style = userInfo["colorStyle"] as? ColorStyle {
parameters.colorStyle = style
defaults.colorStyle = style
didChange = true
}
if let color = userInfo["color0"] as? NSColor {
let cf = Float4(color: color)
parameters.color0 = cf