return;
// Draw edges of rounded rect.
NSRect rect = NSInsetRect([self bounds], 1.0, 1.0);
- CGFloat radius = rect.size.height / 2;
- NSBezierPath* bezier_path = [NSBezierPath bezierPathWithRoundedRect:rect xRadius:radius yRadius:radius];
- [bezier_path setLineWidth:2.0];
- [[NSColor grayColor] set];
- [bezier_path stroke];
+ CGFloat radius = rect.size.height / 2;
+ NSBezierPath* bezier_path = [NSBezierPath bezierPathWithRoundedRect:rect xRadius:radius yRadius:radius];
+ [bezier_path setLineWidth:2.0];
+ [[NSColor grayColor] set];
+ [bezier_path stroke];
// Fill the rounded rect.
- rect = NSInsetRect(rect, 2.0, 2.0);
- radius = rect.size.height / 2;
- bezier_path = [NSBezierPath bezierPathWithRoundedRect:rect xRadius:radius yRadius:radius];
- [bezier_path setLineWidth:1.0];
- [bezier_path addClip];
+ rect = NSInsetRect(rect, 2.0, 2.0);
+ radius = rect.size.height / 2;
+ bezier_path = [NSBezierPath bezierPathWithRoundedRect:rect xRadius:radius yRadius:radius];
+ [bezier_path setLineWidth:1.0];
+ [bezier_path addClip];
// Calculate the progress width.
- rect.size.width = floor(rect.size.width * ([self doubleValue] / [self maxValue]));
+ rect.size.width = floor(rect.size.width * ([self doubleValue] / [self maxValue]));
// Fill the progress bar with color blue.
[[NSColor colorWithSRGBRed:0.2 green:0.6 blue:1 alpha:1] set];
} else if (progress < 0) {
taskbar->SetProgressState(frame, TBPF_NOPROGRESS);
} else if (progress >= 0) {
- taskbar->SetProgressValue(frame, static_cast<int>(progress*100), progress);
+ taskbar->SetProgressValue(frame,
+ static_cast<int>(progress * 100),
+ progress);
}
#endif
}