summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2019-09-17 07:36:27 +0200
committerDamiano Galassi <[email protected]>2019-09-17 07:36:27 +0200
commit6053997baa717f13349270382437eb89dfddfa6e (patch)
treed0c9a10571096242905fa1e12fafece192828a18 /macosx
parent3e00e3be2e421a5bf00f3b3b6761580ed4cd8ad1 (diff)
MacGui: decrease the preview opacity when no title is loaded.
Diffstat (limited to 'macosx')
-rw-r--r--macosx/HBPreviewViewController.m2
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;
}
}