Skip to content

The IDE you know, rebuilt in Rust. IntelliJ IDEA–style keymap, tool windows and search-everywhere in a fast native app: editor, code insight, debugger, Git, terminal, database and HTTP clients for 60+ languages.

fix(ui): keep Git and diff toolbar icons at 16px (#2372)

l0ng-ai0df19ce81e27
diff --git a/src/features/agents/SessionEditor.tsx b/src/features/agents/SessionEditor.tsx
index 2d4f68040..2252157f3 100644
--- a/src/features/agents/SessionEditor.tsx
+++ b/src/features/agents/SessionEditor.tsx
@@ -1253,6 +1253,7 @@ function UserMessage({
<IconButton
size="small"
icon="diff-revert"
+ iconSize={14}
title="Retract Message"
action="agents.retractMessage"
actionArg={{ task: task.id, turn }}
diff --git a/src/features/vcs/DiffEditor.module.css b/src/features/vcs/DiffEditor.module.css
index 859baa65e..8431fc7de 100644
--- a/src/features/vcs/DiffEditor.module.css
+++ b/src/features/vcs/DiffEditor.module.css
@@ -278,10 +278,10 @@
cursor: pointer;
}
.host :global(.cm-diffDivider button.cm-diffArrow-a-to-b) {
- left: 1px;
+ left: 0;
}
.host :global(.cm-diffDivider button.cm-diffArrow-b-to-a) {
- right: 1px;
+ right: 0;
}
/* With one direction there is no pair to keep apart: the arrow sits in the middle of the divider. */
.host :global(.cm-diffDivider-lone button.cm-diffArrow) {
diff --git a/src/features/vcs/DiffEditor.tsx b/src/features/vcs/DiffEditor.tsx
index 4c435181d..39001d3d9 100644
--- a/src/features/vcs/DiffEditor.tsx
+++ b/src/features/vcs/DiffEditor.tsx
@@ -1133,14 +1133,14 @@ export function DiffEditor({
)}
<span className={styles.sep} />
<IconButton
- icon="split"
+ icon="diff-side-by-side"
title="Side-by-side Viewer"
size="small"
pressed={opts.mode === "split"}
onClick={() => setOpts({ mode: "split" })}
/>
<IconButton
- icon="list"
+ icon="diff-unified"
title="Unified Viewer"
size="small"
pressed={opts.mode === "unified"}
diff --git a/src/features/vcs/MergeToolbar.tsx b/src/features/vcs/MergeToolbar.tsx
index 2be80a9b3..7c3f4ee67 100644
--- a/src/features/vcs/MergeToolbar.tsx
+++ b/src/features/vcs/MergeToolbar.tsx
@@ -53,6 +53,7 @@ export function MergeToolbar({ summary }: ToolbarProps) {
/>
<IconButton
icon="diff-revert"
+ iconSize={14}
title="Revert Conflict Resolution"
size="small"
disabled={!summary.revert}
diff --git a/src/features/vcs/diffControls.ts b/src/features/vcs/diffControls.ts
index cc69725b0..b2919f44a 100644
--- a/src/features/vcs/diffControls.ts
+++ b/src/features/vcs/diffControls.ts
@@ -35,7 +35,7 @@ export function arrowButton(dir: "a-to-b" | "b-to-a", run: (chunkIndex: number)
const label = dir === "a-to-b" ? "Apply change to the right (Replace ›››)" : "Apply change to the left (‹‹‹ Replace)";
btn.setAttribute("aria-label", label);
btn.title = label;
- btn.innerHTML = iconMarkup(dir === "a-to-b" ? "chevron-right" : "chevron-left", 12) ?? "";
+ btn.innerHTML = iconMarkup(dir === "a-to-b" ? "diff-arrow-right" : "diff-arrow-left", 14) ?? "";
btn.addEventListener("mousedown", (e) => {
// Handled here rather than by MergeView's own (one-directional) revert handler.
e.preventDefault();
diff --git a/src/ui/Button.tsx b/src/ui/Button.tsx
index b0b787173..73cdd84b7 100644
--- a/src/ui/Button.tsx
+++ b/src/ui/Button.tsx
@@ -45,6 +45,7 @@ export interface IconButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonEle
shortcut?: string;
/** Toggle state (renders `aria-pressed`). */
pressed?: boolean;
+ /** Button dimensions; icons keep their 16px size unless iconSize is set. */
size?: "small" | "normal" | "large";
iconSize?: number;
tone?: "default" | "danger" | "accent";
@@ -75,7 +76,7 @@ export const IconButton = forwardRef<HTMLButtonElement, IconButtonProps>(functio
const label = tx(title) ?? a?.title ?? action ?? icon;
const keys = shortcut ?? (action ? shortcutLabel(action) : undefined);
const busy = useRunningActions((s) => (action ? s.running.has(action) : false));
- const glyphSize = iconSize ?? (size === "small" ? 14 : 16);
+ const glyphSize = iconSize ?? 16;
return (
<button
ref={ref}
diff --git a/src/ui/expui/diff/sideBySide.svg b/src/ui/expui/diff/sideBySide.svg
new file mode 100644
index 000000000..cd201258b
--- /dev/null
+++ b/src/ui/expui/diff/sideBySide.svg
@@ -0,0 +1,6 @@
+<!-- Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <path fill-rule="evenodd" clip-rule="evenodd"
+ d="M8.5 3H12C12.5523 3 13 3.44772 13 4V12C13 12.5523 12.5523 13 12 13H8.5V3ZM7.5 2H8.5H12C13.1046 2 14 2.89543 14 4V12C14 13.1046 13.1046 14 12 14H8.5H7.5H4C2.89543 14 2 13.1046 2 12V4C2 2.89543 2.89543 2 4 2H7.5ZM7.5 13H4C3.44772 13 3 12.5523 3 12V4C3 3.44772 3.44772 3 4 3H7.5V13Z"
+ fill="#6C707E"/>
+</svg>
diff --git a/src/ui/expui/diff/sideBySide_dark.svg b/src/ui/expui/diff/sideBySide_dark.svg
new file mode 100644
index 000000000..9e7c59d7d
--- /dev/null
+++ b/src/ui/expui/diff/sideBySide_dark.svg
@@ -0,0 +1,6 @@
+<!-- Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <path fill-rule="evenodd" clip-rule="evenodd"
+ d="M8.5 3H12C12.5523 3 13 3.44772 13 4V12C13 12.5523 12.5523 13 12 13H8.5V3ZM7.5 2H8.5H12C13.1046 2 14 2.89543 14 4V12C14 13.1046 13.1046 14 12 14H8.5H7.5H4C2.89543 14 2 13.1046 2 12V4C2 2.89543 2.89543 2 4 2H7.5ZM7.5 13H4C3.44772 13 3 12.5523 3 12V4C3 3.44772 3.44772 3 4 3H7.5V13Z"
+ fill="#CED0D6"/>
+</svg>
diff --git a/src/ui/expui/diff/unified.svg b/src/ui/expui/diff/unified.svg
new file mode 100644
index 000000000..dfb307bbe
--- /dev/null
+++ b/src/ui/expui/diff/unified.svg
@@ -0,0 +1,6 @@
+<!-- Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <path
+ d="M12.204 2.011C13.213 2.113 14 2.964 14 4V12L13.989 12.204C13.894 13.146 13.146 13.894 12.204 13.989L12 14H4C2.964 14 2.113 13.213 2.011 12.204L2 12V4C2 2.895 2.895 2 4 2H12L12.204 2.011ZM4 3C3.448 3 3 3.448 3 4V12C3 12.552 3.448 13 4 13H12C12.552 13 13 12.552 13 12V4C13 3.448 12.552 3 12 3H4Z"
+ fill="#6C707E" color-fill-key="icon-default-stroke"/>
+</svg>
\ No newline at end of file
diff --git a/src/ui/expui/diff/unified_dark.svg b/src/ui/expui/diff/unified_dark.svg
new file mode 100644
index 000000000..2cf26fa3e
--- /dev/null
+++ b/src/ui/expui/diff/unified_dark.svg
@@ -0,0 +1,6 @@
+<!-- Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <path
+ d="M12.204 2.011C13.213 2.113 14 2.964 14 4V12L13.989 12.204C13.894 13.146 13.146 13.894 12.204 13.989L12 14H4C2.964 14 2.113 13.213 2.011 12.204L2 12V4C2 2.895 2.895 2 4 2H12L12.204 2.011ZM4 3C3.448 3 3 3.448 3 4V12C3 12.552 3.448 13 4 13H12C12.552 13 13 12.552 13 12V4C13 3.448 12.552 3 12 3H4Z"
+ fill="#CED0D6" color-fill-key="icon-default-stroke"/>
+</svg>
\ No newline at end of file
diff --git a/src/ui/icons.tsx b/src/ui/icons.tsx
index 3d1d95336..f93bf7a9e 100644
--- a/src/ui/icons.tsx
+++ b/src/ui/icons.tsx
@@ -446,6 +446,8 @@ const ICONS = {
diff: "vcs/diff",
revert: "vcs/revert",
// The merge tool's own controls (IntelliJ's AllIcons.Diff)
+ "diff-side-by-side": "diff/sideBySide",
+ "diff-unified": "diff/unified",
"diff-apply-left": "diff/applyNotConflictsLeft",
"diff-apply-all": "diff/applyNotConflicts",
"diff-apply-right": "diff/applyNotConflictsRight",