/* HBHUDButtonCell.m $ This file is part of the HandBrake source code. Homepage: . It may be used under the terms of the GNU General Public License. */ #import "HBHUDView.h" @implementation HBHUDView - (instancetype)initWithFrame:(NSRect)frame { self = [super initWithFrame:frame]; if (self) { self.wantsLayer = YES; self.layer.cornerRadius = 4; self.blendingMode = NSVisualEffectBlendingModeWithinWindow; self.material = NSVisualEffectMaterialDark; self.state = NSVisualEffectStateActive; self.appearance = [NSAppearance appearanceNamed:NSAppearanceNameVibrantDark]; } return self; } - (BOOL)acceptsFirstResponder { return YES; } @end