diff --git a/src/routes/settings/+page.svelte b/src/routes/settings/+page.svelte index 8071afd3..4cde8932 100644 --- a/src/routes/settings/+page.svelte +++ b/src/routes/settings/+page.svelte @@ -28,21 +28,45 @@ ArrowDownTray, ArrowPath, ArrowRight, + ArrowsPointingOut, + ArrowsRightLeft, ArrowTopRightOnSquare, ArrowTrendingDown, ArrowUpTray, + Bars2, + Bars3, + BarsArrowDown, + BookOpen, + BugAnt, + Calendar, + ChartBar, ChatBubbleOvalLeftEllipsis, ChevronDown, Clock, + CubeTransparent, + CursorArrowRays, + DocumentText, + ExclamationTriangle, + Eye, + EyeSlash, Fire, GlobeAmericas, Heart, Icon, Language, + Photo, Plus, + ServerStack, + Share, Star, + Swatch, + TableCells, + Tag, Trash, Trophy, + User, + VideoCamera, + ViewColumns, } from 'svelte-hero-icons' import Section from './Section.svelte' import Setting from './Setting.svelte' @@ -204,7 +228,7 @@ {/if}
{#if env.PUBLIC_XYLIGHT_MODE} - + {#snippet title()} {$t('nav.menu.donate')} @@ -230,7 +254,7 @@ {/if}
- + {#snippet title()} {$t('settings.app.lang.title')} @@ -270,7 +294,7 @@ > {/if}
- + {#snippet title()} {$t('settings.app.view.title')} {/snippet} @@ -288,6 +312,7 @@ {#snippet title()} {$t('settings.app.sort.title')} @@ -343,12 +368,12 @@ - + {#snippet title()} {$t('settings.app.thumbnailSide.title')} {/snippet} @@ -367,33 +392,38 @@ /> - + {#snippet title()} {$t('settings.app.font.title')} {/snippet} @@ -407,26 +437,31 @@ - + {#snippet title()} YouTube {/snippet} @@ -492,31 +528,36 @@
- + {#snippet title()} {$t('settings.lemmy.hideSubmissions.title')} {/snippet} @@ -535,11 +576,12 @@ - + {#snippet title()} {$t('settings.lemmy.instances.title')} {/snippet} @@ -561,6 +603,7 @@
- + {#snippet title()} {$t('settings.moderation.replyPresets.title')} {/snippet} @@ -666,11 +709,13 @@
{#if Object.values(supportedPlatforms).some(v => v == false)}
@@ -73,6 +79,13 @@
+ {#if icon} + + {/if}

{@render title?.()} @@ -93,3 +106,57 @@ {/if}

+ + diff --git a/src/routes/settings/ToggleSetting.svelte b/src/routes/settings/ToggleSetting.svelte index d2e6f201..0765042d 100644 --- a/src/routes/settings/ToggleSetting.svelte +++ b/src/routes/settings/ToggleSetting.svelte @@ -6,6 +6,7 @@ DevicePhoneMobile, DeviceTablet, Icon, + type IconSource, } from 'svelte-hero-icons' interface Props { @@ -18,6 +19,7 @@ tablet: boolean mobile: boolean } + icon?: IconSource } let { @@ -30,10 +32,13 @@ tablet: true, mobile: true, }, + icon, }: Props = $props() -
+
{#if Object.values(supportedPlatforms).some(v => v == false) || beta}
{#if beta} @@ -67,16 +72,25 @@ {/if}
{/if} - -

{title}

- {#if description} -

- {description} -

+
+ {#if icon} + {/if} - + +

{title}

+ {#if description} +

+ {description} +

+ {/if} +
+