Browse Source

change progress bar to darken at increments of 100%..

main
Gisle Aune 3 years ago
parent
commit
c37a311052
  1. 6
      svelte-ui/src/components/Progress.svelte

6
svelte-ui/src/components/Progress.svelte

@ -35,11 +35,7 @@
ons = target; ons = target;
offClass = "gold"; offClass = "gold";
onClass = "diamond"; onClass = "diamond";
} else {
if (count > 0 && count == (level * target)) {
level -= 1;
}
} else {
ons = count - (level * target); ons = count - (level * target);
offs = target - ons; offs = target - ons;
offClass = COLORS[level]; offClass = COLORS[level];

Loading…
Cancel
Save