Commit f13a8acf authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

MacOSX/VLC_app/VLCBrowsableVideoView.m: Draw a gradient when there is no video.

parent b71e1853
...@@ -183,6 +183,14 @@ ...@@ -183,6 +183,14 @@
[self displayMenu]; [self displayMenu];
} }
- (void)drawRect:(NSRect)rect
{
NSColor * bottomGradient = [NSColor colorWithCalibratedWhite:0.10 alpha:1.0];
NSColor * topGradient = [NSColor colorWithCalibratedWhite:0.45 alpha:1.0];
NSGradient * gradient = [[NSGradient alloc] initWithStartingColor:bottomGradient endingColor:topGradient];
[gradient drawInRect:self.bounds angle:90.0];
}
/* Event handling */ /* Event handling */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment