feat: Smooth change in colour, no hard cut (#415)

Added option smoothing on colour change so there is no hard cut made when switching subjects
This commit is contained in:
StroepWafel
2026-04-06 14:58:09 +09:30
committed by GitHub
parent 3c613f4938
commit a55cb84a69
6 changed files with 147 additions and 6 deletions
@@ -252,6 +252,18 @@
/>
</div>
</div>
<div class="flex justify-between items-center px-4 py-3 pl-6 border-t border-zinc-100 dark:border-zinc-700/50">
<div class="pr-4">
<h2 class="text-sm font-bold">Smooth colour transition</h2>
<p class="text-xs">Ease between class/subject colours when navigating instead of switching instantly</p>
</div>
<div>
<Switch
state={$settingsState.adaptiveThemeColourTransition ?? true}
onChange={(isOn: boolean) => settingsState.adaptiveThemeColourTransition = isOn}
/>
</div>
</div>
{/if}
</div>
</div>