mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Remove support for OakBackgroundFillViewStyleStatusBar
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
typedef NS_ENUM(NSUInteger, OakBackgroundFillViewStyle) {
|
||||
OakBackgroundFillViewStyleNone = 0,
|
||||
OakBackgroundFillViewStyleHeader,
|
||||
OakBackgroundFillViewStyleStatusBar,
|
||||
OakBackgroundFillViewStyleDivider,
|
||||
OakBackgroundFillViewStyleDarkDivider,
|
||||
};
|
||||
|
||||
@@ -238,17 +238,6 @@ OakRolloverButton* OakCreateCloseButton (NSString* accessibilityLabel)
|
||||
}
|
||||
}
|
||||
|
||||
if(self.style == OakBackgroundFillViewStyleStatusBar)
|
||||
{
|
||||
NSVisualEffectView* effectView = [[NSVisualEffectView alloc] initWithFrame:[self bounds]];
|
||||
effectView.material = NSVisualEffectMaterialTitlebar;
|
||||
effectView.blendingMode = NSVisualEffectBlendingModeWithinWindow;
|
||||
effectView.state = NSVisualEffectStateFollowsWindowActiveState;
|
||||
_visualEffectBackgroundView = effectView;
|
||||
[_visualEffectBackgroundView setAutoresizingMask:NSViewWidthSizable|NSViewHeightSizable];
|
||||
[self addSubview:_visualEffectBackgroundView positioned:NSWindowBelow relativeTo:nil];
|
||||
}
|
||||
|
||||
if(self.style == OakBackgroundFillViewStyleDivider)
|
||||
{
|
||||
if(@available(macos 10.14, *))
|
||||
|
||||
Reference in New Issue
Block a user