Make heatmap shades linear (#13500)

Previously, shades were 50%, 60%, 70%, 80%, 100%. Make them linearily
increasing instead at 60%, 70%, 80%, 90%, 100%.

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
tokarchuk/v1.17
silverwind 4 years ago committed by GitHub
parent 13b8c0b7ae
commit da4f2c5979
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      web_src/js/components/ActivityHeatmap.vue

@ -28,10 +28,10 @@ export default {
isLoading: true, isLoading: true,
colorRange: [ colorRange: [
'var(--color-secondary-alpha-70)', 'var(--color-secondary-alpha-70)',
'var(--color-primary-alpha-50)',
'var(--color-primary-alpha-60)', 'var(--color-primary-alpha-60)',
'var(--color-primary-alpha-70)', 'var(--color-primary-alpha-70)',
'var(--color-primary-alpha-80)', 'var(--color-primary-alpha-80)',
'var(--color-primary-alpha-90)',
'var(--color-primary)', 'var(--color-primary)',
], ],
endDate: new Date(), endDate: new Date(),

Loading…
Cancel
Save