mirror of
https://github.com/MacPass/MacPass.git
synced 2026-01-30 15:38:15 +00:00
Removed dark Trash gradient as the button text wasn't readable
Fixed issue with creating entries form templates
This commit is contained in:
@@ -60,11 +60,14 @@ typedef NS_ENUM(NSUInteger, MPContextTab) {
|
|||||||
|
|
||||||
self.historyBar.activeGradient = [[NSGradient alloc] initWithStartingColor:[NSColor redColor] endingColor:[NSColor greenColor]];
|
self.historyBar.activeGradient = [[NSGradient alloc] initWithStartingColor:[NSColor redColor] endingColor:[NSColor greenColor]];
|
||||||
|
|
||||||
NSArray *activeColors = @[[NSColor colorWithCalibratedWhite:0.2 alpha:1],[NSColor colorWithCalibratedWhite:0.4 alpha:1]];
|
/*
|
||||||
NSArray *inactiveColors = @[[NSColor colorWithCalibratedWhite:0.3 alpha:1],[NSColor colorWithCalibratedWhite:0.6 alpha:1]];
|
NSArray *activeColors = @[[NSColor colorWithCalibratedWhite:0.2 alpha:1],[NSColor colorWithCalibratedWhite:0.4 alpha:1]];
|
||||||
self.trashBar.activeGradient = [[NSGradient alloc] initWithColors:activeColors];
|
NSArray *inactiveColors = @[[NSColor colorWithCalibratedWhite:0.3 alpha:1],[NSColor colorWithCalibratedWhite:0.6 alpha:1]];
|
||||||
self.trashBar.inactiveGradient = [[NSGradient alloc] initWithColors:inactiveColors];
|
self.trashBar.activeGradient = [[NSGradient alloc] initWithColors:activeColors];
|
||||||
[[self view] bind:NSSelectedIndexBinding toObject:self withKeyPath:@"activeTab" options:nil];
|
self.trashBar.inactiveGradient = [[NSGradient alloc] initWithColors:inactiveColors];
|
||||||
|
*/
|
||||||
|
[[self view] bind:NSSelectedIndexBinding toObject:self withKeyPath:@"activeTab" options:nil];
|
||||||
|
|
||||||
|
|
||||||
self.emptyTrashButton.textColor = [NSColor whiteColor];
|
self.emptyTrashButton.textColor = [NSColor whiteColor];
|
||||||
|
|
||||||
|
|||||||
@@ -532,7 +532,7 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGroupKey
|
|||||||
return; // sender cannot provide usefull data
|
return; // sender cannot provide usefull data
|
||||||
}
|
}
|
||||||
id obj = [sender representedObject];
|
id obj = [sender representedObject];
|
||||||
if([obj isKindOfClass:[NSUUID class]]) {
|
if(![obj isKindOfClass:[NSUUID class]]) {
|
||||||
return; // sender cannot provide NSUUID
|
return; // sender cannot provide NSUUID
|
||||||
}
|
}
|
||||||
NSUUID *entryUUID = [sender representedObject];
|
NSUUID *entryUUID = [sender representedObject];
|
||||||
|
|||||||
Reference in New Issue
Block a user