Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

feat(ui): one recipe for node header actions, and finish the icon sweep

Bas Milius75267bcb8ad7
diff --git a/src/renderer/bridge/dialog-picker.tsx b/src/renderer/bridge/dialog-picker.tsx
index c09c43a03..9793c366a 100644
--- a/src/renderer/bridge/dialog-picker.tsx
+++ b/src/renderer/bridge/dialog-picker.tsx
@@ -17,6 +17,7 @@
// here, so `..`, absolute and empty names are refused exactly as they are in the Explorer.
import { useCallback, useEffect, useState } from 'react'
+import { IconArrowUp } from '../components/icons'
import { createRoot, type Root } from 'react-dom/client'
import type { DirEntry } from '../../shared/types'
import { newEntryPath } from '../lib/explorerCreate'
@@ -214,7 +215,7 @@ function DirectoryPicker({
disabled={parent === null}
title="Up one level"
>
- ↑
+ <IconArrowUp />
</button>
<span className="dir-picker__path" title={dir}>
{dir}
diff --git a/src/renderer/components/AccountIdentityPills.tsx b/src/renderer/components/AccountIdentityPills.tsx
index 47c141a9f..f738abac0 100644
--- a/src/renderer/components/AccountIdentityPills.tsx
+++ b/src/renderer/components/AccountIdentityPills.tsx
@@ -2,6 +2,7 @@
// node chrome, create/switch menus). Based on @Corvin's #112 (`AccountIdentityPills.tsx`).
import type { AccountPresentation } from '../lib/accountPresentation'
+import { IconCheck } from './icons'
/**
* Renders a presented account as an identity pill + a Local/SSH provenance pill, with an optional
@@ -30,7 +31,7 @@ export function AccountIdentityPills({
<span className="account-provenance-pill">{account.provenance}</span>
{selected ? (
<span className="account-identity-check" aria-label="Selected">
- ✓
+ <IconCheck />
</span>
) : null}
</span>
diff --git a/src/renderer/components/Dock.tsx b/src/renderer/components/Dock.tsx
index c3d91e755..612afd246 100644
--- a/src/renderer/components/Dock.tsx
+++ b/src/renderer/components/Dock.tsx
@@ -390,7 +390,7 @@ export function Dock({
<span className="dock-sep" />
<Tooltip label="Zoom out" placement="top">
- <button className="dock-btn dock-zoom-btn" aria-label="Zoom out" onClick={onZoomOut}>
+ <button className="dock-btn" aria-label="Zoom out" onClick={onZoomOut}>
<MinusIcon />
</button>
</Tooltip>
@@ -432,7 +432,7 @@ export function Dock({
</Tooltip>
</div>
<Tooltip label="Zoom in" placement="top">
- <button className="dock-btn dock-zoom-btn" aria-label="Zoom in" onClick={onZoomIn}>
+ <button className="dock-btn" aria-label="Zoom in" onClick={onZoomIn}>
<PlusSmallIcon />
</button>
</Tooltip>
@@ -454,14 +454,14 @@ function PlusIcon() {
function UndoIcon() {
return (
<svg {...S}>
- <path d="M9 7L4 12l5 5M4 12h11a5 5 0 0 1 0 10h-2" />
+ <path d="M9 14L4 9l5-5M4 9h10.5a5.5 5.5 0 0 1 0 11H10" />
</svg>
)
}
function RedoIcon() {
return (
<svg {...S}>
- <path d="M15 7l5 5-5 5M20 12H9a5 5 0 0 0 0 10h2" />
+ <path d="M15 14l5-5-5-5M20 9H9.5a5.5 5.5 0 0 0 0 11H14" />
</svg>
)
}
@@ -481,7 +481,7 @@ function ArrowRightIcon() {
}
function PlusSmallIcon() {
return (
- <svg {...S} width={15} height={15}>
+ <svg {...S}>
<path d="M12 5v14M5 12h14" />
</svg>
)
@@ -495,7 +495,7 @@ function CheckIcon() {
}
function MinusIcon() {
return (
- <svg {...S} width={15} height={15}>
+ <svg {...S}>
<path d="M5 12h14" />
</svg>
)
diff --git a/src/renderer/components/FindBar.tsx b/src/renderer/components/FindBar.tsx
index 138a8288b..75d8d2a12 100644
--- a/src/renderer/components/FindBar.tsx
+++ b/src/renderer/components/FindBar.tsx
@@ -1,5 +1,5 @@
import { useEffect, useRef } from 'react'
-import { IconClose } from './icons'
+import { IconArrowDown, IconArrowUp, IconClose } from './icons'
/** Identical shape to SearchSnippet in useTerminalSearch.ts (imported by the consumer). */
export interface FindBarSnippet {
@@ -64,7 +64,7 @@ export function FindBar({
onClick={onPrev}
disabled={!matchCount}
>
- ↑
+ <IconArrowUp />
</button>
<button
type="button"
@@ -74,7 +74,7 @@ export function FindBar({
onClick={onNext}
disabled={!matchCount}
>
- ↓
+ <IconArrowDown />
</button>
<button
type="button"
diff --git a/src/renderer/components/ResumeCard.tsx b/src/renderer/components/ResumeCard.tsx
index 6dd4198c2..4cac54b03 100644
--- a/src/renderer/components/ResumeCard.tsx
+++ b/src/renderer/components/ResumeCard.tsx
@@ -1,4 +1,5 @@
import { useMemo, useState } from 'react'
+import { IconClose } from './icons'
import type { NavStop, Project } from '@shared/types'
import { relativeTime } from '../lib/relativeTime'
@@ -62,7 +63,7 @@ export function ResumeCard({ project, nodes, onOpen }: ResumeCardProps): JSX.Ele
aria-label="Dismiss"
onClick={() => setDismissed(true)}
>
- ✕
+ <IconClose />
</button>
</div>
<div className="resume-card__rows">
diff --git a/src/renderer/components/SessionMemoryPanel.tsx b/src/renderer/components/SessionMemoryPanel.tsx
index d79237065..45713c6d2 100644
--- a/src/renderer/components/SessionMemoryPanel.tsx
+++ b/src/renderer/components/SessionMemoryPanel.tsx
@@ -10,7 +10,7 @@
// 3. Every row is rendered. A cap would have to announce itself.
import { useCallback, useEffect, useMemo, useState } from 'react'
-import { IconReload } from './icons'
+import { IconClose, IconReload } from './icons'
import type { AgentState } from '@shared/agents/normalize'
import { formatBytes } from '@shared/fsLimits'
import { useAgentStatus } from '../state/agentStatus'
@@ -209,7 +209,7 @@ export function SessionMemoryPanel({
aria-label={`End ${v.title}`}
onClick={() => onKillSession(v.row.nodeId, v.orphan)}
>
- ×
+ <IconClose />
</button>
{v.row.childCount > 0 && (
// "child processes", NOT "MCP servers": `pane_pid` is the pane's SHELL, so the count
diff --git a/src/renderer/components/SessionRow.tsx b/src/renderer/components/SessionRow.tsx
index 2b4f8e3d5..eb7f15bf8 100644
--- a/src/renderer/components/SessionRow.tsx
+++ b/src/renderer/components/SessionRow.tsx
@@ -1,6 +1,6 @@
import { useState } from 'react'
import { AccountChip, useAccountChip } from './AccountChip'
-import { IconBellFilled, IconCircleCheck } from './icons'
+import { IconBellFilled, IconCircleCheck, IconClose } from './icons'
import { NodeIconView } from './NodeIcon'
import { ProjectGlyph } from './ProjectGlyph'
import type { SessionRowVM } from '../lib/sessionList'
@@ -180,7 +180,7 @@ export function SessionRow({
onClose()
}}
>
- ×
+ <IconClose />
</button>
</div>
{(row.projectName || row.cwd || row.sshHost || stateAgeLabel) && (
diff --git a/src/renderer/components/SessionsSidebar.tsx b/src/renderer/components/SessionsSidebar.tsx
index 18f48d729..722573f77 100644
--- a/src/renderer/components/SessionsSidebar.tsx
+++ b/src/renderer/components/SessionsSidebar.tsx
@@ -21,7 +21,7 @@ import { sidebarEmptyState, sidebarFilterKeyAction } from '../lib/sidebarFilter'
import { SessionRow } from './SessionRow'
import { ProjectGlyph } from './ProjectGlyph'
import { ClosedHistorySection } from './ClosedHistorySection'
-import { IconBellFilled, IconCircleCheck, IconPin } from './icons'
+import { IconBellFilled, IconCircleCheck, IconClose, IconPin } from './icons'
import { useProjects } from '../state/projects'
import { useSettings } from '../state/settings'
import { useAgentStatus } from '../state/agentStatus'
@@ -496,7 +496,7 @@ export function SessionsSidebar(props: SessionsSidebarProps): JSX.Element | null
<IconPin />
</button>
<button title="Close" onClick={props.onClose}>
- ×
+ <IconClose />
</button>
</div>
</div>
diff --git a/src/renderer/components/ShortcutCaptureBanner.test.tsx b/src/renderer/components/ShortcutCaptureBanner.test.tsx
index 649f54d18..67a33acad 100644
--- a/src/renderer/components/ShortcutCaptureBanner.test.tsx
+++ b/src/renderer/components/ShortcutCaptureBanner.test.tsx
@@ -68,6 +68,9 @@ const body = (): string | undefined =>
host.querySelector<HTMLElement>('.announce-banner__body')?.textContent ?? undefined
const btn = (label: string): HTMLButtonElement =>
[...host.querySelectorAll('button')].find((b) => b.textContent === label) as HTMLButtonElement
+/** The dismiss button carries an icon, not a label, so it is addressed by its title. */
+const btnByTitle = (title: string): HTMLButtonElement =>
+ host.querySelector(`button[title="${title}"]`) as HTMLButtonElement
const click = (el: HTMLElement): void => {
act(() => el.dispatchEvent(new MouseEvent('click', { bubbles: true })))
}
@@ -153,10 +156,10 @@ describe('ShortcutCaptureBanner', () => {
expect(banner()).toBeNull()
})
- it('the ✕ dismisses without opening Settings', () => {
+ it('the dismiss button dismisses without opening Settings', () => {
render()
capture('app.commandPalette')
- click(btn('✕'))
+ click(btnByTitle('Dismiss'))
expect(banner()).toBeNull()
expect(onOpenShortcuts).not.toHaveBeenCalled()
})
diff --git a/src/renderer/components/ShortcutCaptureBanner.tsx b/src/renderer/components/ShortcutCaptureBanner.tsx
index bc89a904c..c9b66d239 100644
--- a/src/renderer/components/ShortcutCaptureBanner.tsx
+++ b/src/renderer/components/ShortcutCaptureBanner.tsx
@@ -1,4 +1,5 @@
import { useEffect, useState } from 'react'
+import { IconClose } from './icons'
import type { CommandId } from '@shared/keybindings'
import { shortcutCaptureCopy } from './shortcutCaptureCopy'
@@ -65,7 +66,7 @@ export function ShortcutCaptureBanner({
Open Shortcuts
</button>
<button className="announce-banner__close" title="Dismiss" onClick={() => setCurrent(null)}>
- ✕
+ <IconClose />
</button>
</div>
)
diff --git a/src/renderer/components/SourceControlPanel.tsx b/src/renderer/components/SourceControlPanel.tsx
index a0d925c62..8bc013ef0 100644
--- a/src/renderer/components/SourceControlPanel.tsx
+++ b/src/renderer/components/SourceControlPanel.tsx
@@ -1,4 +1,5 @@
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
+import { IconClose, IconMore, IconSparkle, IconUndo } from './icons'
import { createPortal } from 'react-dom'
import type { FsApi, GitFileChange, GitResult, GitStatus } from '@shared/types'
import { gitignoreAdd } from '@shared/gitignore'
@@ -305,7 +306,7 @@ export function SourceControlPanel({
<span className="scm-row-actions">
{!staged && (
<button className="scm-iconbtn" title="Discard changes" onClick={() => discard(f)}>
- ↩
+ <IconUndo />
</button>
)}
<button
@@ -420,7 +421,7 @@ export function SourceControlPanel({
<div className="drawer__head">
<h2>Source Control</h2>
<button className="drawer__close" onClick={onClose}>
- ×
+ <IconClose />
</button>
</div>
@@ -480,7 +481,7 @@ export function SourceControlPanel({
setMoreMenu({ x: r.right - 200, y: r.bottom + 4 })
}}
>
- ⋯
+ <IconMore />
</button>
</div>
@@ -500,7 +501,7 @@ export function SourceControlPanel({
useScmDraft.getState().clearError(draftKey)
}}
>
- ×
+ <IconClose />
</button>
</div>
)}
@@ -537,7 +538,7 @@ export function SourceControlPanel({
aria-label="Generate commit message"
onClick={generate}
>
- ✦
+ <IconSparkle />
</button>
</div>
<button
diff --git a/src/renderer/components/TmuxBanner.tsx b/src/renderer/components/TmuxBanner.tsx
index f0a3a1499..46dccb793 100644
--- a/src/renderer/components/TmuxBanner.tsx
+++ b/src/renderer/components/TmuxBanner.tsx
@@ -1,4 +1,5 @@
import { useEffect, useRef, useState } from 'react'
+import { IconClose } from './icons'
import type { TmuxStatus } from '@shared/types'
import { localSession } from '../session/localSession'
@@ -111,7 +112,7 @@ export function TmuxBanner({ onInstall }: { onInstall: (command: string) => void
</button>
)}
<button className="announce-banner__close" title="Dismiss" onClick={() => setDismissed(true)}>
- ✕
+ <IconClose />
</button>
</div>
)
diff --git a/src/renderer/components/icons.tsx b/src/renderer/components/icons.tsx
index 3643cfe14..955386cdd 100644
--- a/src/renderer/components/icons.tsx
+++ b/src/renderer/components/icons.tsx
@@ -263,6 +263,15 @@ export const IconExternal = () => (
</svg>
)
+/** Box with an arrow leaving it: hand this off to another app (the system browser). Distinct from
+ * IconExternal above, whose two corner brackets read as expand/fullscreen. */
+export const IconOpenExternal = () => (
+ <svg {...S}>
+ <path d="M18 13v5a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h5" />
+ <path d="M14 4h6v6M20 4l-8 8" />
+ </svg>
+)
+
export const IconAgent = () => (
<svg {...S}>
<path d="M12 3l1.8 4.2L18 9l-4.2 1.8L12 15l-1.8-4.2L6 9l4.2-1.8z" />
@@ -342,21 +351,96 @@ export const IconKanban = () => (
</svg>
)
+/** Four-point sparkle: the "name this with AI" action. Replaces a literal ✦, which sat on a text
+ * baseline among the header's SVGs and could not be centered with them. */
+export const IconSparkle = () => (
+ <svg {...S}>
+ <path d="M12 3l1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9z" />
+ <path d="M18.5 15.5l.7 1.8 1.8.7-1.8.7-.7 1.8-.7-1.8-1.8-.7 1.8-.7z" />
+ </svg>
+)
+
+/** Arrow entering a folder: move this node's session into the worktree bound to its group. */
+export const IconMoveTo = () => (
+ <svg {...S}>
+ <path d="M4 7a2 2 0 0 1 2-2h3.5l1.5 2H18a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z" />
+ <path d="M9 13h6M12.5 10.5l2.5 2.5-2.5 2.5" />
+ </svg>
+)
+
+/** Solid play triangle: run a queued launch now, replay a loop iteration. Filled on purpose, the
+ * way a transport control is drawn; an outlined triangle reads as a shape, not as "go". */
+export const IconPlay = () => (
+ <svg {...S} fill="currentColor" stroke="none">
+ <path d="M8 5.5v13l11-6.5z" />
+ </svg>
+)
+
+export const IconArrowUp = () => (
+ <svg {...S}>
+ <path d="M12 19V5M6 11l6-6 6 6" />
+ </svg>
+)
+
+export const IconArrowDown = () => (
+ <svg {...S}>
+ <path d="M12 5v14M6 13l6 6 6-6" />
+ </svg>
+)
+
+export const IconArrowLeft = () => (
+ <svg {...S}>
+ <path d="M19 12H5M11 6l-6 6 6 6" />
+ </svg>
+)
+
+export const IconArrowRight = () => (
+ <svg {...S}>
+ <path d="M5 12h14M13 6l6 6-6 6" />
+ </svg>
+)
+
+/** Undo curve: discard a file's changes. Same shape as the dock's undo, which is the same idea. */
+export const IconUndo = () => (
+ <svg {...S}>
+ <path d="M9 14L4 9l5-5M4 9h10.5a5.5 5.5 0 0 1 0 11H10" />
+ </svg>
+)
+
+/** Horizontal ellipsis: opens an overflow menu. */
+export const IconMore = () => (
+ <svg {...S} fill="currentColor" stroke="none">
+ <circle cx="5.5" cy="12" r="1.6" />
+ <circle cx="12" cy="12" r="1.6" />
+ <circle cx="18.5" cy="12" r="1.6" />
+ </svg>
+)
+
+/** Bare checkmark. IconCircleCheck is the badged variant and means something else: a completed
+ * thing, not a selected one. */
+export const IconCheck = () => (
+ <svg {...S}>
+ <path d="M5 12.5l4.5 4.5L19 7" />
+ </svg>
+)
+
+/* On the shared 24 viewBox like every icon above, not a 16 one: two viewBoxes in one row cannot be
+ made to match by setting equal pixel sizes, because the shapes fill their boxes differently. */
export const IconChevronDown = () => (
- <svg width="14" height="14" viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth="1.6" strokeLinecap="round" strokeLinejoin="round">
- <path d="M4 6.5L8 10.5l4-4" />
+ <svg {...S}>
+ <path d="M6 9.5l6 6 6-6" />
</svg>
)
export const IconChevronRight = () => (
- <svg width="14" height="14" viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth="1.6" strokeLinecap="round" strokeLinejoin="round">
- <path d="M6.5 4l4 4-4 4" />
+ <svg {...S}>
+ <path d="M9.5 6l6 6-6 6" />
</svg>
)
export const IconClose = () => (
- <svg width="14" height="14" viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth="1.6" strokeLinecap="round">
- <path d="M4 4l8 8M12 4l-8 8" />
+ <svg {...S}>
+ <path d="M6 6l12 12M18 6L6 18" />
</svg>
)
diff --git a/src/renderer/components/kanban/CardMetaBar.tsx b/src/renderer/components/kanban/CardMetaBar.tsx
index 7f1dac7ff..a05521041 100644
--- a/src/renderer/components/kanban/CardMetaBar.tsx
+++ b/src/renderer/components/kanban/CardMetaBar.tsx
@@ -1,4 +1,5 @@
import { useMemo, useState } from 'react'
+import { IconClose } from '../icons'
import type { BoardLogAuthor, KanbanPriority, ProjectKanban } from '@shared/types'
import { cardMeta, labelsForCard, setCardDue, setCardPriority, toggleAssignee } from '../../lib/kanban'
import { LabelChips } from './LabelChips'
@@ -143,7 +144,7 @@ export function CardMetaBar({ nodeId, board, onChange }: CardMetaBarProps) {
title="Clear due date"
onClick={() => onChange(setCardDue(board, nodeId, null))}
>
- ✕
+ <IconClose />
</button>
)}
</div>
diff --git a/src/renderer/components/kanban/CardModal.tsx b/src/renderer/components/kanban/CardModal.tsx
index 1828b8864..7828043b7 100644
--- a/src/renderer/components/kanban/CardModal.tsx
+++ b/src/renderer/components/kanban/CardModal.tsx
@@ -1,7 +1,16 @@
import { useEffect, useRef, useState } from 'react'
import { createPortal } from 'react-dom'
import { isTopDialog, nextDialogId, popDialog, pushDialog } from '../dialog-stack'
-import { IconChat, IconMic, IconSearch, IconSmiley } from '../icons'
+import {
+ IconChat,
+ IconClose,
+ IconExternal,
+ IconMaximize,
+ IconMic,
+ IconRestoreSize,
+ IconSearch,
+ IconSmiley
+} from '../icons'
import { NodeIconView } from '../NodeIcon'
import { nodeIconDialog } from '../NodeIconPicker'
import { applyIconChoice } from '../../lib/nodeIconChoice'
@@ -359,13 +368,13 @@ export function CardModal({ session, columnTitle, board, onChangeBoard, onClose,
aria-pressed={maximized}
onClick={() => setMaximized(!maximized)}
>
- {maximized ? '❐' : '⤢'}
+ {maximized ? <IconRestoreSize /> : <IconMaximize />}
</button>
<button className="kanban-modal__action" title="Open on canvas" onClick={onOpenCanvas}>
- ↗
+ <IconExternal />
</button>
<button className="kanban-modal__action" title="Close" onClick={onClose}>
- ✕
+ <IconClose />
</button>
</div>
<CardMetaBar nodeId={session.id} board={board} onChange={onChangeBoard} />
diff --git a/src/renderer/components/kanban/KanbanColumn.tsx b/src/renderer/components/kanban/KanbanColumn.tsx
index 362abfd1b..a2c9930cb 100644
--- a/src/renderer/components/kanban/KanbanColumn.tsx
+++ b/src/renderer/components/kanban/KanbanColumn.tsx
@@ -1,5 +1,6 @@
import { Fragment, memo, useLayoutEffect, useRef, useState } from 'react'
import { createPortal } from 'react-dom'
+import { IconClose } from '../icons'
import type { KanbanColumn as KanbanColumnT } from '@shared/types'
import { NODE_COLORS } from '../../state/workspace'
import type { KanbanCreateChoice, KanbanCreateOption } from './KanbanView'
@@ -167,7 +168,7 @@ export const KanbanColumn = memo(function KanbanColumn({
title="Delete column (cards return to Ungrouped)"
onClick={() => onDelete?.(column.id)}
>
- ✕
+ <IconClose />
</button>
)}
</div>
diff --git a/src/renderer/components/kanban/LabelPicker.tsx b/src/renderer/components/kanban/LabelPicker.tsx
index cbaf3656e..bcd9e935b 100644
--- a/src/renderer/components/kanban/LabelPicker.tsx
+++ b/src/renderer/components/kanban/LabelPicker.tsx
@@ -1,4 +1,5 @@
import { useMemo, useRef, useState } from 'react'
+import { IconClose, IconMore } from '../icons'
import type { KanbanLabelColor, ProjectKanban } from '@shared/types'
import {
autoLabelColor,
@@ -111,7 +112,7 @@ export function LabelPicker({
<span key={l.id} className="kanban-label-chip" style={{ background: s.bg, color: s.fg }}>
{l.name || 'Label'}
<button className="kanban-label-chip__x" title="Remove" onClick={() => toggle(l.id)}>
- ×
+ <IconClose />
</button>
</span>
)
@@ -147,7 +148,7 @@ export function LabelPicker({
title="Edit label"
onClick={() => setEditing(l.id)}
>
- ⋯
+ <IconMore />
</button>
</div>
)
diff --git a/src/renderer/components/settings/ProjectIconPicker.tsx b/src/renderer/components/settings/ProjectIconPicker.tsx
index 5be19859a..0d9d3551c 100644
--- a/src/renderer/components/settings/ProjectIconPicker.tsx
+++ b/src/renderer/components/settings/ProjectIconPicker.tsx
@@ -259,7 +259,7 @@ export function ProjectIconPicker({
<div className="flex flex-col gap-2">
<button
type="button"
- className="flex w-full items-center justify-center gap-2 rounded-lg bg-[color:var(--accent)] px-3 py-2 text-[13px] font-medium text-white transition-opacity hover:opacity-90"
+ className="flex w-full items-center justify-center gap-2 rounded-lg border border-transparent bg-[color:var(--accent)] px-3 py-2 text-[13px] font-medium text-white transition-opacity hover:opacity-90"
onClick={() => void onUseGithubAvatar()}
>
<Github className="size-4" />
diff --git a/src/renderer/components/settings/sections/AccountsSection.tsx b/src/renderer/components/settings/sections/AccountsSection.tsx
index b55853171..29f022892 100644
--- a/src/renderer/components/settings/sections/AccountsSection.tsx
+++ b/src/renderer/components/settings/sections/AccountsSection.tsx
@@ -1,4 +1,5 @@
import { useEffect, useState } from 'react'
+import { IconClose } from '../../icons'
import type { ClaudeAccount } from '@shared/types'
import type { CodexAccount } from '@shared/codex-account'
import { E_UNSUPPORTED } from '@shared/rpc'
@@ -473,7 +474,7 @@ export function AccountsSection({ isActive }: { isActive: boolean }): React.JSX.
aria-label="Remove Codex account"
onClick={() => setPendingRemoveCodex(account)}
>
- ×
+ <IconClose />
</Button>
</div>
)
@@ -780,7 +781,7 @@ export function AccountsSection({ isActive }: { isActive: boolean }): React.JSX.
aria-label={account.configDir ? 'Unlink account' : 'Remove account'}
onClick={() => setPendingRemove(account)}
>
- ×
+ <IconClose />
</Button>
</div>
</div>
diff --git a/src/renderer/components/settings/sections/ShortcutsSection.tsx b/src/renderer/components/settings/sections/ShortcutsSection.tsx
index a06316079..57f27f3c2 100644
--- a/src/renderer/components/settings/sections/ShortcutsSection.tsx
+++ b/src/renderer/components/settings/sections/ShortcutsSection.tsx
@@ -34,6 +34,7 @@
* `speech.dictation` into the legacy `settings.speech.shortcut` field for one release).
*/
import { useMemo, useState } from 'react'
+import { IconClose } from '../../icons'
import {
bindingIdentity,
COMMANDS_BY_ID,
@@ -321,7 +322,7 @@ function Chips({
onClick={() => onRemove(i)}
className="cursor-pointer border-0 bg-transparent px-0.5 text-[12px] leading-none text-muted opacity-0 group-hover/row:opacity-60 hover:!opacity-100 focus-visible:opacity-100"
>
- ×
+ <IconClose />
</button>
) : null}
</span>
diff --git a/src/renderer/nodes/BrowserNode.tsx b/src/renderer/nodes/BrowserNode.tsx
index 42adbd3f8..1ccb6aeb6 100644
--- a/src/renderer/nodes/BrowserNode.tsx
+++ b/src/renderer/nodes/BrowserNode.tsx
@@ -1,4 +1,5 @@
import { Handle, NodeResizer, Position, useReactFlow, type NodeProps } from '@xyflow/react'
+import { Tooltip } from '../components/Tooltip'
import { IconClose } from '../components/icons'
import { NODE_MIN_SIZES } from '../lib/nodeSizing'
import type { CanvasNode } from '../state/workspace'
@@ -50,9 +51,11 @@ export default function BrowserNode({ id, data, selected }: NodeProps<CanvasNode
drives a lease, in every case today). */}
<BrowserDrivingIndicator nodeId={id} />
<span className="term-node__spacer" />
- <button className="term-node__close" title="Close" onClick={() => deleteElements({ nodes: [{ id }] })}>
- <IconClose />
- </button>
+ <Tooltip label="Close">
+ <button className="term-node__close" aria-label="Close" onClick={() => deleteElements({ nodes: [{ id }] })}>
+ <IconClose />
+ </button>
+ </Tooltip>
</div>
<div className="editor-node__body">
diff --git a/src/renderer/nodes/BrowserSurface.tsx b/src/renderer/nodes/BrowserSurface.tsx
index 89c112852..44a46ebae 100644
--- a/src/renderer/nodes/BrowserSurface.tsx
+++ b/src/renderer/nodes/BrowserSurface.tsx
@@ -1,4 +1,5 @@
import { useEffect, useRef, useState } from 'react'
+import { IconArrowLeft, IconArrowRight } from '../components/icons'
import { searchOrUrl } from './browserUrl'
import { BrowserStartPage } from './BrowserStartPage'
import { useBrowserHistory } from '../state/browserHistory'
@@ -270,10 +271,10 @@ export function BrowserSurface({
<div className="browser-surface" ref={rootRef}>
<div className="browser-node__toolbar nodrag">
<button className="browser-node__btn" disabled={!canBack} onClick={() => ref.current?.goBack()} title="Back">
- ◀
+ <IconArrowLeft />
</button>
<button className="browser-node__btn" disabled={!canFwd} onClick={() => ref.current?.goForward()} title="Forward">
- ▶
+ <IconArrowRight />
</button>
<button
className="browser-node__btn"
diff --git a/src/renderer/nodes/DiffNode.tsx b/src/renderer/nodes/DiffNode.tsx
index 2765c8e51..381e41026 100644
--- a/src/renderer/nodes/DiffNode.tsx
+++ b/src/renderer/nodes/DiffNode.tsx
@@ -1,4 +1,5 @@
import { useEffect, useRef, useState } from 'react'
+import { Tooltip } from '../components/Tooltip'
import { IconClose } from '../components/icons'
import { NodeResizer, useReactFlow, type NodeProps } from '@xyflow/react'
import { NODE_MIN_SIZES } from '../lib/nodeSizing'
@@ -147,13 +148,11 @@ export function DiffNode({ id, data, selected }: NodeProps<CanvasNode>) {
</span>
<span className="term-node__spacer" />
<MaximizeButton id={id} maximized={!!data.premaxRect} />
- <button
- className="term-node__close"
- title="Close"
- onClick={() => deleteElements({ nodes: [{ id }] })}
- >
- <IconClose />
- </button>
+ <Tooltip label="Close">
+ <button className="term-node__close" aria-label="Close" onClick={() => deleteElements({ nodes: [{ id }] })}>
+ <IconClose />
+ </button>
+ </Tooltip>
</div>
{fileMissing ? (
diff --git a/src/renderer/nodes/DinoNode.tsx b/src/renderer/nodes/DinoNode.tsx
index 279b7a8ea..4e948c451 100644
--- a/src/renderer/nodes/DinoNode.tsx
+++ b/src/renderer/nodes/DinoNode.tsx
@@ -1,4 +1,5 @@
import { useEffect, useRef, useState } from 'react'
+import { Tooltip } from '../components/Tooltip'
import { IconClose } from '../components/icons'
import { NodeResizer, useReactFlow, type NodeProps } from '@xyflow/react'
import { NODE_MIN_SIZES } from '../lib/nodeSizing'
@@ -113,13 +114,11 @@ export function DinoNode({ id, data, selected }: NodeProps<CanvasNode>) {
▷ {peer.name} is playing
</span>
)}
- <button
- className="term-node__close"
- title="Close"
- onClick={() => deleteElements({ nodes: [{ id }] })}
- >
- <IconClose />
- </button>
+ <Tooltip label="Close">
+ <button className="term-node__close" aria-label="Close" onClick={() => deleteElements({ nodes: [{ id }] })}>
+ <IconClose />
+ </button>
+ </Tooltip>
</div>
<div ref={hostRef} className="dino-node__body nodrag nowheel" tabIndex={0} />
diff --git a/src/renderer/nodes/EditorNode.tsx b/src/renderer/nodes/EditorNode.tsx
index 26abe4449..aebce78dd 100644
--- a/src/renderer/nodes/EditorNode.tsx
+++ b/src/renderer/nodes/EditorNode.tsx
@@ -1,4 +1,5 @@
import { useEffect, useRef, useState } from 'react'
+import { Tooltip } from '../components/Tooltip'
import { IconClose } from '../components/icons'
import { Handle, NodeResizer, Position, useReactFlow, type NodeProps } from '@xyflow/react'
import { NODE_MIN_SIZES } from '../lib/nodeSizing'
@@ -282,31 +283,32 @@ export function EditorNode({ id, data, selected }: NodeProps<CanvasNode>) {
imageDims && <span className="editor-node__dims">{imageDims}</span>
) : isPdf ? null : (
<>
- <button
- className="editor-node__toggle"
- title={commandTooltip('Toggle markdown preview', 'node.toggleMarkdown')}
- onClick={togglePreview}
- >
- {preview ? 'Edit' : 'Preview'}
- </button>
- <button
- className="editor-node__save"
- disabled={!dirty}
- title={hintLabel('Save (⌘S)')}
- onClick={save}
- >
- Save
- </button>
+ <Tooltip label={commandTooltip('Toggle markdown preview', 'node.toggleMarkdown')}>
+ <button
+ className="editor-node__toggle"
+ aria-label="Toggle markdown preview"
+ onClick={togglePreview}
+ >
+ {preview ? 'Edit' : 'Preview'}
+ </button>
+ </Tooltip>
+ <Tooltip label={hintLabel('Save (⌘S)')}>
+ <button className="editor-node__save" disabled={!dirty} onClick={save}>
+ Save
+ </button>
+ </Tooltip>
</>
)}
<MaximizeButton id={id} maximized={!!data.premaxRect} />
- <button
- className="term-node__close"
- title="Close"
- onClick={() => deleteElements({ nodes: [{ id }] })}
- >
- <IconClose />
- </button>
+ <Tooltip label="Close">
+ <button
+ className="term-node__close"
+ aria-label="Close"
+ onClick={() => deleteElements({ nodes: [{ id }] })}
+ >
+ <IconClose />
+ </button>
+ </Tooltip>
</div>
<div className="editor-node__body">
diff --git a/src/renderer/nodes/LoopNode.tsx b/src/renderer/nodes/LoopNode.tsx
index f7fba314c..8f96e20fb 100644
--- a/src/renderer/nodes/LoopNode.tsx
+++ b/src/renderer/nodes/LoopNode.tsx
@@ -1,5 +1,5 @@
import { useEffect, useRef } from 'react'
-import { IconChevronDown, IconChevronRight, IconClose } from '../components/icons'
+import { IconChevronDown, IconChevronRight, IconClose, IconPlay } from '../components/icons'
import { Handle, NodeResizer, Position, type NodeProps } from '@xyflow/react'
import { NODE_MIN_SIZES } from '../lib/nodeSizing'
import type { CanvasNode } from '../state/workspace'
@@ -73,7 +73,7 @@ export function LoopNode({ id, data, selected }: NodeProps<CanvasNode>) {
{schedule && <span className="loop-node__sched">{schedule}</span>}
{task && (
<button className="loop-node__play" title="Run now (manual trigger)" onClick={trigger}>
- ▶
+ <IconPlay />
</button>
)}
<button
diff --git a/src/renderer/nodes/StickyNode.tsx b/src/renderer/nodes/StickyNode.tsx
index 01cf3c7e1..b29cd0efa 100644
--- a/src/renderer/nodes/StickyNode.tsx
+++ b/src/renderer/nodes/StickyNode.tsx
@@ -1,4 +1,5 @@
import { useEffect, useState } from 'react'
+import { Tooltip } from '../components/Tooltip'
import { IconChevronDown, IconChevronRight, IconClose } from '../components/icons'
import { Handle, NodeResizer, Position, useReactFlow, type NodeProps } from '@xyflow/react'
import { NODE_MIN_SIZES } from '../lib/nodeSizing'
@@ -89,15 +90,23 @@ export function StickyNode({ id, data, selected }: NodeProps<CanvasNode>) {
/>
<div className="sticky-node__header" style={{ background: `${data.color}33` }}>
- <button className="term-node__collapse" title={collapsed ? 'Expand' : 'Collapse'} onClick={toggleCollapse}>
- {collapsed ? <IconChevronRight /> : <IconChevronDown />}
- </button>
- <button
- className="term-node__color"
- style={{ background: data.color }}
- title="Color"
- onClick={() => setShowColors((v) => !v)}
- />
+ <Tooltip label={collapsed ? 'Expand' : 'Collapse'}>
+ <button
+ className="term-node__collapse"
+ aria-label={collapsed ? 'Expand' : 'Collapse'}
+ onClick={toggleCollapse}
+ >
+ {collapsed ? <IconChevronRight /> : <IconChevronDown />}
+ </button>
+ </Tooltip>
+ <Tooltip label="Color">
+ <button
+ className="term-node__color"
+ style={{ background: data.color }}
+ aria-label="Color"
+ onClick={() => setShowColors((v) => !v)}
+ />
+ </Tooltip>
{showColors && (
<div className="color-popover">
{NODE_COLORS.map((c) => (
@@ -150,13 +159,15 @@ export function StickyNode({ id, data, selected }: NodeProps<CanvasNode>) {
up by. That grab area is what the permanent full-width input used to swallow. Absent
while editing, since the input takes the `flex: 1` role itself. */}
{!editingTitle && <span className="term-node__spacer" />}
- <button
- className="term-node__close"
- title="Close"
- onClick={() => deleteElements({ nodes: [{ id }] })}
- >
- <IconClose />
- </button>
+ <Tooltip label="Close">
+ <button
+ className="term-node__close"
+ aria-label="Close"
+ onClick={() => deleteElements({ nodes: [{ id }] })}
+ >
+ <IconClose />
+ </button>
+ </Tooltip>
</div>
{editingText ? (
diff --git a/src/renderer/nodes/TerminalNode.tsx b/src/renderer/nodes/TerminalNode.tsx
index 3f29ef84c..91605c5a4 100644
--- a/src/renderer/nodes/TerminalNode.tsx
+++ b/src/renderer/nodes/TerminalNode.tsx
@@ -135,18 +135,7 @@ import {
import { shouldAutoWake, shouldColdResume } from '../terminal/hibernation-policy'
import { WakeInputBuffer } from '../terminal/wake-input-buffer'
import { FindBar } from '../components/FindBar'
-import {
- IconSearch,
- IconChat,
- IconMic,
- IconReload,
- IconEye,
- IconEyeOff,
- IconGrid,
- IconChevronDown,
- IconChevronRight,
- IconClose
-} from '../components/icons'
+import { IconChat, IconChevronDown, IconChevronRight, IconClose, IconEye, IconEyeOff, IconGrid, IconMic, IconMoveTo, IconPlay, IconReload, IconSearch, IconSparkle } from '../components/icons'
import { NodeLabels } from '../components/kanban/NodeLabels'
import { Tooltip } from '../components/Tooltip'
import { useTerminalSearch } from '../terminal/useTerminalSearch'
@@ -4864,15 +4853,23 @@ export function TerminalNode({
/>
<div className="term-node__header">
- <button className="term-node__collapse" title={collapsed ? 'Expand' : 'Collapse'} onClick={toggleCollapse}>
- {collapsed ? <IconChevronRight /> : <IconChevronDown />}
- </button>
- <button
- className="term-node__color"
- style={{ background: data.color }}
- title="Color"
- onClick={() => setShowColors((v) => !v)}
- />
+ <Tooltip label={collapsed ? 'Expand' : 'Collapse'}>
+ <button
+ className="term-node__collapse"
+ aria-label={collapsed ? 'Expand' : 'Collapse'}
+ onClick={toggleCollapse}
+ >
+ {collapsed ? <IconChevronRight /> : <IconChevronDown />}
+ </button>
+ </Tooltip>
+ <Tooltip label="Color">
+ <button
+ className="term-node__color"
+ style={{ background: data.color }}
+ aria-label="Color"
+ onClick={() => setShowColors((v) => !v)}
+ />
+ </Tooltip>
{showColors && (
<div className="color-popover">
{NODE_COLORS.map((c) => (
@@ -5089,7 +5086,7 @@ export function TerminalNode({
})
}}
>
- ▶
+ <IconPlay />
</button>
</span>
)}
@@ -5166,7 +5163,7 @@ export function TerminalNode({
className="term-node__move-worktree nodrag"
onClick={() => moveIntoWorktreeHandler?.(id)}
>
- ↪
+ <IconMoveTo />
</button>
</Tooltip>
)}
@@ -5221,7 +5218,7 @@ export function TerminalNode({
{!isHidden('ai-name', hiddenHeaderButtons) && (
<Tooltip label="Name with AI (from terminal output)">
<button className="term-node__ai nodrag" disabled={naming} onClick={nameWithAi}>
- {naming ? '…' : '✦'}
+ {naming ? <span className="ui-spinner" /> : <IconSparkle />}
</button>
</Tooltip>
)}
@@ -5240,7 +5237,7 @@ export function TerminalNode({
<Tooltip label={hideFanout ? 'Show cards & connections' : 'Hide cards & connections'}>
<button
className="term-node__hide-fanout nodrag"
- title={hideFanout ? 'Show cards & connections' : 'Hide cards & connections'}
+ aria-label={hideFanout ? 'Show cards & connections' : 'Hide cards & connections'}
aria-pressed={hideFanout}
onClick={(e) => {
e.stopPropagation()
@@ -5258,7 +5255,7 @@ export function TerminalNode({
<Tooltip label="Tidy subagent cards into a grid">
<button
className="term-node__tidy-fanout nodrag"
- title="Tidy subagent cards into a grid"
+ aria-label="Tidy subagent cards into a grid"
onClick={(e) => {
e.stopPropagation()
useAgentNodes.getState().tidyFanout(id)
@@ -5271,16 +5268,18 @@ export function TerminalNode({
{!collapsed && !isHidden('maximize', hiddenHeaderButtons) && (
<MaximizeButton id={id} maximized={!!data.premaxRect} />
)}
- <button
- className="term-node__close"
- title="Close (ends the session)"
- onClick={() => {
- transport.destroy(id)
- deleteElements({ nodes: [{ id }] })
- }}
- >
- <IconClose />
- </button>
+ <Tooltip label="Close (ends the session)">
+ <button
+ className="term-node__close"
+ aria-label="Close"
+ onClick={() => {
+ transport.destroy(id)
+ deleteElements({ nodes: [{ id }] })
+ }}
+ >
+ <IconClose />
+ </button>
+ </Tooltip>
</div>
{searchOpen && !collapsed && (
diff --git a/src/renderer/nodes/VideoNode.tsx b/src/renderer/nodes/VideoNode.tsx
index 222c66d4b..73b2496cf 100644
--- a/src/renderer/nodes/VideoNode.tsx
+++ b/src/renderer/nodes/VideoNode.tsx
@@ -1,4 +1,5 @@
import { useEffect, useState } from 'react'
+import { Tooltip } from '../components/Tooltip'
import { IconClose } from '../components/icons'
import { Handle, NodeResizer, Position, useReactFlow, type NodeProps } from '@xyflow/react'
import { NODE_MIN_SIZES } from '../lib/nodeSizing'
@@ -86,13 +87,11 @@ export default function VideoNode({ id, data, selected }: NodeProps<CanvasNode>)
{fileName}
</span>
<span className="term-node__spacer" />
- <button
- className="term-node__close"
- title="Close"
- onClick={() => deleteElements({ nodes: [{ id }] })}
- >
- <IconClose />
- </button>
+ <Tooltip label="Close">
+ <button className="term-node__close" aria-label="Close" onClick={() => deleteElements({ nodes: [{ id }] })}>
+ <IconClose />
+ </button>
+ </Tooltip>
</div>
<div className="editor-node__body">
diff --git a/src/renderer/nodes/WebNode.tsx b/src/renderer/nodes/WebNode.tsx
index 4889dbfb5..6714b0b25 100644
--- a/src/renderer/nodes/WebNode.tsx
+++ b/src/renderer/nodes/WebNode.tsx
@@ -1,5 +1,6 @@
import { useEffect, useRef, useState } from 'react'
-import { IconClose } from '../components/icons'
+import { Tooltip } from '../components/Tooltip'
+import { IconClose, IconOpenExternal } from '../components/icons'
import { Handle, NodeResizer, Position, useReactFlow, type NodeProps } from '@xyflow/react'
import { NODE_MIN_SIZES } from '../lib/nodeSizing'
import type { CanvasNode } from '../state/workspace'
@@ -192,24 +193,28 @@ export default function WebNode({ id, data, selected }: NodeProps<CanvasNode>) {
</button>
)}
{url && (
+ <Tooltip label="Open in browser">
+ <button
+ className="term-node__external"
+ aria-label="Open in browser"
+ onClick={() => {
+ const safe = httpUrl(url)
+ if (safe) window.nodeTerminal.shell.openExternal(safe)
+ }}
+ >
+ <IconOpenExternal />
+ </button>
+ </Tooltip>
+ )}
+ <Tooltip label="Close">
<button
className="term-node__close"
- title="Open in browser"
- onClick={() => {
- const safe = httpUrl(url)
- if (safe) window.nodeTerminal.shell.openExternal(safe)
- }}
+ aria-label="Close"
+ onClick={() => deleteElements({ nodes: [{ id }] })}
>
- ↗
+ <IconClose />
</button>
- )}
- <button
- className="term-node__close"
- title="Close"
- onClick={() => deleteElements({ nodes: [{ id }] })}
- >
- <IconClose />
- </button>
+ </Tooltip>
</div>
<div className="editor-node__body">
diff --git a/src/renderer/styles.css b/src/renderer/styles.css
index cc16d94b9..c15a38e9e 100644
--- a/src/renderer/styles.css
+++ b/src/renderer/styles.css
@@ -619,11 +619,6 @@ body,
margin: 0 4px;
}
-.dock-zoom-btn {
- width: 30px;
- height: 30px;
-}
-
.dock-zoom-wrap {
position: relative;
display: inline-flex;
@@ -1360,21 +1355,7 @@ body,
flex-shrink: 0;
}
-/* Maximize toggle (issue #399): a regular right-group header icon button, next to the close ×.
- Same recipe as .term-node__refresh — the toggle is ordinary chrome, not a traffic light. */
-.term-node__maximize {
- background: transparent;
- border: none;
- color: var(--muted);
- cursor: pointer;
- line-height: 1;
- border-radius: 4px;
-}
-.term-node__maximize:hover {
- background: rgba(10, 132, 255, 0.18);
- color: var(--accent-text);
-}
.term-node__title {
flex: 1;
@@ -1843,107 +1824,51 @@ body,
transform: translate(-50%, -100%);
}
-.term-node__ai {
- background: transparent;
- border: none;
- color: var(--muted);
- cursor: pointer;
- font-size: 13px;
- line-height: 1;
- border-radius: 4px;
-}
-
-.term-node__ai:hover:not(:disabled) {
- background: rgba(10, 132, 255, 0.18);
- color: var(--accent-text);
-}
-
-.term-node__ai:disabled {
- opacity: 0.6;
- cursor: default;
-}
-
-.term-node__move-worktree {
- background: transparent;
- border: none;
- color: var(--muted);
- cursor: pointer;
- font-size: 13px;
- line-height: 1;
- border-radius: 4px;
-}
-
-.term-node__move-worktree:hover {
- background: rgba(10, 132, 255, 0.18);
- color: var(--accent-text);
-}
-
-.term-node__search {
- background: transparent;
- border: none;
- color: var(--muted);
- cursor: pointer;
- line-height: 1;
- border-radius: 4px;
-}
-
-.term-node__search:hover {
- background: rgba(10, 132, 255, 0.18);
- color: var(--accent-text);
-}
-
-.term-node__refresh {
- background: transparent;
- border: none;
- color: var(--muted);
- cursor: pointer;
- line-height: 1;
- border-radius: 4px;
-}
-
-.term-node__refresh:hover {
- background: rgba(10, 132, 255, 0.18);
- color: var(--accent-text);
-}
-.term-node__mic {
- background: transparent;
- border: none;
- color: var(--muted);
- cursor: pointer;
- line-height: 1;
- border-radius: 4px;
-}
-.term-node__mic:hover {
- background: rgba(10, 132, 255, 0.18);
- color: var(--accent-text);
+/* Icon sizing for the boxes that are smaller than the shared 16px glyph. The icon set is one
+ family on one viewBox (see icons.tsx); where a button is tight, the BUTTON scales it down
+ rather than the icon carrying a second size of its own. */
+.tab__caret svg,
+.sessmem-row__kill svg,
+.welcome__recent-del svg {
+ width: 14px;
+ height: 14px;
}
-.term-node__chat {
- background: transparent;
- border: none;
- color: var(--muted);
- cursor: pointer;
- line-height: 1;
- border-radius: 4px;
+.loop-node__expand svg,
+.subagent-node__expand svg,
+.ex-dls__dismiss svg,
+.term-node__stalecwd-dismiss svg,
+.node-tag button svg {
+ width: 12px;
+ height: 12px;
}
-.term-node__chat:hover {
- background: rgba(10, 132, 255, 0.18);
- color: var(--accent-text);
+/* Boxes smaller than the shared 16px glyph, scaled by the BUTTON (see icons.tsx: one family,
+ one viewBox). */
+.scm-iconbtn svg,
+.ss-row__close svg,
+.account-identity-check svg,
+.kanban-modal__action svg {
+ width: 13px;
+ height: 13px;
}
-/* Every icon-only button in the terminal header shares ONE box: a 22px square with the icon
- centered on both axes. They used to differ per button (padding 2px 4/5/6px on a text baseline),
- which is what made the row read as misaligned. Buttons carrying TEXT (approve, queued-run, the
- status pills, the title) deliberately keep their own shape. */
+/* ---- Node header actions ----
+ ONE recipe for every icon-only button in a node header (terminal, editor, diff, video, web,
+ browser, sticky, dino). Each of these used to carry its own copy of the same six declarations
+ plus a hand-typed hover colour; the copies had already drifted (collapse hovered grey where its
+ neighbours hovered blue, and the close button's red was not the --danger hue).
+ Buttons carrying TEXT (approve, queued-run, Save/Preview, the status pills, the title) keep
+ their own shape: a word needs room a 22px square does not have. */
.term-node__collapse,
.term-node__ai,
.term-node__chat,
.term-node__mic,
.term-node__search,
.term-node__refresh,
+.term-node__external,
.term-node__maximize,
.term-node__close,
.term-node__move-worktree,
@@ -1952,32 +1877,60 @@ body,
display: inline-flex;
align-items: center;
justify-content: center;
+ flex-shrink: 0;
width: 22px;
height: 22px;
padding: 0;
- flex-shrink: 0;
-}
-
-.term-node__hide-fanout,
-.term-node__tidy-fanout {
background: transparent;
border: none;
+ border-radius: 4px;
color: var(--muted);
- cursor: pointer;
line-height: 1;
- padding: 2px 5px;
- border-radius: 4px;
- flex-shrink: 0;
- display: inline-flex;
- align-items: center;
+ cursor: pointer;
}
+/* A neutral wash, not the accent: a header full of blue-on-hover buttons competes with the
+ status badges and the project colour, which are the things in that row that carry meaning.
+ Only the destructive action below answers in colour. */
+.term-node__collapse:hover,
+.term-node__ai:hover:not(:disabled),
+.term-node__chat:hover,
+.term-node__mic:hover,
+.term-node__search:hover,
+.term-node__refresh:hover,
+.term-node__external:hover,
+.term-node__maximize:hover,
+.term-node__move-worktree:hover,
.term-node__hide-fanout:hover,
.term-node__tidy-fanout:hover {
- background: rgba(10, 132, 255, 0.18);
- color: var(--accent-text);
+ background: rgba(var(--tint-rgb), 0.1);
+ color: var(--text);
}
+/* Closing a node ends its session, so it is the one header action that answers in --danger. */
+.term-node__close:hover {
+ background: color-mix(in srgb, var(--danger) 20%, transparent);
+ color: var(--danger);
+}
+
+.term-node__ai:disabled {
+ opacity: 0.6;
+ cursor: default;
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
.term-node__hide-fanout[aria-pressed='true'] {
color: var(--accent-text);
}
@@ -2037,8 +1990,8 @@ body,
}
.term-node__find-btn:hover:not(:disabled) {
- background: rgba(10, 132, 255, 0.18);
- color: var(--accent-text);
+ background: rgba(var(--tint-rgb), 0.1);
+ color: var(--text);
}
.term-node__find-btn:disabled {
@@ -2078,19 +2031,7 @@ body,
color: var(--accent-text);
}
-.term-node__close {
- background: transparent;
- border: none;
- color: var(--muted);
- cursor: pointer;
- line-height: 1;
- border-radius: 4px;
-}
-.term-node__close:hover {
- background: rgba(247, 118, 142, 0.2);
- color: var(--danger);
-}
.term-node__body {
position: relative;
@@ -2750,19 +2691,7 @@ body,
display: none;
}
-.term-node__collapse {
- background: transparent;
- border: none;
- color: var(--muted);
- cursor: pointer;
- line-height: 1;
- border-radius: 4px;
-}
-.term-node__collapse:hover {
- background: rgba(var(--tint-rgb), 0.08);
- color: var(--text);
-}
/* ---- Node tags ---- */
.node-tags {
@@ -7487,7 +7416,14 @@ button.group-node__setup:disabled {
.ss-row:hover .ss-row__ai { opacity: 0.6; }
.ss-row__ai:hover { opacity: 1 !important; color: var(--accent); }
.ss-row__ai:disabled { opacity: 0.6; cursor: default; color: var(--accent); }
-.ss-row__close { opacity: 0; border: none; background: transparent; color: var(--text); cursor: pointer; font-size: 14px; line-height: 1; padding: 0 2px; flex: 0 0 auto; }
+.ss-row__close { opacity: 0; border: none; background: transparent; color: var(--text); cursor: pointer; font-size: 14px; line-height: 1; padding: 0 2px; flex: 0 0 auto;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ width: 20px;
+ height: 20px;
+ padding: 0;
+}
.ss-row:hover .ss-row__close { opacity: 0.6; }
.ss-row__close:hover { opacity: 1 !important; color: var(--danger); }
@@ -7909,8 +7845,13 @@ button.group-node__setup:disabled {
border: none;
color: var(--text, #ddd);
cursor: pointer;
- padding: 2px 6px;
border-radius: 4px;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ width: 24px;
+ height: 24px;
+ padding: 0;
}
.browser-node__btn:disabled {
opacity: 0.35;
@@ -9940,12 +9881,16 @@ button.group-node__setup:disabled {
margin-right: auto;
}
.kanban-modal__action {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ width: 26px;
+ height: 26px;
+ padding: 0;
background: rgba(var(--tint-rgb), 0.06);
border: none;
border-radius: 6px;
color: rgba(var(--tint-rgb), 0.7);
- font-size: 13px;
- padding: 4px 10px;
cursor: pointer;
}
.kanban-modal__action:hover {
@@ -10353,9 +10298,13 @@ button.group-node__setup:disabled {
border: none;
color: rgba(var(--tint-rgb), 0.55);
cursor: pointer;
- padding: 4px 8px;
border-radius: 5px;
- font-size: 15px;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ width: 24px;
+ height: 24px;
+ padding: 0;
}
.label-picker__more:hover {
background: rgba(var(--tint-rgb), 0.1);
@@ -12247,9 +12196,14 @@ body.focus-mode .dock:hover {
}
.account-identity-check {
flex: none;
- font-size: 12px;
line-height: 1;
color: var(--accent);
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ width: 16px;
+ height: 16px;
+ padding: 0;
}
/* A managed home that is missing / an account that cannot be operated: the same cluster, warned.
Recolour text + outline with the warn token; no tinted fill (there is no --warn-rgb to build
diff --git a/src/renderer/ui/Button.tsx b/src/renderer/ui/Button.tsx
index 02a217810..f0334973c 100644
--- a/src/renderer/ui/Button.tsx
+++ b/src/renderer/ui/Button.tsx
@@ -12,10 +12,18 @@ export function Button({
<button
type="button"
className={cn(
- 'inline-flex cursor-pointer items-center justify-center rounded-md px-3 py-1.5 text-[13px] font-medium outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50',
- variant === 'primary' && 'bg-accent text-white hover:bg-accent-hover',
- variant === 'ghost' && 'bg-transparent text-muted hover:text-text',
- variant === 'default' && 'border border-border bg-panel-header text-text hover:bg-[rgba(255,255,255,0.06)]',
+ // The base declares the border WIDTH only and every variant names its own colour, because
+ // two border-colour utilities on one element are decided by their order in Tailwind's
+ // output rather than by the order they are listed here. Tailwind's preflight is
+ // deliberately not loaded (see tailwind.css), so a variant that declares no border at all
+ // keeps the browser's own: primary rendered with a light UA ring around the accent fill,
+ // and sat 2px taller than the bordered `default` beside it.
+ 'inline-flex cursor-pointer items-center justify-center rounded-md border px-3 py-1.5 text-[13px] font-medium outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50',
+ variant === 'primary' && 'border-transparent bg-accent text-white hover:bg-accent-hover',
+ variant === 'ghost' && 'border-transparent bg-transparent text-muted hover:text-text',
+ // `bg-fill-weak` rather than a literal white overlay: that token exists so a hover does
+ // not turn into a white smear the moment the surface under it is the light theme.
+ variant === 'default' && 'border-border bg-panel-header text-text hover:bg-fill-weak',
className
)}
{...rest}