Skip to content

Commit

Permalink
Fixed windows flipped cursor on retina HDPI screens #362
Browse files Browse the repository at this point in the history
  • Loading branch information
bgashler1 committed Apr 2, 2016
1 parent cd14faf commit 137843d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion src/vs/editor/browser/viewParts/lineNumbers/flipped-cursor.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions src/vs/editor/browser/viewParts/lineNumbers/lineNumbers.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,19 @@
.monaco-editor .margin-view-overlays .line-numbers {
position: absolute;
text-align: right;
cursor: url('./flipped-cursor.svg') 12.6 0, default;
/* Specific fix for blurry cursor on hdpi screens in Chrome and Chromium (Windows and other) */
cursor: -webkit-image-set(
url('./flipped-cursor.svg') 1x,
url('./flipped-cursor-2x.svg') 2x
) 30 0, default;

display: inline-block;
vertical-align: middle;
box-sizing: border-box;
}

.monaco-editor.mac .margin-view-overlays .line-numbers {
/* Specific fix for blurry cursor on hdpi screens in Chrome and Chromium */
/* Specific fix for blurry cursor on hdpi screens in Chrome and Chromium (Mac) */
cursor: -webkit-image-set(
url('./flipped-cursor-mac.svg') 1x,
url('./flipped-cursor-mac-2x.svg') 2x
Expand Down

0 comments on commit 137843d

Please sign in to comment.