Skip to content

Commit 96f8daa

Browse files
committed
🤖 fix: minimize visual regression in default themes
- Restore runtime icon text colors in default themes to match original (lighter shades) - Use --color-text-secondary for ThinkingSlider 'off' state to match original gray - Ensure Solarized themes use consistent palette colors _Generated with mux_
1 parent 027b4d3 commit 96f8daa

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

src/browser/components/RuntimeBadge.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ const RUNTIME_STYLES = {
2121
ssh: {
2222
idle: "bg-transparent text-muted border-[var(--color-runtime-ssh)]/50",
2323
working:
24-
"bg-[var(--color-runtime-ssh)]/20 text-[var(--color-runtime-ssh)] border-[var(--color-runtime-ssh)]/60 animate-pulse",
24+
"bg-[var(--color-runtime-ssh)]/20 text-[var(--color-runtime-ssh-text)] border-[var(--color-runtime-ssh)]/60 animate-pulse",
2525
},
2626
worktree: {
2727
idle: "bg-transparent text-muted border-[var(--color-runtime-worktree)]/50",
2828
working:
29-
"bg-[var(--color-runtime-worktree)]/20 text-[var(--color-runtime-worktree)] border-[var(--color-runtime-worktree)]/60 animate-pulse",
29+
"bg-[var(--color-runtime-worktree)]/20 text-[var(--color-runtime-worktree-text)] border-[var(--color-runtime-worktree)]/60 animate-pulse",
3030
},
3131
local: {
3232
idle: "bg-transparent text-muted border-[var(--color-runtime-local)]/50",

src/browser/components/RuntimeIconSelector.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ const RUNTIME_STYLES = {
2222
ssh: {
2323
idle: "bg-transparent text-muted border-[var(--color-runtime-ssh)]/30 hover:border-[var(--color-runtime-ssh)]/50",
2424
active:
25-
"bg-[var(--color-runtime-ssh)]/20 text-[var(--color-runtime-ssh)] border-[var(--color-runtime-ssh)]/60",
25+
"bg-[var(--color-runtime-ssh)]/20 text-[var(--color-runtime-ssh-text)] border-[var(--color-runtime-ssh)]/60",
2626
},
2727
worktree: {
2828
idle: "bg-transparent text-muted border-[var(--color-runtime-worktree)]/30 hover:border-[var(--color-runtime-worktree)]/50",
2929
active:
30-
"bg-[var(--color-runtime-worktree)]/20 text-[var(--color-runtime-worktree)] border-[var(--color-runtime-worktree)]/60",
30+
"bg-[var(--color-runtime-worktree)]/20 text-[var(--color-runtime-worktree-text)] border-[var(--color-runtime-worktree)]/60",
3131
},
3232
local: {
3333
idle: "bg-transparent text-muted border-[var(--color-runtime-local)]/30 hover:border-[var(--color-runtime-local)]/50",

src/browser/components/ThinkingSlider.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const GLOW_INTENSITIES: Record<number, { track: string; thumb: string }> = {
3030
const getTextStyle = (n: number): React.CSSProperties => {
3131
if (n === 0) {
3232
return {
33-
color: "var(--color-muted)",
33+
color: "var(--color-text-secondary)",
3434
fontWeight: 400,
3535
textShadow: "none",
3636
fontSize: "10px",
@@ -52,7 +52,7 @@ const getTextStyle = (n: number): React.CSSProperties => {
5252
const getSliderStyles = (value: number, isHover = false) => {
5353
const effectiveValue = isHover ? Math.min(value + 1, 3) : value;
5454
// Use CSS variable for thumb color when active
55-
const thumbBg = value === 0 ? "var(--color-muted)" : "var(--color-thinking-mode)";
55+
const thumbBg = value === 0 ? "var(--color-text-secondary)" : "var(--color-thinking-mode)";
5656

5757
return {
5858
trackShadow: GLOW_INTENSITIES[effectiveValue].track,

src/browser/styles/globals.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@
6464

6565
/* Runtime icon colors (matches Tailwind blue-500/purple-500) */
6666
--color-runtime-ssh: #3b82f6;
67+
--color-runtime-ssh-text: #60a5fa; /* blue-400 */
6768
--color-runtime-worktree: #a855f7;
69+
--color-runtime-worktree-text: #c084fc; /* purple-400 */
6870
--color-runtime-local: hsl(0 0% 60%); /* matches --color-muted-foreground */
6971

7072
/* Background & Layout */
@@ -307,7 +309,9 @@
307309

308310
/* Runtime icon colors (matches Tailwind blue-500/purple-500) */
309311
--color-runtime-ssh: #3b82f6;
312+
--color-runtime-ssh-text: #60a5fa;
310313
--color-runtime-worktree: #a855f7;
314+
--color-runtime-worktree-text: #c084fc;
311315
--color-runtime-local: hsl(210 14% 48%); /* matches --color-muted-foreground */
312316

313317
--color-background: hsl(210 33% 98%);
@@ -535,7 +539,9 @@
535539

536540
/* Runtime icon colors - using solarized palette */
537541
--color-runtime-ssh: #268bd2; /* blue */
542+
--color-runtime-ssh-text: #268bd2;
538543
--color-runtime-worktree: #6c71c4; /* violet */
544+
--color-runtime-worktree-text: #6c71c4;
539545
--color-runtime-local: #839496; /* base0 */
540546

541547
/* Background & Layout - Solarized base colors */
@@ -746,7 +752,9 @@
746752

747753
/* Runtime icon colors - using solarized palette */
748754
--color-runtime-ssh: #268bd2; /* blue */
755+
--color-runtime-ssh-text: #268bd2;
749756
--color-runtime-worktree: #6c71c4; /* violet */
757+
--color-runtime-worktree-text: #6c71c4;
750758
--color-runtime-local: #839496; /* base0 */
751759

752760
/* Background & Layout - Solarized dark base colors

0 commit comments

Comments
 (0)