From 79dde7bb9b008290e8acc29f72cc0ac44ee037eb Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Wed, 20 Feb 2013 14:39:50 +0000 Subject: [PATCH] Use HUD style buttons in HUD style test window. --- Tests/Manual/AttachedSheet2/SheetWindowController.j | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tests/Manual/AttachedSheet2/SheetWindowController.j b/Tests/Manual/AttachedSheet2/SheetWindowController.j index a564ab320..9fc537eb5 100644 --- a/Tests/Manual/AttachedSheet2/SheetWindowController.j +++ b/Tests/Manual/AttachedSheet2/SheetWindowController.j @@ -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