Skip to content

Commit 7379903

Browse files
committed
tui: improve modified file visibility and button spacing
- Replace warning yellow with distinct orange color for modified files in git diff indicators - Increase button padding for better visual balance in session header and status popover
1 parent a685e7a commit 7379903

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

packages/app/src/components/file-tree.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ const kindLabel = (kind: Kind) => {
7171
const kindTextColor = (kind: Kind) => {
7272
if (kind === "add") return "color: var(--icon-diff-add-base)"
7373
if (kind === "del") return "color: var(--icon-diff-delete-base)"
74-
return "color: var(--icon-warning-active)"
74+
return "color: var(--icon-diff-modified-base)"
7575
}
7676

7777
const kindDotColor = (kind: Kind) => {
7878
if (kind === "add") return "background-color: var(--icon-diff-add-base)"
7979
if (kind === "del") return "background-color: var(--icon-diff-delete-base)"
80-
return "background-color: var(--icon-warning-active)"
80+
return "background-color: var(--icon-diff-modified-base)"
8181
}
8282

8383
const visibleKind = (node: FileNode, kinds?: ReadonlyMap<string, Kind>, marks?: Set<string>) => {

packages/app/src/components/session/session-header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ export function SessionHeader() {
354354
<div class="flex h-[24px] box-border items-center rounded-md border border-border-weak-base bg-surface-panel overflow-hidden">
355355
<Button
356356
variant="ghost"
357-
class="rounded-none h-full py-0 pr-2 pl-0.5 gap-1.5 border-none shadow-none"
357+
class="rounded-none h-full py-0 pr-3 pl-0.5 gap-1.5 border-none shadow-none"
358358
onClick={copyPath}
359359
aria-label={language.t("session.header.open.copyPath")}
360360
>

packages/app/src/components/status-popover.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export function StatusPopover() {
196196
triggerProps={{
197197
variant: "ghost",
198198
class:
199-
"rounded-md h-[24px] pr-2 pl-0.5 gap-2 border border-border-weak-base bg-surface-panel shadow-none data-[expanded]:bg-surface-raised-base-hover",
199+
"rounded-md h-[24px] pr-3 pl-0.5 gap-2 border border-border-weak-base bg-surface-panel shadow-none data-[expanded]:bg-surface-raised-base-hover",
200200
style: { scale: 1 },
201201
}}
202202
trigger={

packages/ui/src/styles/theme.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@
287287
--icon-diff-add-active: var(--mint-light-12);
288288
--icon-diff-delete-base: var(--ember-light-10);
289289
--icon-diff-delete-hover: var(--ember-light-11);
290-
--icon-diff-modified-base: var(--icon-warning-base);
290+
--icon-diff-modified-base: #ff8c00;
291291
--syntax-comment: var(--text-weak);
292292
--syntax-regexp: var(--text-base);
293293
--syntax-string: #006656;
@@ -545,7 +545,7 @@
545545
--icon-diff-add-active: var(--mint-dark-11);
546546
--icon-diff-delete-base: var(--ember-dark-9);
547547
--icon-diff-delete-hover: var(--ember-dark-10);
548-
--icon-diff-modified-base: var(--icon-warning-base);
548+
--icon-diff-modified-base: #ffba92;
549549
--syntax-comment: var(--text-weak);
550550
--syntax-regexp: var(--text-base);
551551
--syntax-string: #00ceb9;

packages/ui/src/theme/resolve.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ export function resolveThemeVariant(variant: ThemeVariant, isDark: boolean): Res
240240
tokens["icon-diff-add-active"] = diffAdd[isDark ? 10 : 11]
241241
tokens["icon-diff-delete-base"] = diffDelete[isDark ? 8 : 9]
242242
tokens["icon-diff-delete-hover"] = diffDelete[isDark ? 9 : 10]
243-
tokens["icon-diff-modified-base"] = tokens["icon-warning-base"]
243+
tokens["icon-diff-modified-base"] = isDark ? "#ffba92" : "#FF8C00"
244244

245245
tokens["syntax-comment"] = "var(--text-weak)"
246246
tokens["syntax-regexp"] = "var(--text-base)"

0 commit comments

Comments
 (0)