Skip to content

Commit

Permalink
fix: inline textOpacity
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jan 3, 2021
1 parent 1801ec8 commit 2689a9a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/mixins/canvas-drawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,9 @@ export default class CanvasDrawer extends Mixin {
* Returns the opacity value to use when rendering the `Minimap` text.
*
* @return {Number} the text opacity value
* Unused (inlined)
*/
getTextOpacity () { return this.textOpacity }
// getTextOpacity () { return this.textOpacity }

/**
* Returns the default text color for an editor content.
Expand All @@ -365,7 +366,7 @@ export default class CanvasDrawer extends Mixin {
*/
getDefaultColor (editorElement) {
const color = this.DOMStylesReader.retrieveStyleFromDom(['.editor'], 'color', editorElement, true)
return transparentize(color, this.getTextOpacity())
return transparentize(color, this.textOpacity)
}

/**
Expand All @@ -382,7 +383,7 @@ export default class CanvasDrawer extends Mixin {
const scopes = token.scopeDescriptor || token.scopes
const color = this.DOMStylesReader.retrieveStyleFromDom(scopes, 'color', editorElement, true)

return transparentize(color, this.getTextOpacity())
return transparentize(color, this.textOpacity)
}

/**
Expand Down

0 comments on commit 2689a9a

Please sign in to comment.