2024-02-13 15:42:29 +01:00
< script lang = "ts" >
import { fade } from 'svelte/transition';
import { alwaysLoadOriginalFile } from '../../stores/preferences.store';
2024-02-22 15:36:14 +01:00
import SettingSwitch from '$lib/components/shared-components/settings/setting-switch.svelte';
2024-02-13 15:42:29 +01:00
const handleToggle = () => {
$alwaysLoadOriginalFile = !$alwaysLoadOriginalFile;
};
< / script >
< section class = "my-4" >
< div in:fade = {{ duration : 500 }} >
< div class = "ml-4 mt-4 flex flex-col gap-4" >
< div class = "ml-4" >
< SettingSwitch
title="Display original photos"
subtitle="Prefer to display the original photo when viewing an asset rather than thumbnails when the original asset is web-compatible. This may result in slower photo display speeds."
bind:checked={ $alwaysLoadOriginalFile }
on:toggle={ handleToggle }
/>
< / div >
< / div >
< / div >
< / section >