mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-24 15:35:52 +00:00
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:
1 parent
79dde7bb9b
commit
5d08ddadfa
1 file changed
+6
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user