From 5e79a06a84ad8072d08f499611583cbb9744decf Mon Sep 17 00:00:00 2001 From: klopez4212 Date: Mon, 6 Jul 2026 14:01:06 +0100 Subject: [PATCH] feat(desktop): align traffic lights, neutral bg, accent above themes - Align traffic light positions in SystemPreferencePreviewSvg to match ThemePreviewSvg (x=3.5, 8, 12.5 instead of 4.5, 9, 13.5) - Use current app muted color (CSS var) for system preference frame background instead of the light theme's muted color - Move accent color picker between mode selector and theme grid so it doesn't get lost below the fold - Add accent color elements (border, title, primary squares) to the system preference SVG light half --- .../features/settings/ui/SettingsPanels.tsx | 70 +++++++++---------- .../src/shared/theme/ThemePreviewFrame.tsx | 14 ++-- 2 files changed, 42 insertions(+), 42 deletions(-) diff --git a/desktop/src/features/settings/ui/SettingsPanels.tsx b/desktop/src/features/settings/ui/SettingsPanels.tsx index f08fdf2312..4aa4032428 100644 --- a/desktop/src/features/settings/ui/SettingsPanels.tsx +++ b/desktop/src/features/settings/ui/SettingsPanels.tsx @@ -435,6 +435,41 @@ function ThemeSettingsCard() { ))} + {/* Accent color picker */} +
+

Accent color

+
+ {ACCENT_COLORS.map((color) => { + const isNeutral = color.value === NEUTRAL_ACCENT; + const swatchColor = isNeutral + ? "hsl(var(--foreground))" + : color.value; + const checkClassName = + isNeutral && isDark ? "text-black" : "text-white"; + + return ( + + ); + })} +
+
+ {/* Theme grid based on selected mode */}
@@ -475,41 +510,6 @@ function ThemeSettingsCard() { ))}
- - {/* Accent color picker */} -
-

Accent color

-
- {ACCENT_COLORS.map((color) => { - const isNeutral = color.value === NEUTRAL_ACCENT; - const swatchColor = isNeutral - ? "hsl(var(--foreground))" - : color.value; - const checkClassName = - isNeutral && isDark ? "text-black" : "text-white"; - - return ( - - ); - })} -
-
); } diff --git a/desktop/src/shared/theme/ThemePreviewFrame.tsx b/desktop/src/shared/theme/ThemePreviewFrame.tsx index 5c37b1bc38..116d61e795 100644 --- a/desktop/src/shared/theme/ThemePreviewFrame.tsx +++ b/desktop/src/shared/theme/ThemePreviewFrame.tsx @@ -278,7 +278,7 @@ function SystemPreferencePreviewSvg({ height="2.7" rx="1.35" width="2.7" - x="4.5" + x="3.5" y="4.72485" />