mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-04-25 02:48:42 +03:00

This allows us to specify what kind of context we'd like our vibrant layer to exist in (light or dark).
28 lines
422 B
Objective-C
28 lines
422 B
Objective-C
#import "VibrantLayer.h"
|
|
|
|
@interface VibrantLayer()
|
|
|
|
@property (nonatomic) VibrantLayerType type;
|
|
|
|
@end
|
|
|
|
@implementation VibrantLayer
|
|
|
|
- (id)initForAppearance:(VibrantLayerType)type {
|
|
self = [super init];
|
|
if (self) {
|
|
_type = type;
|
|
}
|
|
return self;
|
|
}
|
|
|
|
- (id)compositingFilter {
|
|
if (self.type == VibrantLayerTypeLight) {
|
|
return @"plusD";
|
|
} else {
|
|
return @"plusL";
|
|
}
|
|
}
|
|
|
|
@end
|