|
|
|
|
@@ -124,8 +124,8 @@
|
|
|
|
|
<button
|
|
|
|
|
aria-label="Back to dashboard"
|
|
|
|
|
use:pressable
|
|
|
|
|
class="mr-3 flex h-8 w-8 items-center justify-center rounded-full
|
|
|
|
|
text-[#8a8a8a] transition-colors hover:text-white"
|
|
|
|
|
class="mr-3 flex h-10 w-10 min-h-[44px] min-w-[44px] items-center justify-center rounded-full
|
|
|
|
|
text-text-sec transition-colors hover:text-white"
|
|
|
|
|
onclick={goBack}
|
|
|
|
|
>
|
|
|
|
|
<svg
|
|
|
|
|
@@ -160,15 +160,15 @@
|
|
|
|
|
|
|
|
|
|
<!-- 1. Timer -->
|
|
|
|
|
<section aria-labelledby="settings-timer" class="rounded-2xl p-5 backdrop-blur-xl" style="background: rgba(17,17,17,0.7);" use:inView={{ delay: 0 }}>
|
|
|
|
|
<h2 id="settings-timer" class="mb-4 text-[11px] font-medium tracking-[0.15em] text-[#8a8a8a] uppercase">
|
|
|
|
|
<h2 id="settings-timer" class="mb-4 text-[11px] font-medium tracking-[0.15em] text-text-sec uppercase">
|
|
|
|
|
Timer
|
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Break frequency</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">
|
|
|
|
|
Every {$config.break_frequency} min
|
|
|
|
|
<div class="text-[11px] text-text-sec">
|
|
|
|
|
Every {$config.break_frequency} <abbr title="minutes">min</abbr>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<Stepper
|
|
|
|
|
@@ -180,12 +180,12 @@
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Break duration</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">
|
|
|
|
|
<div class="text-[11px] text-text-sec">
|
|
|
|
|
{$config.break_duration} min
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@@ -198,12 +198,12 @@
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Auto-start</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">Start timer on launch</div>
|
|
|
|
|
<div class="text-[11px] text-text-sec">Start timer on launch</div>
|
|
|
|
|
</div>
|
|
|
|
|
<ToggleSwitch
|
|
|
|
|
bind:checked={$config.auto_start}
|
|
|
|
|
@@ -215,60 +215,60 @@
|
|
|
|
|
|
|
|
|
|
<!-- 2. Pomodoro Mode -->
|
|
|
|
|
<section aria-labelledby="settings-pomodoro" class="rounded-2xl p-5 backdrop-blur-xl" style="background: rgba(17,17,17,0.7);" use:inView={{ delay: 0.03 }}>
|
|
|
|
|
<h2 id="settings-pomodoro" class="mb-4 text-[11px] font-medium tracking-[0.15em] text-[#8a8a8a] uppercase">
|
|
|
|
|
<h2 id="settings-pomodoro" title="Pomodoro technique alternates focused work sessions with short and long breaks" class="mb-4 text-[11px] font-medium tracking-[0.15em] text-text-sec uppercase">
|
|
|
|
|
Pomodoro Mode
|
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Enable Pomodoro</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">Short breaks then a long break</div>
|
|
|
|
|
<div class="text-[11px] text-text-sec">Short breaks then a long break</div>
|
|
|
|
|
</div>
|
|
|
|
|
<ToggleSwitch bind:checked={$config.pomodoro_enabled} label="Pomodoro mode" onchange={markChanged} />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{#if $config.pomodoro_enabled}
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Short breaks before long</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">{$config.pomodoro_short_breaks} short + 1 long</div>
|
|
|
|
|
<div class="text-[11px] text-text-sec">{$config.pomodoro_short_breaks} short + 1 long</div>
|
|
|
|
|
</div>
|
|
|
|
|
<Stepper bind:value={$config.pomodoro_short_breaks} label="Short breaks" min={1} max={10} onchange={markChanged} />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Long break duration</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">{$config.pomodoro_long_break_duration} min</div>
|
|
|
|
|
<div class="text-[11px] text-text-sec">{$config.pomodoro_long_break_duration} min</div>
|
|
|
|
|
</div>
|
|
|
|
|
<Stepper bind:value={$config.pomodoro_long_break_duration} label="Long break duration" min={5} max={60} onchange={markChanged} />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
<div class="flex flex-col gap-1.5">
|
|
|
|
|
<label class="text-[13px] text-white" for="pomo-title">Long break title</label>
|
|
|
|
|
<input id="pomo-title" type="text" maxlength={100}
|
|
|
|
|
class="rounded-xl border border-[#161616] bg-black px-3.5 py-2.5 text-[13px] text-white outline-none transition-colors placeholder:text-[#2a2a2a] focus:border-[#333]"
|
|
|
|
|
class="rounded-xl border border-border bg-black px-3.5 py-2.5 text-[13px] text-white outline-none transition-colors placeholder:text-[#555] focus:border-[#333]"
|
|
|
|
|
bind:value={$config.pomodoro_long_break_title} oninput={markChanged}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
<div class="flex flex-col gap-1.5">
|
|
|
|
|
<label class="text-[13px] text-white" for="pomo-msg">Long break message</label>
|
|
|
|
|
<input id="pomo-msg" type="text" maxlength={500}
|
|
|
|
|
class="rounded-xl border border-[#161616] bg-black px-3.5 py-2.5 text-[13px] text-white outline-none transition-colors placeholder:text-[#2a2a2a] focus:border-[#333]"
|
|
|
|
|
class="rounded-xl border border-border bg-black px-3.5 py-2.5 text-[13px] text-white outline-none transition-colors placeholder:text-[#555] focus:border-[#333]"
|
|
|
|
|
bind:value={$config.pomodoro_long_break_message} oninput={markChanged}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Reset on skip</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">Reset cycle when skipping a break</div>
|
|
|
|
|
<div class="text-[11px] text-text-sec">Reset cycle when skipping a break</div>
|
|
|
|
|
</div>
|
|
|
|
|
<ToggleSwitch bind:checked={$config.pomodoro_reset_on_skip} label="Reset on skip" onchange={markChanged} />
|
|
|
|
|
</div>
|
|
|
|
|
@@ -277,14 +277,14 @@
|
|
|
|
|
|
|
|
|
|
<!-- 3. Microbreaks -->
|
|
|
|
|
<section aria-labelledby="settings-microbreaks" class="rounded-2xl p-5 backdrop-blur-xl" style="background: rgba(17,17,17,0.7);" use:inView={{ delay: 0.06 }}>
|
|
|
|
|
<h2 id="settings-microbreaks" class="mb-4 text-[11px] font-medium tracking-[0.15em] text-[#8a8a8a] uppercase">
|
|
|
|
|
<h2 id="settings-microbreaks" title="20-20-20 rule: every 20 minutes, look 20 feet away for 20 seconds" class="mb-4 text-[11px] font-medium tracking-[0.15em] text-text-sec uppercase">
|
|
|
|
|
Microbreaks
|
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">20-20-20 eye breaks</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">Quick eye rest reminders</div>
|
|
|
|
|
<div class="text-[11px] text-text-sec">Quick eye rest reminders</div>
|
|
|
|
|
</div>
|
|
|
|
|
<ToggleSwitch
|
|
|
|
|
bind:checked={$config.microbreak_enabled}
|
|
|
|
|
@@ -294,47 +294,47 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{#if $config.microbreak_enabled}
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Frequency</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">Every {$config.microbreak_frequency} min</div>
|
|
|
|
|
<div class="text-[11px] text-text-sec">Every {$config.microbreak_frequency} min</div>
|
|
|
|
|
</div>
|
|
|
|
|
<Stepper bind:value={$config.microbreak_frequency} label="Microbreak frequency" min={5} max={60} onchange={markChanged} />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Duration</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">{$config.microbreak_duration} seconds</div>
|
|
|
|
|
<div class="text-[11px] text-text-sec">{$config.microbreak_duration} seconds</div>
|
|
|
|
|
</div>
|
|
|
|
|
<Stepper bind:value={$config.microbreak_duration} label="Microbreak duration" min={10} max={60} step={5} onchange={markChanged} />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Sound</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">Play sound on eye break</div>
|
|
|
|
|
<div class="text-[11px] text-text-sec">Play sound on eye break</div>
|
|
|
|
|
</div>
|
|
|
|
|
<ToggleSwitch bind:checked={$config.microbreak_sound_enabled} label="Microbreak sound" onchange={markChanged} />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Show activity</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">Activity suggestion during eye break</div>
|
|
|
|
|
<div class="text-[11px] text-text-sec">Activity suggestion during eye break</div>
|
|
|
|
|
</div>
|
|
|
|
|
<ToggleSwitch bind:checked={$config.microbreak_show_activity} label="Microbreak activity" onchange={markChanged} />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Pause during breaks</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">No eye breaks during main breaks</div>
|
|
|
|
|
<div class="text-[11px] text-text-sec">No eye breaks during main breaks</div>
|
|
|
|
|
</div>
|
|
|
|
|
<ToggleSwitch bind:checked={$config.microbreak_pause_during_break} label="Pause during breaks" onchange={markChanged} />
|
|
|
|
|
</div>
|
|
|
|
|
@@ -343,7 +343,7 @@
|
|
|
|
|
|
|
|
|
|
<!-- 4. Break Screen (stripped down) -->
|
|
|
|
|
<section aria-labelledby="settings-breakscreen" class="rounded-2xl p-5 backdrop-blur-xl" style="background: rgba(17,17,17,0.7);" use:inView={{ delay: 0.09 }}>
|
|
|
|
|
<h2 id="settings-breakscreen" class="mb-4 text-[11px] font-medium tracking-[0.15em] text-[#8a8a8a] uppercase">
|
|
|
|
|
<h2 id="settings-breakscreen" class="mb-4 text-[11px] font-medium tracking-[0.15em] text-text-sec uppercase">
|
|
|
|
|
Break Screen
|
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
|
|
@@ -354,16 +354,16 @@
|
|
|
|
|
<input
|
|
|
|
|
id="break-title"
|
|
|
|
|
type="text"
|
|
|
|
|
class="rounded-xl border border-[#161616] bg-black px-3.5 py-2.5 text-[13px]
|
|
|
|
|
class="rounded-xl border border-border bg-black px-3.5 py-2.5 text-[13px]
|
|
|
|
|
text-white outline-none transition-colors
|
|
|
|
|
placeholder:text-[#2a2a2a] focus:border-[#333]"
|
|
|
|
|
placeholder:text-[#555] focus:border-[#333]"
|
|
|
|
|
placeholder="Enter break title..."
|
|
|
|
|
bind:value={$config.break_title}
|
|
|
|
|
oninput={markChanged}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
|
|
|
|
|
<div class="flex flex-col gap-1.5">
|
|
|
|
|
<label class="text-[13px] text-white" for="break-message">
|
|
|
|
|
@@ -372,21 +372,21 @@
|
|
|
|
|
<input
|
|
|
|
|
id="break-message"
|
|
|
|
|
type="text"
|
|
|
|
|
class="rounded-xl border border-[#161616] bg-black px-3.5 py-2.5 text-[13px]
|
|
|
|
|
class="rounded-xl border border-border bg-black px-3.5 py-2.5 text-[13px]
|
|
|
|
|
text-white outline-none transition-colors
|
|
|
|
|
placeholder:text-[#2a2a2a] focus:border-[#333]"
|
|
|
|
|
placeholder:text-[#555] focus:border-[#333]"
|
|
|
|
|
placeholder="Enter break message..."
|
|
|
|
|
bind:value={$config.break_message}
|
|
|
|
|
oninput={markChanged}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Fullscreen break</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">
|
|
|
|
|
<div class="text-[11px] text-text-sec">
|
|
|
|
|
{$config.fullscreen_mode ? "Fills entire screen" : "Centered modal"}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@@ -397,12 +397,12 @@
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Activity suggestions</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">
|
|
|
|
|
<div class="text-[11px] text-text-sec">
|
|
|
|
|
Exercise ideas during breaks
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@@ -414,11 +414,11 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{#if $config.fullscreen_mode}
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Block all monitors</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">Show overlay on all screens during breaks</div>
|
|
|
|
|
<div class="text-[11px] text-text-sec">Show overlay on all screens during breaks</div>
|
|
|
|
|
</div>
|
|
|
|
|
<ToggleSwitch
|
|
|
|
|
bind:checked={$config.multi_monitor_break}
|
|
|
|
|
@@ -432,7 +432,7 @@
|
|
|
|
|
<!-- 5. Break Activities (own card, conditional) -->
|
|
|
|
|
{#if $config.show_break_activities}
|
|
|
|
|
<section aria-labelledby="settings-activities" class="rounded-2xl p-5 backdrop-blur-xl" style="background: rgba(17,17,17,0.7);" use:inView={{ delay: 0.12 }}>
|
|
|
|
|
<h2 id="settings-activities" class="mb-4 text-[11px] font-medium tracking-[0.15em] text-[#8a8a8a] uppercase">
|
|
|
|
|
<h2 id="settings-activities" class="mb-4 text-[11px] font-medium tracking-[0.15em] text-text-sec uppercase">
|
|
|
|
|
Break Activities
|
|
|
|
|
</h2>
|
|
|
|
|
<ActivityManager />
|
|
|
|
|
@@ -441,14 +441,14 @@
|
|
|
|
|
|
|
|
|
|
<!-- 6. Breathing Guide (own card) -->
|
|
|
|
|
<section aria-labelledby="settings-breathing" class="rounded-2xl p-5 backdrop-blur-xl" style="background: rgba(17,17,17,0.7);" use:inView={{ delay: 0.15 }}>
|
|
|
|
|
<h2 id="settings-breathing" class="mb-4 text-[11px] font-medium tracking-[0.15em] text-[#8a8a8a] uppercase">
|
|
|
|
|
<h2 id="settings-breathing" title="Visual breathing exercise during breaks to reduce stress" class="mb-4 text-[11px] font-medium tracking-[0.15em] text-text-sec uppercase">
|
|
|
|
|
Breathing Guide
|
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Guided breathing</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">Visual breathing guide during breaks</div>
|
|
|
|
|
<div class="text-[11px] text-text-sec">Visual breathing guide during breaks</div>
|
|
|
|
|
</div>
|
|
|
|
|
<ToggleSwitch
|
|
|
|
|
bind:checked={$config.breathing_guide_enabled}
|
|
|
|
|
@@ -458,18 +458,20 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{#if $config.breathing_guide_enabled}
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
<div>
|
|
|
|
|
<div class="mb-3 text-[13px] text-white">Breathing pattern</div>
|
|
|
|
|
<div class="flex flex-col gap-1.5">
|
|
|
|
|
<div class="mb-3 text-[13px] text-white" id="breathing-pattern-label">Breathing pattern</div>
|
|
|
|
|
<div class="flex flex-col gap-1.5" role="radiogroup" aria-label="Breathing pattern">
|
|
|
|
|
{#each breathingPatternMeta as bp}
|
|
|
|
|
<button
|
|
|
|
|
use:pressable
|
|
|
|
|
role="radio"
|
|
|
|
|
aria-checked={$config.breathing_pattern === bp.id}
|
|
|
|
|
class="flex items-center gap-3 rounded-xl px-3.5 py-2.5 text-left
|
|
|
|
|
transition-all duration-200
|
|
|
|
|
{$config.breathing_pattern === bp.id
|
|
|
|
|
? 'bg-[#1a1a1a] border border-[#333]'
|
|
|
|
|
: 'bg-[#0a0a0a] border border-[#161616] hover:border-[#333]'}"
|
|
|
|
|
: 'bg-[#0a0a0a] border border-border hover:border-[#333]'}"
|
|
|
|
|
onclick={() => {
|
|
|
|
|
$config.breathing_pattern = bp.id;
|
|
|
|
|
markChanged();
|
|
|
|
|
@@ -480,10 +482,10 @@
|
|
|
|
|
style="border-color: {$config.breathing_pattern === bp.id ? $config.accent_color : '#333'};
|
|
|
|
|
background: {$config.breathing_pattern === bp.id ? $config.accent_color : 'transparent'};"
|
|
|
|
|
></div>
|
|
|
|
|
<span class="text-[12px] font-medium {$config.breathing_pattern === bp.id ? 'text-white' : 'text-[#8a8a8a]'}">
|
|
|
|
|
<span class="text-[12px] font-medium {$config.breathing_pattern === bp.id ? 'text-white' : 'text-text-sec'}">
|
|
|
|
|
{bp.label}
|
|
|
|
|
</span>
|
|
|
|
|
<span class="ml-auto text-[11px] text-[#8a8a8a] opacity-60 tabular-nums">
|
|
|
|
|
<span class="ml-auto text-[11px] text-text-sec opacity-60 tabular-nums">
|
|
|
|
|
{bp.desc}
|
|
|
|
|
</span>
|
|
|
|
|
</button>
|
|
|
|
|
@@ -495,14 +497,14 @@
|
|
|
|
|
|
|
|
|
|
<!-- 7. Behavior -->
|
|
|
|
|
<section aria-labelledby="settings-behavior" class="rounded-2xl p-5 backdrop-blur-xl" style="background: rgba(17,17,17,0.7);" use:inView={{ delay: 0.18 }}>
|
|
|
|
|
<h2 id="settings-behavior" class="mb-4 text-[11px] font-medium tracking-[0.15em] text-[#8a8a8a] uppercase">
|
|
|
|
|
<h2 id="settings-behavior" class="mb-4 text-[11px] font-medium tracking-[0.15em] text-text-sec uppercase">
|
|
|
|
|
Behavior
|
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Strict mode</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">
|
|
|
|
|
<div class="text-[11px] text-text-sec">
|
|
|
|
|
Disable skip and snooze
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@@ -514,12 +516,12 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{#if !$config.strict_mode}
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Allow end early</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">After 50% of break</div>
|
|
|
|
|
<div class="text-[11px] text-text-sec">After 50% of break</div>
|
|
|
|
|
</div>
|
|
|
|
|
<ToggleSwitch
|
|
|
|
|
bind:checked={$config.allow_end_early}
|
|
|
|
|
@@ -528,12 +530,12 @@
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Snooze duration</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">
|
|
|
|
|
<div class="text-[11px] text-text-sec">
|
|
|
|
|
{$config.snooze_duration} min
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@@ -546,12 +548,12 @@
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Snooze limit</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">
|
|
|
|
|
<div class="text-[11px] text-text-sec">
|
|
|
|
|
{$config.snooze_limit === 0
|
|
|
|
|
? "Unlimited"
|
|
|
|
|
: `${$config.snooze_limit} per break`}
|
|
|
|
|
@@ -568,12 +570,12 @@
|
|
|
|
|
</div>
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Immediate breaks</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">
|
|
|
|
|
<div class="text-[11px] text-text-sec">
|
|
|
|
|
Skip pre-break warning
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@@ -587,14 +589,14 @@
|
|
|
|
|
|
|
|
|
|
<!-- 8. Alerts (MERGED: Notifications + Pre-Break Nudge) -->
|
|
|
|
|
<section aria-labelledby="settings-alerts" class="rounded-2xl p-5 backdrop-blur-xl" style="background: rgba(17,17,17,0.7);" use:inView={{ delay: 0.21 }}>
|
|
|
|
|
<h2 id="settings-alerts" class="mb-4 text-[11px] font-medium tracking-[0.15em] text-[#8a8a8a] uppercase">
|
|
|
|
|
<h2 id="settings-alerts" class="mb-4 text-[11px] font-medium tracking-[0.15em] text-text-sec uppercase">
|
|
|
|
|
Alerts
|
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Pre-break alert</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">Warn before breaks</div>
|
|
|
|
|
<div class="text-[11px] text-text-sec">Warn before breaks</div>
|
|
|
|
|
</div>
|
|
|
|
|
<ToggleSwitch
|
|
|
|
|
bind:checked={$config.notification_enabled}
|
|
|
|
|
@@ -604,13 +606,13 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{#if $config.notification_enabled}
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Alert timing</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">
|
|
|
|
|
{$config.notification_before_break}s before
|
|
|
|
|
<div class="text-[11px] text-text-sec">
|
|
|
|
|
{$config.notification_before_break}<abbr title="seconds">s</abbr> before
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<Stepper
|
|
|
|
|
@@ -624,31 +626,31 @@
|
|
|
|
|
</div>
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Screen dimming</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">Gradually dim screen before breaks</div>
|
|
|
|
|
<div class="text-[11px] text-text-sec">Gradually dim screen before breaks</div>
|
|
|
|
|
</div>
|
|
|
|
|
<ToggleSwitch bind:checked={$config.screen_dim_enabled} label="Screen dimming" onchange={markChanged} />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{#if $config.screen_dim_enabled}
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Start dimming</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">{$config.screen_dim_seconds}s before break</div>
|
|
|
|
|
<div class="text-[11px] text-text-sec">{$config.screen_dim_seconds}s before break</div>
|
|
|
|
|
</div>
|
|
|
|
|
<Stepper bind:value={$config.screen_dim_seconds} label="Dim start" min={3} max={60} onchange={markChanged} />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Max dimming</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">{Math.round($config.screen_dim_max_opacity * 100)}%</div>
|
|
|
|
|
<div class="text-[11px] text-text-sec">{Math.round($config.screen_dim_max_opacity * 100)}%</div>
|
|
|
|
|
</div>
|
|
|
|
|
<Stepper
|
|
|
|
|
bind:value={$config.screen_dim_max_opacity}
|
|
|
|
|
@@ -665,14 +667,14 @@
|
|
|
|
|
|
|
|
|
|
<!-- 9. Sound -->
|
|
|
|
|
<section aria-labelledby="settings-sound" class="rounded-2xl p-5 backdrop-blur-xl" style="background: rgba(17,17,17,0.7);" use:inView={{ delay: 0.24 }}>
|
|
|
|
|
<h2 id="settings-sound" class="mb-4 text-[11px] font-medium tracking-[0.15em] text-[#8a8a8a] uppercase">
|
|
|
|
|
<h2 id="settings-sound" class="mb-4 text-[11px] font-medium tracking-[0.15em] text-text-sec uppercase">
|
|
|
|
|
Sound
|
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Sound effects</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">Play sounds on break events</div>
|
|
|
|
|
<div class="text-[11px] text-text-sec">Play sounds on break events</div>
|
|
|
|
|
</div>
|
|
|
|
|
<ToggleSwitch
|
|
|
|
|
bind:checked={$config.sound_enabled}
|
|
|
|
|
@@ -682,12 +684,12 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{#if $config.sound_enabled}
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Volume</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">{$config.sound_volume}%</div>
|
|
|
|
|
<div class="text-[11px] text-text-sec">{$config.sound_volume}%</div>
|
|
|
|
|
</div>
|
|
|
|
|
<Stepper
|
|
|
|
|
bind:value={$config.sound_volume}
|
|
|
|
|
@@ -700,7 +702,7 @@
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<div class="mb-3 text-[13px] text-white">Sound preset</div>
|
|
|
|
|
@@ -708,11 +710,12 @@
|
|
|
|
|
{#each soundPresets as preset}
|
|
|
|
|
<button
|
|
|
|
|
use:pressable
|
|
|
|
|
aria-pressed={$config.sound_preset === preset}
|
|
|
|
|
class="rounded-xl py-2.5 text-[11px] tracking-wider uppercase
|
|
|
|
|
transition-all duration-200
|
|
|
|
|
{$config.sound_preset === preset
|
|
|
|
|
? 'bg-[#1a1a1a] text-white border border-[#333]'
|
|
|
|
|
: 'bg-[#0a0a0a] text-[#8a8a8a] border border-[#161616] hover:border-[#333] hover:text-white'}"
|
|
|
|
|
: 'bg-[#0a0a0a] text-text-sec border border-border hover:border-[#333] hover:text-white'}"
|
|
|
|
|
onclick={() => {
|
|
|
|
|
$config.sound_preset = preset;
|
|
|
|
|
markChanged();
|
|
|
|
|
@@ -729,14 +732,14 @@
|
|
|
|
|
|
|
|
|
|
<!-- 10. Idle & Smart Breaks (MERGED) -->
|
|
|
|
|
<section aria-labelledby="settings-idle" class="rounded-2xl p-5 backdrop-blur-xl" style="background: rgba(17,17,17,0.7);" use:inView={{ delay: 0.27 }}>
|
|
|
|
|
<h2 id="settings-idle" class="mb-4 text-[11px] font-medium tracking-[0.15em] text-[#8a8a8a] uppercase">
|
|
|
|
|
<h2 id="settings-idle" class="mb-4 text-[11px] font-medium tracking-[0.15em] text-text-sec uppercase">
|
|
|
|
|
Idle & Smart Breaks
|
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Auto-pause when idle</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">Pause timer when away</div>
|
|
|
|
|
<div class="text-[11px] text-text-sec">Pause timer when away</div>
|
|
|
|
|
</div>
|
|
|
|
|
<ToggleSwitch
|
|
|
|
|
bind:checked={$config.idle_detection_enabled}
|
|
|
|
|
@@ -746,12 +749,12 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{#if $config.idle_detection_enabled}
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Idle timeout</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">
|
|
|
|
|
<div class="text-[11px] text-text-sec">
|
|
|
|
|
{$config.idle_timeout}s of inactivity
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@@ -767,12 +770,12 @@
|
|
|
|
|
</div>
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Smart breaks</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">Auto-reset timer when you step away</div>
|
|
|
|
|
<div class="text-[11px] text-text-sec">Auto-reset timer when you step away</div>
|
|
|
|
|
</div>
|
|
|
|
|
<ToggleSwitch
|
|
|
|
|
bind:checked={$config.smart_breaks_enabled}
|
|
|
|
|
@@ -782,12 +785,12 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{#if $config.smart_breaks_enabled}
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Minimum away time</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">
|
|
|
|
|
<div class="text-[11px] text-text-sec">
|
|
|
|
|
{$config.smart_break_threshold >= 60
|
|
|
|
|
? `${Math.floor($config.smart_break_threshold / 60)} min`
|
|
|
|
|
: `${$config.smart_break_threshold}s`} to count as break
|
|
|
|
|
@@ -804,12 +807,12 @@
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Count in statistics</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">Track natural breaks in stats</div>
|
|
|
|
|
<div class="text-[11px] text-text-sec">Track natural breaks in stats</div>
|
|
|
|
|
</div>
|
|
|
|
|
<ToggleSwitch
|
|
|
|
|
bind:checked={$config.smart_break_count_stats}
|
|
|
|
|
@@ -822,35 +825,35 @@
|
|
|
|
|
|
|
|
|
|
<!-- 11. Presentation Mode -->
|
|
|
|
|
<section aria-labelledby="settings-presentation" class="rounded-2xl p-5 backdrop-blur-xl" style="background: rgba(17,17,17,0.7);" use:inView={{ delay: 0.30 }}>
|
|
|
|
|
<h2 id="settings-presentation" class="mb-4 text-[11px] font-medium tracking-[0.15em] text-[#8a8a8a] uppercase">
|
|
|
|
|
<h2 id="settings-presentation" class="mb-4 text-[11px] font-medium tracking-[0.15em] text-text-sec uppercase">
|
|
|
|
|
Presentation Mode
|
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Auto-detect fullscreen</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">Defer breaks during fullscreen apps</div>
|
|
|
|
|
<div class="text-[11px] text-text-sec">Defer breaks during fullscreen apps</div>
|
|
|
|
|
</div>
|
|
|
|
|
<ToggleSwitch bind:checked={$config.presentation_mode_enabled} label="Presentation mode" onchange={markChanged} />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{#if $config.presentation_mode_enabled}
|
|
|
|
|
{#if $config.microbreak_enabled}
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Defer microbreaks</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">Also pause eye breaks</div>
|
|
|
|
|
<div class="text-[11px] text-text-sec">Also pause eye breaks</div>
|
|
|
|
|
</div>
|
|
|
|
|
<ToggleSwitch bind:checked={$config.presentation_mode_defer_microbreaks} label="Defer microbreaks" onchange={markChanged} />
|
|
|
|
|
</div>
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Notification</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">Show toast when break is deferred</div>
|
|
|
|
|
<div class="text-[11px] text-text-sec">Show toast when break is deferred</div>
|
|
|
|
|
</div>
|
|
|
|
|
<ToggleSwitch bind:checked={$config.presentation_mode_notification} label="Deferral notification" onchange={markChanged} />
|
|
|
|
|
</div>
|
|
|
|
|
@@ -859,43 +862,43 @@
|
|
|
|
|
|
|
|
|
|
<!-- 12. Goals & Streaks -->
|
|
|
|
|
<section aria-labelledby="settings-goals" class="rounded-2xl p-5 backdrop-blur-xl" style="background: rgba(17,17,17,0.7);" use:inView={{ delay: 0.33 }}>
|
|
|
|
|
<h2 id="settings-goals" class="mb-4 text-[11px] font-medium tracking-[0.15em] text-[#8a8a8a] uppercase">
|
|
|
|
|
<h2 id="settings-goals" class="mb-4 text-[11px] font-medium tracking-[0.15em] text-text-sec uppercase">
|
|
|
|
|
Goals & Streaks
|
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Daily goal</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">Track daily break target</div>
|
|
|
|
|
<div class="text-[11px] text-text-sec">Track daily break target</div>
|
|
|
|
|
</div>
|
|
|
|
|
<ToggleSwitch bind:checked={$config.daily_goal_enabled} label="Daily goal" onchange={markChanged} />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{#if $config.daily_goal_enabled}
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Target breaks</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">{$config.daily_goal_breaks} per day</div>
|
|
|
|
|
<div class="text-[11px] text-text-sec">{$config.daily_goal_breaks} per day</div>
|
|
|
|
|
</div>
|
|
|
|
|
<Stepper bind:value={$config.daily_goal_breaks} label="Daily goal breaks" min={1} max={30} onchange={markChanged} />
|
|
|
|
|
</div>
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Celebrations</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">Confetti on milestones and goals</div>
|
|
|
|
|
<div class="text-[11px] text-text-sec">Confetti on milestones and goals</div>
|
|
|
|
|
</div>
|
|
|
|
|
<ToggleSwitch bind:checked={$config.milestone_celebrations} label="Celebrations" onchange={markChanged} />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Streak notifications</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">Toast on streak milestones</div>
|
|
|
|
|
<div class="text-[11px] text-text-sec">Toast on streak milestones</div>
|
|
|
|
|
</div>
|
|
|
|
|
<ToggleSwitch bind:checked={$config.streak_notifications} label="Streak notifications" onchange={markChanged} />
|
|
|
|
|
</div>
|
|
|
|
|
@@ -903,14 +906,14 @@
|
|
|
|
|
|
|
|
|
|
<!-- 13. Appearance -->
|
|
|
|
|
<section aria-labelledby="settings-appearance" class="rounded-2xl p-5 backdrop-blur-xl" style="background: rgba(17,17,17,0.7);" use:inView={{ delay: 0.36 }}>
|
|
|
|
|
<h2 id="settings-appearance" class="mb-4 text-[11px] font-medium tracking-[0.15em] text-[#8a8a8a] uppercase">
|
|
|
|
|
<h2 id="settings-appearance" class="mb-4 text-[11px] font-medium tracking-[0.15em] text-text-sec uppercase">
|
|
|
|
|
Appearance
|
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">UI zoom</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">
|
|
|
|
|
<div class="text-[11px] text-text-sec">
|
|
|
|
|
{$config.ui_zoom}%
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@@ -925,7 +928,7 @@
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
|
|
|
|
|
<ColorPicker
|
|
|
|
|
label="Accent color"
|
|
|
|
|
@@ -933,7 +936,7 @@
|
|
|
|
|
onchange={markChanged}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
|
|
|
|
|
<ColorPicker
|
|
|
|
|
label="Break screen color"
|
|
|
|
|
@@ -947,19 +950,19 @@
|
|
|
|
|
onchange={markChanged}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
|
|
|
|
|
<FontSelector
|
|
|
|
|
bind:value={$config.countdown_font}
|
|
|
|
|
onchange={markChanged}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Animated background</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">
|
|
|
|
|
<div class="text-[11px] text-text-sec">
|
|
|
|
|
Gradient blobs with film grain
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@@ -973,14 +976,14 @@
|
|
|
|
|
|
|
|
|
|
<!-- 14. Working Hours -->
|
|
|
|
|
<section aria-labelledby="settings-workinghours" class="rounded-2xl p-5 backdrop-blur-xl" style="background: rgba(17,17,17,0.7);" use:inView={{ delay: 0.39 }}>
|
|
|
|
|
<h2 id="settings-workinghours" class="mb-4 text-[11px] font-medium tracking-[0.15em] text-[#8a8a8a] uppercase">
|
|
|
|
|
<h2 id="settings-workinghours" class="mb-4 text-[11px] font-medium tracking-[0.15em] text-text-sec uppercase">
|
|
|
|
|
Working Hours
|
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Working hours</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">
|
|
|
|
|
<div class="text-[11px] text-text-sec">
|
|
|
|
|
Only show breaks during your configured work schedule
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@@ -992,7 +995,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{#if $config.working_hours_enabled}
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
|
|
|
|
|
{#each $config.working_hours_schedule as daySchedule, dayIndex}
|
|
|
|
|
{@const dayName = daysOfWeek[dayIndex]}
|
|
|
|
|
@@ -1017,7 +1020,7 @@
|
|
|
|
|
countdownFont={$config.countdown_font}
|
|
|
|
|
onchange={(v) => updateTimeRange(dayIndex, rangeIndex, "start", v)}
|
|
|
|
|
/>
|
|
|
|
|
<span class="text-[#8a8a8a] text-[13px]">to</span>
|
|
|
|
|
<span class="text-text-sec text-[13px]">to</span>
|
|
|
|
|
<TimeSpinner
|
|
|
|
|
value={range.end}
|
|
|
|
|
countdownFont={$config.countdown_font}
|
|
|
|
|
@@ -1028,7 +1031,7 @@
|
|
|
|
|
{#if rangeIndex === daySchedule.ranges.length - 1}
|
|
|
|
|
<button
|
|
|
|
|
use:pressable
|
|
|
|
|
class="ml-2 w-8 h-8 flex items-center justify-center rounded-full text-[#8a8a8a] hover:text-white hover:bg-[#1a1a1a] transition-colors"
|
|
|
|
|
class="ml-2 w-8 h-8 flex items-center justify-center rounded-full text-text-sec hover:text-white hover:bg-[#1a1a1a] transition-colors"
|
|
|
|
|
onclick={() => addTimeRange(dayIndex)}
|
|
|
|
|
aria-label="Add time range"
|
|
|
|
|
>
|
|
|
|
|
@@ -1041,7 +1044,7 @@
|
|
|
|
|
<!-- Clone button -->
|
|
|
|
|
<button
|
|
|
|
|
use:pressable
|
|
|
|
|
class="w-8 h-8 flex items-center justify-center rounded-full text-[#8a8a8a] hover:text-white hover:bg-[#1a1a1a] transition-colors"
|
|
|
|
|
class="w-8 h-8 flex items-center justify-center rounded-full text-text-sec hover:text-white hover:bg-[#1a1a1a] transition-colors"
|
|
|
|
|
onclick={() => cloneTimeRange(dayIndex, rangeIndex)}
|
|
|
|
|
aria-label="Clone time range"
|
|
|
|
|
>
|
|
|
|
|
@@ -1055,7 +1058,7 @@
|
|
|
|
|
{#if rangeIndex > 0}
|
|
|
|
|
<button
|
|
|
|
|
use:pressable
|
|
|
|
|
class="w-8 h-8 flex items-center justify-center rounded-full text-[#8a8a8a] hover:text-[#f85149] hover:bg-[#f8514915] transition-colors"
|
|
|
|
|
class="w-8 h-8 flex items-center justify-center rounded-full text-text-sec hover:text-[#f85149] hover:bg-[#f8514915] transition-colors"
|
|
|
|
|
onclick={() => removeTimeRange(dayIndex, rangeIndex)}
|
|
|
|
|
aria-label="Remove time range"
|
|
|
|
|
>
|
|
|
|
|
@@ -1071,7 +1074,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{#if dayIndex < 6}
|
|
|
|
|
<div class="my-4 h-px bg-[#161616]"></div>
|
|
|
|
|
<div class="my-4 h-px bg-border"></div>
|
|
|
|
|
{/if}
|
|
|
|
|
{/each}
|
|
|
|
|
{/if}
|
|
|
|
|
@@ -1079,14 +1082,14 @@
|
|
|
|
|
|
|
|
|
|
<!-- 15. Mini Mode -->
|
|
|
|
|
<section aria-labelledby="settings-minimode" class="rounded-2xl p-5 backdrop-blur-xl" style="background: rgba(17,17,17,0.7);" use:inView={{ delay: 0.42 }}>
|
|
|
|
|
<h2 id="settings-minimode" class="mb-4 text-[11px] font-medium tracking-[0.15em] text-[#8a8a8a] uppercase">
|
|
|
|
|
<h2 id="settings-minimode" class="mb-4 text-[11px] font-medium tracking-[0.15em] text-text-sec uppercase">
|
|
|
|
|
Mini Mode
|
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
|
|
<div class="flex items-center justify-between">
|
|
|
|
|
<div>
|
|
|
|
|
<div class="text-[13px] text-white">Click-through</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">
|
|
|
|
|
<div class="text-[11px] text-text-sec">
|
|
|
|
|
Mini timer ignores clicks until you hover over it
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@@ -1101,7 +1104,7 @@
|
|
|
|
|
<div class="mt-4 flex items-center justify-between">
|
|
|
|
|
<div>
|
|
|
|
|
<div class="text-[13px] text-white">Hover delay</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">
|
|
|
|
|
<div class="text-[11px] text-text-sec">
|
|
|
|
|
Seconds to hover before it becomes draggable
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@@ -1120,14 +1123,14 @@
|
|
|
|
|
|
|
|
|
|
<!-- 16. General -->
|
|
|
|
|
<section aria-labelledby="settings-general" class="rounded-2xl p-5 backdrop-blur-xl" style="background: rgba(17,17,17,0.7);" use:inView={{ delay: 0.45 }}>
|
|
|
|
|
<h2 id="settings-general" class="mb-4 text-[11px] font-medium tracking-[0.15em] text-[#8a8a8a] uppercase">
|
|
|
|
|
<h2 id="settings-general" class="mb-4 text-[11px] font-medium tracking-[0.15em] text-text-sec uppercase">
|
|
|
|
|
General
|
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<div class="text-[13px] text-white">Start on Windows login</div>
|
|
|
|
|
<div class="text-[11px] text-[#8a8a8a]">Launch automatically at startup</div>
|
|
|
|
|
<div class="text-[11px] text-text-sec">Launch automatically at startup</div>
|
|
|
|
|
</div>
|
|
|
|
|
<ToggleSwitch
|
|
|
|
|
checked={autoStartEnabled}
|
|
|
|
|
@@ -1139,22 +1142,22 @@
|
|
|
|
|
|
|
|
|
|
<!-- 17. Keyboard Shortcuts -->
|
|
|
|
|
<section aria-labelledby="settings-shortcuts" class="rounded-2xl p-5 backdrop-blur-xl" style="background: rgba(17,17,17,0.7);" use:inView={{ delay: 0.48 }}>
|
|
|
|
|
<h2 id="settings-shortcuts" class="mb-4 text-[11px] font-medium tracking-[0.15em] text-[#8a8a8a] uppercase">
|
|
|
|
|
<h2 id="settings-shortcuts" class="mb-4 text-[11px] font-medium tracking-[0.15em] text-text-sec uppercase">
|
|
|
|
|
Keyboard Shortcuts
|
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
|
|
<div class="space-y-3">
|
|
|
|
|
<div class="flex items-center justify-between">
|
|
|
|
|
<span class="text-[13px] text-white">Pause / Resume</span>
|
|
|
|
|
<kbd class="rounded-lg bg-[#161616] px-2.5 py-1 text-[11px] text-[#8a8a8a]">Ctrl+Shift+P</kbd>
|
|
|
|
|
<kbd class="rounded-lg bg-border px-2.5 py-1 text-[11px] text-text-sec">Ctrl+Shift+P</kbd>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex items-center justify-between">
|
|
|
|
|
<span class="text-[13px] text-white">Start break now</span>
|
|
|
|
|
<kbd class="rounded-lg bg-[#161616] px-2.5 py-1 text-[11px] text-[#8a8a8a]">Ctrl+Shift+B</kbd>
|
|
|
|
|
<kbd class="rounded-lg bg-border px-2.5 py-1 text-[11px] text-text-sec">Ctrl+Shift+B</kbd>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex items-center justify-between">
|
|
|
|
|
<span class="text-[13px] text-white">Show / Hide window</span>
|
|
|
|
|
<kbd class="rounded-lg bg-[#161616] px-2.5 py-1 text-[11px] text-[#8a8a8a]">Ctrl+Shift+S</kbd>
|
|
|
|
|
<kbd class="rounded-lg bg-border px-2.5 py-1 text-[11px] text-text-sec">Ctrl+Shift+S</kbd>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
@@ -1164,12 +1167,13 @@
|
|
|
|
|
<h2 id="settings-reset" class="sr-only">Reset</h2>
|
|
|
|
|
<button
|
|
|
|
|
use:pressable
|
|
|
|
|
aria-live="polite"
|
|
|
|
|
class="w-full rounded-full border py-3 text-[12px]
|
|
|
|
|
tracking-wider uppercase
|
|
|
|
|
transition-all duration-200
|
|
|
|
|
{resetConfirming
|
|
|
|
|
? 'border-[#f85149] text-[#f85149] hover:bg-[#f85149] hover:text-white'
|
|
|
|
|
: 'border-[#1a1a1a] text-[#8a8a8a] hover:border-[#333] hover:text-white'}"
|
|
|
|
|
: 'border-[#1a1a1a] text-text-sec hover:border-[#333] hover:text-white'}"
|
|
|
|
|
onclick={handleReset}
|
|
|
|
|
>
|
|
|
|
|
{resetConfirming ? "Tap again to confirm reset" : "Reset to defaults"}
|
|
|
|
|
|