From 8ceb1a8270e61fe2ba0c6725c22e5b181454e461 Mon Sep 17 00:00:00 2001 From: klopez4212 Date: Mon, 6 Jul 2026 13:38:38 +0100 Subject: [PATCH] feat(desktop): bigger tiles, rounded-2xl, edge fade, no subtitles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Increase tile size to 168x112px for larger previews - Use rounded-2xl (matching modal radius) on all preview frames - Remove section subtitles — just title + Show all - Add right-edge fade gradient on horizontal scroll sections - Add p-1 padding to scroll container so ring states aren't clipped - Make ThemePreviewSvg fill its container (h-full w-full) - Extract HorizontalScrollWithFade component for consistent scroll UX --- .../features/settings/ui/SettingsPanels.tsx | 85 ++++++++++--------- .../src/shared/theme/ThemePreviewFrame.tsx | 9 +- 2 files changed, 46 insertions(+), 48 deletions(-) diff --git a/desktop/src/features/settings/ui/SettingsPanels.tsx b/desktop/src/features/settings/ui/SettingsPanels.tsx index e9773e4a33..00dfa437d3 100644 --- a/desktop/src/features/settings/ui/SettingsPanels.tsx +++ b/desktop/src/features/settings/ui/SettingsPanels.tsx @@ -1,4 +1,4 @@ -import { useMemo, useState } from "react"; +import { type ReactNode, useMemo, useState } from "react"; import { BellRing, Bot, @@ -261,14 +261,14 @@ function PairedThemeTile({ return ( )} -

- Automatically switches between light and dark with your system - preferences. -

-
+ {pairedLight.map((lightName) => { const darkName = getThemePair(lightName); if (!darkName) return null; @@ -426,13 +445,13 @@ function ThemeSettingsCard() { /> ); })} -
+ {/* Section 2: Light-only themes */} {lightOnly.length > 0 && (
-
+

Light

{lightOnly.length > 4 && (
-

- Always uses a light appearance. -

-
+ {lightOnly.map((name) => ( ))} -
+
)} {/* Section 3: Dark-only themes */} {darkOnly.length > 0 && (
-
+

Dark

{darkOnly.length > 4 && (
-

- Always uses a dark appearance. -

-
+ {darkOnly.map((name) => ( ))} -
+
)} diff --git a/desktop/src/shared/theme/ThemePreviewFrame.tsx b/desktop/src/shared/theme/ThemePreviewFrame.tsx index a14622f8ad..1a23856f54 100644 --- a/desktop/src/shared/theme/ThemePreviewFrame.tsx +++ b/desktop/src/shared/theme/ThemePreviewFrame.tsx @@ -47,7 +47,7 @@ function ThemePreviewSvg({ vars }: { vars: ThemePreviewVars | null }) { return (