mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-14 19:47:03 +00:00
Even better colors
This commit is contained in:
parent
c86471f708
commit
8704815d81
1 changed files with 4 additions and 4 deletions
|
|
@ -12,10 +12,10 @@ module HabitsHelper
|
|||
s = habit.score
|
||||
case
|
||||
when s<-8 then return 'color-red'
|
||||
when s>=-8 && s<-4 then return 'color-pink'
|
||||
when s>=-4 && s<0 then return 'color-orange'
|
||||
when s>=0 && s<1.5 then return 'color-yellow'
|
||||
when s>=1.5 && s<5 then return 'color-green'
|
||||
when s>=-8 && s<-5 then return 'color-pink'
|
||||
when s>=-5 && s<-1 then return 'color-orange'
|
||||
when s>=-1 && s<1 then return 'color-yellow'
|
||||
when s>=1 && s<5 then return 'color-green'
|
||||
when s>=5 && s<10 then return 'color-light-blue'
|
||||
when s>=10 then return 'color-blue'
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue