Commits

Dain Kaplan committed 8ceb04f

Added additional appearance option for Red/blue toggle.

  • Participants
  • Parent commits e2b9d01

Comments (0)

Files changed (5)

File English.lproj/MainMenu.xib

 <archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="8.00">
 	<data>
 		<int key="IBDocument.SystemTarget">1060</int>
-		<string key="IBDocument.SystemVersion">11C74</string>
+		<string key="IBDocument.SystemVersion">11D50</string>
 		<string key="IBDocument.InterfaceBuilderVersion">1617</string>
-		<string key="IBDocument.AppKitVersion">1138.23</string>
-		<string key="IBDocument.HIToolboxVersion">567.00</string>
+		<string key="IBDocument.AppKitVersion">1138.32</string>
+		<string key="IBDocument.HIToolboxVersion">568.00</string>
 		<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
 			<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
 			<string key="NS.object.0">1617</string>
 							<string key="NSFrame">{{122, 18}, {86, 34}}</string>
 							<reference key="NSSuperview" ref="439893737"/>
 							<reference key="NSWindow"/>
-							<reference key="NSNextKeyView"/>
 							<string key="NSReuseIdentifierKey">_NS:239</string>
 							<bool key="NSEnabled">YES</bool>
 							<object class="NSButtonCell" key="NSCell" id="390157909">
 					</object>
 					<int key="connectionID">564</int>
 				</object>
+				<object class="IBConnectionRecord">
+					<object class="IBOutletConnection" key="connection">
+						<string key="label">featureToggleSwitch</string>
+						<reference key="source" ref="976324537"/>
+						<reference key="destination" ref="390157909"/>
+					</object>
+					<int key="connectionID">576</int>
+				</object>
 			</array>
 			<object class="IBMutableOrderedSet" key="objectRecords">
 				<array key="orderedObjects">
 			<nil key="activeLocalization"/>
 			<dictionary class="NSMutableDictionary" key="localizations"/>
 			<nil key="sourceID"/>
-			<int key="maxID">575</int>
+			<int key="maxID">576</int>
 		</object>
 		<object class="IBClassDescriber" key="IBDocument.Classes">
 			<array class="NSMutableArray" key="referencedPartialClassDescriptions">
 		<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
 		<int key="IBDocument.defaultPropertyAccessControl">3</int>
 		<dictionary class="NSMutableDictionary" key="IBDocument.LastKnownImageSizes">
-			<string key="NSMenuCheckmark">{9, 8}</string>
-			<string key="NSMenuMixedState">{7, 2}</string>
+			<string key="NSMenuCheckmark">{11, 11}</string>
+			<string key="NSMenuMixedState">{10, 3}</string>
 			<string key="NSSwitch">{15, 15}</string>
 		</dictionary>
 	</data>

File OnOffSwitchControlAppDelegate.h

 	NSCellStateValue onState, offState, mixedState;
 	OnOffSwitchControlCell *customColorsSwitch;
 	OnOffSwitchControlCell *redGreenColorsSwitch;
+	OnOffSwitchControlCell *featureToggleSwitch;
 }
+@property (assign) IBOutlet OnOffSwitchControlCell *featureToggleSwitch;
 
 @property (assign) IBOutlet NSWindow *window;
 @property NSCellStateValue onState, offState, mixedState;

File OnOffSwitchControlAppDelegate.m

 	[self.customColorsSwitch setOnSwitchLabel:@"YES"];
 	[self.customColorsSwitch setOffSwitchLabel:@"NO"];
 	[self.redGreenColorsSwitch setOnOffSwitchControlColors:OnOffSwitchControlGreenRedColors];
+	[self.featureToggleSwitch setOnOffSwitchControlColors:OnOffSwitchControlBlueRedColors];
 }
 
+@synthesize featureToggleSwitch;
 @synthesize window;
 @synthesize onState, offState, mixedState;
 @synthesize customColorsSwitch;

File OnOffSwitchControlCell.h

 
 typedef enum {
 	OnOffSwitchControlDefaultColors = 0,
-	OnOffSwitchControlBlueGreyColors = 1,
-	OnOffSwitchControlGreenRedColors = 2,
-	OnOffSwitchControlCustomColors = 3
+	OnOffSwitchControlCustomColors = 1,
+	OnOffSwitchControlBlueGreyColors = 2,
+	OnOffSwitchControlGreenRedColors = 3,
+	OnOffSwitchControlBlueRedColors = 4
 } OnOffSwitchControlColors;
 
 NSRect DKCenterRect(NSRect smallRect, NSRect bigRect);

File OnOffSwitchControlCell.m

 			onStartColor = onEndColor = _greenColor;
 			offStartColor = offEndColor = _redColor;
 			break;
+		case OnOffSwitchControlBlueRedColors:
+			onStartColor = onEndColor = _blueColor;
+			offStartColor = offEndColor = _redColor;
+			break;
 		case OnOffSwitchControlCustomColors:
 			onStartColor = onEndColor = self.customOnColor;
 			offStartColor = offEndColor = self.customOffColor;