Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Verwiebe <info@jensverwiebe.de>2012-07-12 15:35:51 +0400
committerJens Verwiebe <info@jensverwiebe.de>2012-07-12 15:35:51 +0400
commit30b3907128d2b7f6523158dcea2cac9668706cb9 (patch)
treeb6458fe35391134495723369de67def20b3d94f4 /intern/ghost
parentddf7d364e953951cd576609376a35b88da467140 (diff)
OSX: make the progressbar in dock a gradient, to give it a more matching 3D appearance
Diffstat (limited to 'intern/ghost')
-rw-r--r--intern/ghost/intern/GHOST_WindowCocoa.mm6
1 files changed, 4 insertions, 2 deletions
diff --git a/intern/ghost/intern/GHOST_WindowCocoa.mm b/intern/ghost/intern/GHOST_WindowCocoa.mm
index f94f08b1d13..ac6cc548f32 100644
--- a/intern/ghost/intern/GHOST_WindowCocoa.mm
+++ b/intern/ghost/intern/GHOST_WindowCocoa.mm
@@ -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];