mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-04-22 01:18:36 +03:00

This allows us to specify what kind of context we'd like our vibrant layer to exist in (light or dark).
17 lines
485 B
Objective-C
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
|