From 7bd88d6660937cf91bd005b3df127852065e950d Mon Sep 17 00:00:00 2001 From: Pihkaal Date: Thu, 5 Feb 2026 20:44:19 +0100 Subject: [PATCH] feat(settings): intro and outro animation --- app/components/Home/TopScreen/Calendar.vue | 4 +- app/components/Home/TopScreen/Clock.vue | 4 +- .../Settings/BottomScreen/BottomScreen.vue | 4 +- .../Settings/BottomScreen/Menus/Menus.vue | 68 +++++++++-- .../Settings/TopScreen/Calendar.vue | 3 +- app/components/Settings/TopScreen/Clock.vue | 3 +- .../Settings/TopScreen/Notifications.vue | 94 ++++++++++++--- .../Settings/TopScreen/TopScreen.vue | 6 + app/stores/home.ts | 61 ++++++---- app/stores/settings.ts | 111 ++++++++++++++++++ 10 files changed, 306 insertions(+), 52 deletions(-) diff --git a/app/components/Home/TopScreen/Calendar.vue b/app/components/Home/TopScreen/Calendar.vue index 3c2f71d..a4a2768 100644 --- a/app/components/Home/TopScreen/Calendar.vue +++ b/app/components/Home/TopScreen/Calendar.vue @@ -24,7 +24,7 @@ onRender((ctx) => { const daysInMonth = new Date(year, month + 1, 0).getDate(); ctx.globalAlpha = store.isIntro - ? store.intro.stage1Opacity + ? store.intro.topScreenOpacity : store.isOutro && store.outro.animateTop ? store.outro.stage1Opacity : 1; @@ -44,7 +44,7 @@ onRender((ctx) => { } ctx.globalAlpha = store.isIntro - ? store.intro.stage1Opacity + ? store.intro.topScreenOpacity : store.isOutro && store.outro.animateTop ? store.outro.stage2Opacity : 1; diff --git a/app/components/Home/TopScreen/Clock.vue b/app/components/Home/TopScreen/Clock.vue index 606e3cc..3ac3359 100644 --- a/app/components/Home/TopScreen/Clock.vue +++ b/app/components/Home/TopScreen/Clock.vue @@ -55,14 +55,14 @@ function drawLine( onRender((ctx) => { ctx.globalAlpha = store.isIntro - ? store.intro.stage1Opacity + ? store.intro.topScreenOpacity : store.isOutro && store.outro.animateTop ? store.outro.stage1Opacity : 1; assets.images.home.topScreen.clock.draw(ctx, 13, 45); ctx.globalAlpha = store.isIntro - ? store.intro.stage1Opacity + ? store.intro.topScreenOpacity : store.isOutro && store.outro.animateTop ? store.outro.stage2Opacity : 1; diff --git a/app/components/Settings/BottomScreen/BottomScreen.vue b/app/components/Settings/BottomScreen/BottomScreen.vue index 2df3aab..1176c40 100644 --- a/app/components/Settings/BottomScreen/BottomScreen.vue +++ b/app/components/Settings/BottomScreen/BottomScreen.vue @@ -1,11 +1,13 @@