OSX: make the progressbar in dock a gradient, to give it a more matching 3D appearance
[blender.git] / intern / ghost / intern / GHOST_WindowCocoa.mm
index f94f08b1d1397420acafb0f224758369b7b15816..ac6cc548f329f1b67454d3776b40f6bf78585563 100644 (file)
@@ -1235,9 +1235,11 @@ GHOST_TSuccess GHOST_WindowCocoa::setProgressBar(float progress)
         
         // Progress fill
         progressBox = NSInsetRect(progressBox, 1, 1);
-        [[NSColor knobColor] setFill];
+        
         progressBox.size.width = progressBox.size.width * progress;
-               NSRectFill(progressBox);
+        NSGradient *gradient = [[NSGradient alloc] initWithStartingColor:[NSColor darkGrayColor] endingColor:[NSColor lightGrayColor]];
+        [gradient drawInRect:progressBox angle:90];
+        [gradient release];
                
                [dockIcon unlockFocus];