Use HUD style buttons in HUD style test window.

This commit is contained in:
Alexander Ljungberg
2013-02-20 14:39:50 +00:00
parent a6f4e20078
commit 79dde7bb9b
@@ -100,6 +100,10 @@
[_otherCloseButton setTarget:self];
[_otherCloseButton setAction:unsetAction];
[[aWindow contentView] addSubview:_otherCloseButton positioned:CPWindowAbove relativeTo:nil];
if ([aWindow styleMask] & CPHUDBackgroundWindowMask)
[[_closeButton, _altCloseButton, _otherCloseButton] makeObjectsPerformSelector:@selector(setTheme:) withObject:[CPTheme defaultHudTheme]];
}
- (SheetWindowController)initWithStyleMask:(int)styleMask debug:(int)debug