Use ‘flash’ class rather than ‘highlighted’.

Pull the flash into the base theme rather than the ui themes
This commit is contained in:
Ben Ogle
2014-07-03 15:35:26 -07:00
parent 505bfc28db
commit 1838ff2502
3 changed files with 16 additions and 1 deletions

View File

@@ -83,7 +83,7 @@ class Selection extends Model
@cursor.needsAutoscroll = false if @needsAutoscroll?
@marker.setBufferRange(bufferRange, options)
@autoscroll() if @needsAutoscroll and @editor.manageScrollPosition
@decoration.flash('highlighted', 500) if needsFlash
@decoration.flash('flash', 500) if needsFlash
# Public: Returns the starting and ending buffer rows the selection is
# highlighting.

View File

@@ -19,3 +19,17 @@
}
}
}
.define-selection-flash-color-if-not-defined() { @syntax-selection-flash-color: rgba(100, 255, 100, 0.7); }
.define-selection-flash-color-if-not-defined();
@-webkit-keyframes flash {
from { background-color: @syntax-selection-flash-color; }
to { background-color: null; }
}
.editor .flash.selection .region {
-webkit-animation-name: flash;
-webkit-animation-duration: .5s;
-webkit-animation-iteration-count: 1;
}

View File

@@ -5,6 +5,7 @@
@syntax-text-color: #333;
@syntax-cursor-color: #333;
@syntax-selection-color: #69c;
@syntax-selection-flash-color: #00f; // Color the selection is 'flashed' when you run find next
@syntax-background-color: #fff;
// Guide colors