More rpine

This commit is contained in:
ThatOneCalculator 2022-07-25 18:15:01 -07:00
parent 5cf313ce3b
commit 66c5715ee4
1 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,7 @@
rx="1" ry="1" rx="1" ry="1"
fill="none" fill="none"
stroke-width="0.1" stroke-width="0.1"
stroke="#f73520"/> stroke="#eb6f92"/>
</svg> </svg>
</template> </template>
@ -52,6 +52,7 @@ props.activity.slice().forEach((d, i) => {
d.v = peak === 0 ? 0 : d.total / (peak / 2); d.v = peak === 0 ? 0 : d.total / (peak / 2);
if (d.v > 1) d.v = 1; if (d.v > 1) d.v = 1;
// TODO: Make Rose Pine
const ch = d.date.weekday === 0 || d.date.weekday === 6 ? 275 : 170; const ch = d.date.weekday === 0 || d.date.weekday === 6 ? 275 : 170;
const cs = d.v * 100; const cs = d.v * 100;
const cl = 15 + ((1 - d.v) * 80); const cl = 15 + ((1 - d.v) * 80);