feat(settings/touchScreen): color circles based on app color
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
import { useLocalStorage } from "@vueuse/core";
|
||||
import gsap from "gsap";
|
||||
|
||||
const app = useAppStore();
|
||||
const store = useSettingsStore();
|
||||
const achievements = useAchievementsStore();
|
||||
const confirmationModal = useConfirmationModal();
|
||||
@@ -344,7 +345,7 @@ onRender((ctx) => {
|
||||
// draw circles and rings
|
||||
for (const circle of circles) {
|
||||
ctx.globalAlpha = animation.circlesOpacity;
|
||||
ctx.fillStyle = "#fb0000";
|
||||
ctx.fillStyle = app.color.hex;
|
||||
fillCirclePixelated(ctx, circle.x, circle.y, circle.radius);
|
||||
|
||||
ctx.fillStyle = "#fbfafa";
|
||||
@@ -353,7 +354,7 @@ onRender((ctx) => {
|
||||
|
||||
for (const ring of rings) {
|
||||
ctx.globalAlpha = ring.alpha * animation.circlesOpacity;
|
||||
ctx.fillStyle = "#fb0000";
|
||||
ctx.fillStyle = app.color.hex;
|
||||
strokeCirclePixelated(
|
||||
ctx,
|
||||
ring.x,
|
||||
|
||||
Reference in New Issue
Block a user