mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-04 22:59:01 +02:00
Try out different styling for highlights
This commit is contained in:
+1
-2
@@ -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()
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user