Skip to content

Commit

Permalink
🐛 Fix retrieval of the dom colors
Browse files Browse the repository at this point in the history
  • Loading branch information
abe33 committed Dec 2, 2014
1 parent 0a6ea03 commit b8c11bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/minimap-render-view.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,8 @@ class MinimapRenderView extends ScrollView
#
# Returns a {String}.
getDefaultColor: ->
@transparentize(@minimapView.editorView.css('color'), @getTextOpacity())
color = @retrieveStyleFromDom(['.dummy'], 'color')
@transparentize(color, @getTextOpacity())

# Returns the text color for the passed-in `token` object.
#
Expand Down Expand Up @@ -416,7 +417,7 @@ class MinimapRenderView extends ScrollView
unless @dummyNode?
@dummyNode = document.createElement('span')
@dummyNode.style.visibility = 'hidden'
@editorView.append(@dummyNode)
@editorView.shadowRoot.appendChild(@dummyNode)

# Internal: Converts a `rgb(...)` color into a `rgba(...)` color
# with the specified opacity.
Expand Down

0 comments on commit b8c11bb

Please sign in to comment.