ghostty/macos/Sources/Helpers/VibrantLayer.h
Pete Schaffner 3b6bac0121 Make special blending mode class more generic
This allows us to specify what kind of context we'd like our vibrant
layer to exist in (light or dark).
2024-02-11 00:53:18 +01:00

17 lines
485 B
Objective-C

#import <QuartzCore/QuartzCore.h>
typedef NS_ENUM(NSUInteger, VibrantLayerType) {
VibrantLayerTypeLight,
VibrantLayerTypeDark
};
// This layer can be used to recreate the "vibrant" appearance you see of
// views placed inside `NSVisualEffectView`s. When a light NSAppearance is
// active, we will use the private "plus darker" blend mode. For dark
// appearances we use "plus lighter".
@interface VibrantLayer : CALayer
- (id)initForAppearance:(VibrantLayerType)type;
@end