equal
deleted
inserted
replaced
22 isDark: Ember.computed('backgroundColor', 'isDisabled', function() { |
22 isDark: Ember.computed('backgroundColor', 'isDisabled', function() { |
23 let backgroundColor = this.get('backgroundColor'); |
23 let backgroundColor = this.get('backgroundColor'); |
24 if(this.get('isDisabled')) { |
24 if(this.get('isDisabled')) { |
25 return false; |
25 return false; |
26 } |
26 } |
27 return this.get('colors').getPerceptiveLuminance(this.get('backgroundColor')) >= 0.5; |
27 return this.get('colors').getPerceptiveLuminance(backgroundColor) >= 0.5; |
28 }), |
28 }), |
29 |
29 |
30 backgroundColor: Ember.computed('count', 'maxCount', 'minCount', function() { |
30 backgroundColor: Ember.computed('count', 'maxCount', 'minCount', function() { |
31 return this.get('colors').shadeLinear(this.get('count'), this.get('minCount'), this.get('maxCount')); |
31 return this.get('colors').shadeLinear(this.get('count'), this.get('minCount'), this.get('maxCount')); |
32 }), |
32 }), |