Skip to content

Commit

Permalink
changing from red to green (except for remove) #44
Browse files Browse the repository at this point in the history
  • Loading branch information
Jérôme Lebel committed Aug 18, 2012
1 parent baf44a8 commit a3870bb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Sources/ConnectionWindow/MHQueryWindowController.m
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ - (IBAction)findQuery:(id)sender
}
[NSViewHelpers cancelColorForTarget:totalResultsTextField selector:@selector(setTextColor:)];
currentColor = totalResultsTextField.textColor;
totalResultsTextField.textColor = [NSColor redColor];
[NSViewHelpers setColor:currentColor fromColor:[NSColor redColor] toTarget:totalResultsTextField withSelector:@selector(setTextColor:) delay:1];
totalResultsTextField.textColor = [NSColor greenColor];
[NSViewHelpers setColor:currentColor fromColor:[NSColor greenColor] toTarget:totalResultsTextField withSelector:@selector(setTextColor:) delay:1];
[findQueryLoaderIndicator stopAnimation:self];


Expand Down Expand Up @@ -275,8 +275,8 @@ - (IBAction)updateQuery:(id)sender
[updateResultsTextField setStringValue:[NSString stringWithFormat:@"Affected Rows: %lld", count]];
[NSViewHelpers cancelColorForTarget:updateResultsTextField selector:@selector(setTextColor:)];
currentColor = updateResultsTextField.textColor;
updateResultsTextField.textColor = [NSColor redColor];
[NSViewHelpers setColor:currentColor fromColor:[NSColor redColor] toTarget:updateResultsTextField withSelector:@selector(setTextColor:) delay:1];
updateResultsTextField.textColor = [NSColor greenColor];
[NSViewHelpers setColor:currentColor fromColor:[NSColor greenColor] toTarget:updateResultsTextField withSelector:@selector(setTextColor:) delay:1];
}];
[_mongoCollection updateWithCriteria:criteria update:[updateSetTextField stringValue] upsert:[upsetCheckBox state] multiUpdate:YES callback:^(MODQuery *mongoQuery) {
[updateQueryLoaderIndicator stop];
Expand Down Expand Up @@ -324,8 +324,8 @@ - (IBAction)insertQuery:(id)sender
insertResultsTextField.stringValue = @"Parsing error";
[NSViewHelpers cancelColorForTarget:insertResultsTextField selector:@selector(setTextColor:)];
currentColor = insertResultsTextField.textColor;
insertResultsTextField.textColor = [NSColor redColor];
[NSViewHelpers setColor:currentColor fromColor:[NSColor redColor] toTarget:insertResultsTextField withSelector:@selector(setTextColor:) delay:1];
insertResultsTextField.textColor = [NSColor greenColor];
[NSViewHelpers setColor:currentColor fromColor:[NSColor greenColor] toTarget:insertResultsTextField withSelector:@selector(setTextColor:) delay:1];
} else {
if ([objects isKindOfClass:[MODSortedMutableDictionary class]]) {
objects = [NSArray arrayWithObject:objects];
Expand All @@ -342,8 +342,8 @@ - (IBAction)insertQuery:(id)sender
}
[NSViewHelpers cancelColorForTarget:insertResultsTextField selector:@selector(setTextColor:)];
currentColor = insertResultsTextField.textColor;
insertResultsTextField.textColor = [NSColor redColor];
[NSViewHelpers setColor:currentColor fromColor:[NSColor redColor] toTarget:insertResultsTextField withSelector:@selector(setTextColor:) delay:1];
insertResultsTextField.textColor = [NSColor greenColor];
[NSViewHelpers setColor:currentColor fromColor:[NSColor greenColor] toTarget:insertResultsTextField withSelector:@selector(setTextColor:) delay:1];
}];
}
}
Expand Down

0 comments on commit a3870bb

Please sign in to comment.