Fixed overlay window image color (#999)

* Fixed overlay window image color

* Fixed color property
This commit is contained in:
Anton Glezman
2019-11-07 22:43:24 +03:00
committed by Michael Starke
parent 0a7fcc415c
commit 16cdd4dd4f

View File

@@ -60,10 +60,14 @@
self.window.alphaValue = 0;
self.window.opaque = NO;
self.window.hasShadow = YES;
self.window.backgroundColor = NSColor.clearColor;
self.textField.cell.backgroundStyle = NSBackgroundStyleLowered;
self.imageView.cell.backgroundStyle = NSBackgroundStyleDark;
self.imageView.cell.backgroundStyle = NSBackgroundStyleEmphasized;
((NSImageCell *)self.imageView.cell).imageAlignment = NSImageAlignCenter;
if (@available(macOS 10.14, *)) {
self.imageView.contentTintColor = NSColor.textColor;
}
}
- (void)displayOverlayImage:(NSImage *)imageOrNil label:(NSString *)labelOrNil atView:(NSView *)view {