Skip to content

Commit 822fb5e

Browse files
committed
🤖 fix: simplify thinking label to use CSS variable directly
The color-mix syntax wasn't working in inline styles. Use the CSS variables directly: --color-thinking-mode-light for LOW, --color-thinking-mode for MEDIUM/HIGH. _Generated with mux_
1 parent d61dff9 commit 822fb5e

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

src/browser/components/ThinkingSlider.tsx

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,14 @@ const getTextStyle = (n: number): React.CSSProperties => {
3737
};
3838
}
3939

40-
// Active levels use the thinking mode color with increasing intensity
40+
// Active levels use the thinking mode color
41+
// Low uses lighter variant, medium/high use main color
4142
const fontWeight = 400 + n * 100; // 500 → 600 → 700
42-
// Use color-mix to lighten the base color for lower levels
43-
const lightnessAdjust = (3 - n) * 10; // high=0%, medium=10%, low=20% lighter
4443

4544
return {
46-
color:
47-
lightnessAdjust > 0
48-
? `color-mix(in srgb, var(--color-thinking-mode-light) ${lightnessAdjust}%, var(--color-thinking-mode))`
49-
: "var(--color-thinking-mode)",
45+
color: n === 1 ? "var(--color-thinking-mode-light)" : "var(--color-thinking-mode)",
5046
fontWeight,
51-
textShadow:
52-
n > 0
53-
? `0 0 ${n * 4}px color-mix(in srgb, var(--color-thinking-mode) ${30 + n * 15}%, transparent)`
54-
: "none",
47+
textShadow: "none",
5548
fontSize: "10px",
5649
};
5750
};

0 commit comments

Comments
 (0)