Skip to content

Commit

Permalink
✨ Fill adapting color_thresholds (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalkih committed Sep 6, 2019
1 parent f542bc3 commit e2a0fa5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,9 @@ class MiniGraphCard extends LitElement {
if (!fill) return;
const color = this.intColor(this.entity[i].state, i);
const fade = this.config.show.fill === 'fade';
const mask = fade
? `url(#fill-grad-${this.id}-${i})`
: color;
const mask = this.gradient[i]
? `url(#grad-${this.id}-${i})`
: fade ? `url(#fill-grad-${this.id}-${i})` : color;
return svg`
<defs>
<linearGradient id=${`fill-grad-${this.id}-${i}`} x1="0%" y1="0%" x2="0%" y2="100%">
Expand Down

0 comments on commit e2a0fa5

Please sign in to comment.