From a0d18738358707614b87858e864562388e6722d0 Mon Sep 17 00:00:00 2001 From: jackwener Date: Thu, 9 Jul 2026 02:19:35 +0800 Subject: [PATCH] fix(desktop): separate the three near-identical blue palettes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 默认 (h250), One Dark (h250) and 湖蓝 azure (h252) accents were the same blue at three lightness levels — indistinguishable as picker swatches and pointless as palette choices. Each now sits on its own hue, faithful to its name: - One Dark → oklch h237 (the actual #61AFEF One Dark blue family) - 湖蓝 azure → oklch h195 lake cyan (a lake, not a brand-blue clone); clear of Tokyo Night/Nord at h215 - 默认 stays the brand h250 Picker swatch literals in theme-preview.css synced to the new accents. --- apps/desktop/src/renderer/maka-tokens.css | 8 ++++---- .../src/renderer/styles/settings/theme-preview.css | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/desktop/src/renderer/maka-tokens.css b/apps/desktop/src/renderer/maka-tokens.css index d129cd267c..ca2b328d38 100644 --- a/apps/desktop/src/renderer/maka-tokens.css +++ b/apps/desktop/src/renderer/maka-tokens.css @@ -664,7 +664,7 @@ [data-maka-theme="onedark"] { --background: oklch(0.95 0.005 250); --foreground: oklch(0.30 0.02 250); - --accent: oklch(0.60 0.14 250); /* blue */ + --accent: oklch(0.62 0.13 237); /* One Dark blue (#61AFEF family) */ --info: oklch(0.72 0.14 60); /* warm amber */ --success: oklch(0.62 0.16 145); --destructive: oklch(0.62 0.20 22); @@ -674,7 +674,7 @@ [data-maka-theme="onedark"].dark { --background: oklch(0.21 0.010 250); --foreground: oklch(0.90 0.010 250); - --accent: oklch(0.68 0.15 250); + --accent: oklch(0.70 0.13 237); --info: oklch(0.74 0.15 70); --success: oklch(0.65 0.16 145); --destructive: oklch(0.70 0.18 22); @@ -774,7 +774,7 @@ [data-maka-theme="azure"] { --background: oklch(0.98 0.005 250); --foreground: oklch(0.20 0.015 250); - --accent: oklch(0.58 0.18 252); /* product blue */ + --accent: oklch(0.55 0.12 195); /* lake cyan */ --info: oklch(0.68 0.13 240); --success: oklch(0.66 0.15 150); --destructive: oklch(0.62 0.18 22); @@ -784,7 +784,7 @@ [data-maka-theme="azure"].dark { --background: oklch(0.20 0.015 250); --foreground: oklch(0.93 0.010 250); - --accent: oklch(0.70 0.18 252); + --accent: oklch(0.72 0.13 195); --info: oklch(0.74 0.13 240); --success: oklch(0.72 0.14 150); --destructive: oklch(0.72 0.18 22); diff --git a/apps/desktop/src/renderer/styles/settings/theme-preview.css b/apps/desktop/src/renderer/styles/settings/theme-preview.css index e15ce03085..cd0f1e8695 100644 --- a/apps/desktop/src/renderer/styles/settings/theme-preview.css +++ b/apps/desktop/src/renderer/styles/settings/theme-preview.css @@ -369,12 +369,12 @@ palette's brand identity even when the current page is on a different palette. */ .settingsPaletteSwatch-default { background: oklch(0.70 0.135 250); } -.settingsPaletteSwatch-onedark { background: oklch(0.60 0.14 250); } +.settingsPaletteSwatch-onedark { background: oklch(0.62 0.13 237); } .settingsPaletteSwatch-catppuccin-mocha { background: oklch(0.65 0.18 330); } .settingsPaletteSwatch-tokyo-night { background: oklch(0.55 0.16 215); } .settingsPaletteSwatch-nord { background: oklch(0.62 0.12 215); } .settingsPaletteSwatch-coral { background: oklch(0.68 0.18 25); } -.settingsPaletteSwatch-azure { background: oklch(0.58 0.18 252); } +.settingsPaletteSwatch-azure { background: oklch(0.55 0.12 195); } .settingsPaletteSwatch-forest { background: oklch(0.50 0.12 152); } .settingsPaletteSwatch-dusk { background: oklch(0.55 0.18 305); } .settingsPaletteSwatch-sand { background: oklch(0.62 0.14 55); }