Try out different styling for highlights

This commit is contained in:
James Allen 2016-10-20 15:18:45 +01:00
parent 8f9a4882c8
commit 60a81beb11
2 changed files with 3 additions and 2 deletions

View file

@ -121,14 +121,13 @@ define [
colorScheme = ColorManager.getColorScheme(hue, @element)
markerLayer = @editor.renderer.$markerBack
klass = "track-changes-added-marker"
style = "background-color: #{colorScheme.highlightBackgroundColor}"
style = "border-color: #{colorScheme.cursor}"
marker_id = session.addMarker ace_range, klass, (html, range, left, top, config) ->
if range.isMultiLine()
markerLayer.drawTextMarker(html, range, klass, config, style)
else
markerLayer.drawSingleLineMarker(html, range, "#{klass} ace_start", config, 0, style)
# marker_id = session.addMarker(ace_range, "track-changes-added-marker", "text")
@changeIdToMarkerIdMap[change.id] = marker_id
@updateReviewEntriesScope()

View file

@ -143,6 +143,8 @@
.track-changes-added-marker {
border-radius: 0;
position: absolute;
border-bottom: 1px dashed green;
background-color: hsl(100, 70%, 85%);
}
.track-changes-deleted-marker {
border-radius: 0;