mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Harmonize whitespace and add trailing newline
This commit is contained in:
@@ -43,9 +43,9 @@
|
||||
_webView.frameLoadDelegate = self;
|
||||
|
||||
NSDictionary* views = @{
|
||||
@"webView" : _webView,
|
||||
@"webView" : _webView,
|
||||
@"divider" : OakCreateHorizontalLine([NSColor colorWithCalibratedWhite:0.500 alpha:1], [NSColor colorWithCalibratedWhite:0.750 alpha:1]),
|
||||
@"statusBar" : _statusBar
|
||||
@"statusBar" : _statusBar
|
||||
};
|
||||
|
||||
for(NSView* view in [views allValues])
|
||||
|
||||
@@ -46,7 +46,7 @@ static NSTextField* OakCreateTextField ()
|
||||
@implementation HOStatusBar
|
||||
- (id)initWithFrame:(NSRect)frame
|
||||
{
|
||||
if(self = [super initWithGradient:[[NSGradient alloc] initWithColorsAndLocations: [NSColor colorWithCalibratedWhite:1.000 alpha:0.68], 0.0, [NSColor colorWithCalibratedWhite:1.000 alpha:0.5], 0.0416, [NSColor colorWithCalibratedWhite:1.000 alpha:0.0], 1.0, nil] inactiveGradient:[[NSGradient alloc] initWithColorsAndLocations: [NSColor colorWithCalibratedWhite:1.000 alpha:0.68], 0.0, [NSColor colorWithCalibratedWhite:1.000 alpha:0.5], 0.0416, [NSColor colorWithCalibratedWhite:1.000 alpha:0.0], 1.0, nil]])
|
||||
if(self = [super initWithGradient:[[NSGradient alloc] initWithColorsAndLocations:[NSColor colorWithCalibratedWhite:1.000 alpha:0.68], 0.0, [NSColor colorWithCalibratedWhite:1.000 alpha:0.5], 0.0416, [NSColor colorWithCalibratedWhite:1.000 alpha:0.0], 1.0, nil] inactiveGradient:[[NSGradient alloc] initWithColorsAndLocations:[NSColor colorWithCalibratedWhite:1.000 alpha:0.68], 0.0, [NSColor colorWithCalibratedWhite:1.000 alpha:0.5], 0.0416, [NSColor colorWithCalibratedWhite:1.000 alpha:0.0], 1.0, nil]])
|
||||
{
|
||||
_indeterminateProgress = YES;
|
||||
|
||||
@@ -128,7 +128,7 @@ static NSTextField* OakCreateTextField ()
|
||||
[_layoutConstraints addObjectsFromArray:[NSLayoutConstraint constraintsWithVisualFormat:@"V:[spinner]-6-|" options:0 metrics:nil views:views]];
|
||||
}
|
||||
else
|
||||
{
|
||||
{
|
||||
[_layoutConstraints addObjectsFromArray:[NSLayoutConstraint constraintsWithVisualFormat:@"H:[divider]-[status(>=100)]-[spinner]-|" options:0 metrics:nil views:views]];
|
||||
[_layoutConstraints addObjectsFromArray:[NSLayoutConstraint constraintsWithVisualFormat:@"V:[spinner]-5-|" options:0 metrics:nil views:views]];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user