Skip to content

Commit 0010792

Browse files
committed
Explain GTK toggle side-effect in sidebar
Add a short caveat under the GTK toggle so users know enabling it writes to ~/.config/gtk-{3,4}.0/gtk.css and isn't reverted by switching themes outside Aether — they have to click Clear.
1 parent ccab3a4 commit 0010792

1 file changed

Lines changed: 20 additions & 5 deletions

File tree

frontend/src/lib/components/sidebar/TemplateToggles.svelte

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
44
const toggles = [
55
{key: 'includeNeovim', label: 'Neovim'},
6-
{key: 'includeGtk', label: 'GTK'},
6+
{
7+
key: 'includeGtk',
8+
label: 'GTK',
9+
description:
10+
'Writes ~/.config/gtk-{3,4}.0/gtk.css. Switching themes outside Aether leaves this applied — click Clear to revert.',
11+
},
712
{key: 'includeZed', label: 'Zed'},
813
{key: 'includeVscode', label: 'VS Code'},
914
] as const;
@@ -17,11 +22,21 @@
1722
</h3>
1823
<div class="flex flex-col gap-2">
1924
{#each toggles as toggle}
20-
<label class="flex cursor-pointer items-center justify-between">
21-
<span class="text-fg-secondary text-[11px]">{toggle.label}</span
22-
>
25+
<label
26+
class="flex cursor-pointer items-center justify-between gap-3"
27+
>
28+
<div>
29+
<span class="text-fg-secondary text-[11px]"
30+
>{toggle.label}</span
31+
>
32+
{#if 'description' in toggle && toggle.description}
33+
<p class="text-fg-dimmed text-[9px] leading-snug">
34+
{toggle.description}
35+
</p>
36+
{/if}
37+
</div>
2338
<button
24-
class="relative h-4 w-8 transition-colors duration-150
39+
class="relative h-4 w-8 shrink-0 transition-colors duration-150
2540
{getSettings()[toggle.key]
2641
? 'bg-accent'
2742
: 'bg-bg-surface border-border border'}"

0 commit comments

Comments
 (0)