Skip to content
Snippets Groups Projects
Commit 47012b1a authored by George Nachman's avatar George Nachman
Browse files

Hacks to set up another attempt at transparency

parent 25a9dd58
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -45,7 +45,7 @@
_cellRenderer = [[iTermMetalCellRenderer alloc] initWithDevice:device
vertexFunctionName:@"iTermBackgroundColorVertexShader"
fragmentFunctionName:@"iTermBackgroundColorFragmentShader"
blending:YES
blending:NO
piuElementSize:sizeof(iTermBackgroundColorPIU)
transientStateClass:[iTermBackgroundColorRendererTransientState class]];
}
Loading
Loading
Loading
Loading
@@ -135,6 +135,7 @@ static NSDate* lastResizeDate_;
if (@available(macOS 10.11, *)) {
_metalView = [[MTKView alloc] initWithFrame:_scrollview.contentView.frame
device:MTLCreateSystemDefaultDevice()];
_metalView.layer.opaque = NO;
[self addSubview:_metalView];
_metalView.paused = YES;
_metalView.enableSetNeedsDisplay = YES;
Loading
Loading
Loading
Loading
@@ -37,9 +37,11 @@
 
- (void)drawRect:(NSRect)rect
{
[child_.delegate textViewDrawBackgroundImageInView:self
viewRect:rect
blendDefaultBackground:YES];
// [child_.delegate textViewDrawBackgroundImageInView:self
// viewRect:rect
// blendDefaultBackground:YES];
[[NSColor clearColor] set];
NSRectFill(rect);
}
 
- (void)addSubview:(NSView *)child
Loading
Loading
Loading
Loading
@@ -167,6 +167,7 @@ static BOOL iTermTextDrawingHelperIsCharacterDrawable(screen_char_t *c,
assert([NSThread isMainThread]);
self = [super init];
if (self) {
textView.hidden = YES;
_havePreviousCharacterAttributes = NO;
_isFrontTextView = (textView == [[iTermController sharedInstance] frontTextView]);
_unfocusedSelectionColor = VectorForColor([[_colorMap colorForKey:kColorMapSelection] colorDimmedBy:2.0/3.0
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment