From 0ab52b654ebda1c3d01c5dc56fb799be58146070 Mon Sep 17 00:00:00 2001 From: simurai Date: Fri, 4 Sep 2015 16:08:54 +0900 Subject: [PATCH] Use white-cursor on dark editors --- static/white-cursor.less | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/static/white-cursor.less b/static/white-cursor.less index 91110571f..1b3a2415d 100644 --- a/static/white-cursor.less +++ b/static/white-cursor.less @@ -4,3 +4,17 @@ .white-cursor-image() { cursor: -webkit-image-set(@ibeam-1x 1x, @ibeam-2x 2x) 5 8, text; } + +// Editors +& when ( lightness(@syntax-background-color) < 50% ) { + .platform-darwin atom-text-editor:not([mini])::shadow .editor-contents--private { + .white-cursor-image(); + } +} + +// Mini Editors +& when ( lightness(@input-background-color) < 50% ) { + .platform-darwin atom-text-editor[mini]::shadow .editor-contents--private { + .white-cursor-image(); + } +}