diff --git a/AppKit/.detect_missing_imports b/AppKit/.detect_missing_imports deleted file mode 100644 index e69de29bb..000000000 diff --git a/AppKit/CPView.j b/AppKit/CPView.j index ccd288648..b70293882 100644 --- a/AppKit/CPView.j +++ b/AppKit/CPView.j @@ -2521,6 +2521,7 @@ var CPViewAutoresizingMaskKey = @"CPViewAutoresizingMask", CPViewSubviewsKey = @"CPViewSubviewsKey", CPViewSuperviewKey = @"CPViewSuperviewKey", CPViewTagKey = @"CPViewTagKey", + CPViewThemeClassKey = @"CPViewThemeClassKey", CPViewThemeStateKey = @"CPViewThemeStateKey", CPViewWindowKey = @"CPViewWindowKey", CPViewNextKeyViewKey = @"CPViewNextKeyViewKey", @@ -2600,6 +2601,7 @@ var CPViewAutoresizingMaskKey = @"CPViewAutoresizingMask", [self setupViewFlags]; _theme = [CPTheme defaultTheme]; + _themeClass = [aCoder decodeObjectForKey:CPViewThemeClassKey]; _themeState = CPThemeState([aCoder decodeIntForKey:CPViewThemeStateKey]); _themeAttributes = {}; @@ -2687,6 +2689,7 @@ var CPViewAutoresizingMaskKey = @"CPViewAutoresizingMask", if (previousKeyView !== nil) [aCoder encodeConditionalObject:previousKeyView forKey:CPViewPreviousKeyViewKey]; + [aCoder encodeObject:[self themeClass] forKey:CPViewThemeClassKey]; [aCoder encodeInt:CPThemeStateName(_themeState) forKey:CPViewThemeStateKey]; for (var attributeName in _themeAttributes)