Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
18 changes: 11 additions & 7 deletions QDisplayApp.m
Original file line number Diff line number Diff line change
Expand Up @@ -89,38 +89,42 @@ - (void) setMessageColor:(NSString *)newColor
{
theNewColor = [NSColor whiteColor];
}
if ([newColor isEqual: @"black"])
else if ([newColor isEqual: @"black"])
{
theNewColor = [NSColor blackColor];
}

// MARK: Red & Green & Blue
if ([newColor isEqual: @"red"])
else if ([newColor isEqual: @"red"])
{
theNewColor = [NSColor redColor];
}
if ([newColor isEqual: @"green"])
else if ([newColor isEqual: @"green"])
{
theNewColor = [NSColor greenColor];
}
if ([newColor isEqual: @"blue"])
else if ([newColor isEqual: @"blue"])
{
theNewColor = [NSColor blueColor];
}

// MARK: Cyan & Magenta & Yellow
if ([newColor isEqual: @"cyan"])
else if ([newColor isEqual: @"cyan"])
{
theNewColor = [NSColor cyanColor];
}
if ([newColor isEqual: @"magenta"])
else if ([newColor isEqual: @"magenta"])
{
theNewColor = [NSColor magentaColor];
}
if ([newColor isEqual: @"yellow"])
else if ([newColor isEqual: @"yellow"])
{
theNewColor = [NSColor yellowColor];
}
else
{
return;
}

label.textColor = theNewColor;
}
Expand Down