Skip to content

Commit

Permalink
Use system monospace font for code
Browse files Browse the repository at this point in the history
  • Loading branch information
jwells89 committed Oct 29, 2016
1 parent 1758b5a commit bef2f48
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CATweaker.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@
COMBINE_HIDPI_IMAGES = YES;
INFOPLIST_FILE = CATweaker/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.9;
PRODUCT_BUNDLE_IDENTIFIER = "com.beyondcow.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = CATweaker;
};
Expand All @@ -376,6 +377,7 @@
COMBINE_HIDPI_IMAGES = YES;
INFOPLIST_FILE = CATweaker/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.9;
PRODUCT_BUNDLE_IDENTIFIER = "com.beyondcow.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = CATweaker;
};
Expand Down
Binary file not shown.
6 changes: 3 additions & 3 deletions CATweaker/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ - (void)pointChangeNotification:(NSNotification*)n
NSPoint p2 = _curveView.controlPoint2;

// generate function here
NSDictionary *keywordAttribute = @{ NSForegroundColorAttributeName : [NSColor colorWithDeviceRed:0.419 green:0.124 blue:0.684 alpha:1.000]};
NSDictionary *textAttribute = @{ NSForegroundColorAttributeName : [NSColor blackColor]};
NSDictionary *numberAttribute = @{ NSForegroundColorAttributeName : [NSColor colorWithDeviceRed:0.000 green:0.195 blue:0.990 alpha:1.000]};
NSDictionary *keywordAttribute = @{ NSForegroundColorAttributeName : [NSColor colorWithDeviceRed:0.419 green:0.124 blue:0.684 alpha:1.000], NSFontAttributeName : [NSFont userFixedPitchFontOfSize:11]};
NSDictionary *textAttribute = @{ NSForegroundColorAttributeName : [NSColor blackColor], NSFontAttributeName : [NSFont userFixedPitchFontOfSize:11]};
NSDictionary *numberAttribute = @{ NSForegroundColorAttributeName : [NSColor colorWithDeviceRed:0.000 green:0.195 blue:0.990 alpha:1.000], NSFontAttributeName : [NSFont userFixedPitchFontOfSize:11]};

NSMutableAttributedString *str = [[NSMutableAttributedString alloc] initWithString:@"CAMediaTimingFunction" attributes:keywordAttribute];
[str appendAttributedString:[[NSAttributedString alloc] initWithString:@" *timingFunction = [" attributes:textAttribute]];
Expand Down

0 comments on commit bef2f48

Please sign in to comment.