Skip to content

Commit

Permalink
Added retina support to Mac cursor. HDPI for #362
Browse files Browse the repository at this point in the history
  • Loading branch information
bgashler1 committed Apr 1, 2016
1 parent 94ccb58 commit cd14faf
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion src/vs/editor/browser/viewParts/lineNumbers/lineNumbers.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
}

.monaco-editor.mac .margin-view-overlays .line-numbers {
cursor: url('./flipped-cursor-mac.svg') 12.6 0, default;
/* Specific fix for blurry cursor on hdpi screens in Chrome and Chromium */
cursor: -webkit-image-set(
url('./flipped-cursor-mac.svg') 1x,
url('./flipped-cursor-mac-2x.svg') 2x
) 24 3, default;
}

.monaco-editor .margin-view-overlays .line-numbers.lh-odd {
Expand Down

0 comments on commit cd14faf

Please sign in to comment.