blue/black color

git-svn-id: svn://qnap.local/TwoTerm/branches/frameless@3093 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
This commit is contained in:
Kelvin Sherlock 2016-07-05 19:26:19 +00:00
parent c8fa4a4896
commit 70e48665ba

View File

@ -31,6 +31,7 @@
enum { enum {
kCustom = 0, kCustom = 0,
kGreenBlack, kGreenBlack,
kBlueBlack,
kWhiteBlue, kWhiteBlue,
kAmberBlack kAmberBlack
}; };
@ -95,6 +96,12 @@ enum {
[item setTag: kGreenBlack]; [item setTag: kGreenBlack];
[menu addItem: item]; [menu addItem: item];
item = [[NSMenuItem new] autorelease];
[item setTitle: @"Blue Black"];
[item setTag: kBlueBlack];
[menu addItem: item];
item = [[NSMenuItem new] autorelease]; item = [[NSMenuItem new] autorelease];
[item setTitle: @"White Blue"]; [item setTitle: @"White Blue"];
[item setTag: kWhiteBlue]; [item setTag: kWhiteBlue];
@ -168,6 +175,12 @@ enum {
[_backgroundColorControl setColor: [NSColor blackColor]]; [_backgroundColorControl setColor: [NSColor blackColor]];
break; break;
case kBlueBlack:
[_foregroundColorControl setColor: [NSColor colorWithCalibratedRed:0.0 green: 0.5 blue: 1.0 alpha: 1.0]];
[_backgroundColorControl setColor: [NSColor blackColor]];
break;
case kWhiteBlue: case kWhiteBlue:
[_foregroundColorControl setColor: [NSColor whiteColor]]; [_foregroundColorControl setColor: [NSColor whiteColor]];
[_backgroundColorControl setColor: [NSColor blueColor]]; [_backgroundColorControl setColor: [NSColor blueColor]];