From 6053997baa717f13349270382437eb89dfddfa6e Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Tue, 17 Sep 2019 07:36:27 +0200 Subject: MacGui: decrease the preview opacity when no title is loaded. --- macosx/HBPreviewViewController.m | 2 ++ 1 file changed, 2 insertions(+) (limited to 'macosx') diff --git a/macosx/HBPreviewViewController.m b/macosx/HBPreviewViewController.m index cd97b33e2..2b8a23632 100644 --- a/macosx/HBPreviewViewController.m +++ b/macosx/HBPreviewViewController.m @@ -185,12 +185,14 @@ CGImageRef fPreviewImage = [self.generator copyImageAtIndex:self.selectedIndex shouldCache:YES]; self.previewView.image = fPreviewImage; CFRelease(fPreviewImage); + self.previewView.layer.opacity = 1; } else { NSImage *bars = [NSImage imageNamed:@"ColorBars"]; CGImageRef image = [bars CGImageForProposedRect:NULL context:nil hints:nil]; self.previewView.image = image; + self.previewView.layer.opacity = .3; } } -- cgit v1.2.3