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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ build/
*.tmproj
*.tm_build_errors
*.TM_Completions.txt.gz
Textmate-Minimap.xcodeproj/project.xcworkspace/xcuserdata/*.xcuserdatad
Textmate-Minimap.xcodeproj/xcuserdata/*.xcuserdatad/
7 changes: 3 additions & 4 deletions MinimapView.m
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,12 @@ - (void)drawVisRect:(NSRect)drawTo
float drawToScaling = drawTo.size.height / bounds.size.height;
NSRect visibleHighlightRect = NSMakeRect(0,
visRectPos*drawToScaling,
drawTo.size.width-1,
drawTo.size.width,
visRectHeight*drawToScaling);

[NSGraphicsContext saveGraphicsState];
[[NSColor colorWithCalibratedRed:0.549 green:0.756 blue:1 alpha:0.9] set];
[NSBezierPath setDefaultLineWidth:1];
[NSBezierPath strokeRect:visibleHighlightRect];
[[NSColor colorWithCalibratedRed:0 green:0 blue:0 alpha:0.28] set];
[NSBezierPath fillRect:visibleHighlightRect];
[NSGraphicsContext restoreGraphicsState];
}

Expand Down