CPView _setThemeIncludingDescendants:.

This method makes it possible to e.g. switch a whole window to the HUD theme.

It's internal for now.
This commit is contained in:
Alexander Ljungberg committed 2013-02-20 16:33:28 +00:00
1 parent 79dde7bb9b
commit 5d08ddadfa
1 file changed
+6
+6
View File
@@ -2787,6 +2787,12 @@ setBoundsOrigin:
[self viewDidChangeTheme];
}
- (void)_setThemeIncludingDescendants:(CPTheme)aTheme
{
[self setTheme:aTheme];
[[self subviews] makeObjectsPerformSelector:@selector(_setThemeIncludingDescendants:) withObject:aTheme];
}
- (CPTheme)theme
{
return _theme;