Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/renderer/components/mcp/McpServerEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export function McpServerEditor(props: {
onChange={(event) => update("name", event.target.value)}
/>
</Field>
<div className="space-y-1.5">
<div className="flex flex-col gap-1.5">
<Label className="text-xs font-medium text-foreground">{t`Type`}</Label>
<Select
aria-label={t`MCP transport type`}
Expand Down Expand Up @@ -370,7 +370,7 @@ export function McpServerEditor(props: {
</Field>
</div>
) : (
<TextField className="space-y-2" isInvalid={jsonError !== undefined}>
<TextField className="gap-2" isInvalid={jsonError !== undefined}>
<Label className="text-xs font-medium text-foreground">
<Trans>Full configuration</Trans>
</Label>
Expand Down Expand Up @@ -420,7 +420,7 @@ function Field(props: {
children: ReactNode;
}) {
return (
<TextField className="space-y-1.5" isInvalid={props.error !== undefined}>
<TextField className="gap-1.5" isInvalid={props.error !== undefined}>
<div className="flex items-baseline justify-between gap-3">
<Label className="text-xs font-medium text-foreground">{props.label}</Label>
{props.hint ? (
Expand Down
5 changes: 4 additions & 1 deletion src/renderer/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,10 @@
/* Matches --composer-surface so chat bubbles (user message) and the
composer read as one surface. */
--surface-tertiary: #17171d;
--overlay: #19191c;
/* Floating chrome (modals, menus, popovers, tooltips) sits just above the
panel surfaces. Fields/controls are lighter than this, so they read as
raised cards on overlays instead of blending into them. */
--overlay: #121216;
/* Neutral cool-grey for secondary text — deliberately low chroma so it
reads as grey (not the old blue/violet cast). Kept a step below the
bright foreground so idle/secondary rows recede clearly from active
Expand Down
8 changes: 7 additions & 1 deletion src/renderer/theme/themeTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@ export function buildVariant(spec: ThemeSpec, mode: "light" | "dark"): ThemeVari
"--surface": surface,
"--surface-secondary": mix(surface, 92, fg),
"--surface-tertiary": mix(surface, 85, fg),
"--overlay": mix(surface, 93, fg),
// Floating chrome (modals, menus, popovers). In dark themes it drops to
// just above the surface so fields (mixed toward fg, below) read as raised
// cards on it; in light themes it dims below the surface, where the
// barely-lighter field fill already reads as a card.
"--overlay": mode === "light" ? mix(surface, 93, fg) : mix(surface, 98, fg),
"--muted": muted.hex,
"--scrollbar": fade(muted.hex, 60),
// Neutral fill for secondary/tertiary buttons, selects, chips, toggle and
Expand All @@ -133,6 +137,8 @@ export function buildVariant(spec: ThemeSpec, mode: "light" | "dark"): ThemeVari
"--default": mix(surface, mode === "light" ? 82 : 86, fg),
"--accent": accent,
"--accent-foreground": accentFg,
// Fields sit a step lighter than the surface/overlay (below) so they read
// as raised cards on panels and floating chrome in both modes.
"--field-background": mix(surface, 95, fg),
"--field-foreground": fg,
"--field-placeholder": placeholder,
Expand Down