Skip to content
Open
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
5 changes: 4 additions & 1 deletion ToolDrawerView.m
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ - (void)createTabButton{

// Draw the cheveron button in either the filled or empty state;
- (UIImage *)createTabButtonImageWithFillColor:(UIColor *)fillColor{
UIGraphicsBeginImageContext(CGSizeMake(24.0, 24.0));

// Use UIGraphicsBeginImageContextWithOptions(size, NO, 0.0) to take advantage of retina display scale factor
// The 0.0 value supplied here is a “magic” number, which sets “the scale factor … to the scale factor of the device’s main screen”
UIGraphicsBeginImageContextWithOptions(CGSizeMake(24.0, 24.0), NO, 0);
CGContextRef ctx = UIGraphicsGetCurrentContext();

CGContextSetStrokeColorWithColor(ctx, [UIColor colorWithRed:0 green:0 blue:0 alpha:0.6].CGColor);
Expand Down