mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Use ‘flash’ class rather than ‘highlighted’.
Pull the flash into the base theme rather than the ui themes
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user