diff options
author | Damiano Galassi <[email protected]> | 2019-09-17 07:36:27 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2019-09-17 07:36:27 +0200 |
commit | 6053997baa717f13349270382437eb89dfddfa6e (patch) | |
tree | d0c9a10571096242905fa1e12fafece192828a18 /macosx | |
parent | 3e00e3be2e421a5bf00f3b3b6761580ed4cd8ad1 (diff) |
MacGui: decrease the preview opacity when no title is loaded.
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/HBPreviewViewController.m | 2 |
1 files changed, 2 insertions, 0 deletions
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; } } |