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
This commit is contained in:
@@ -71,13 +71,13 @@ const kindLabel = (kind: Kind) => {
|
|||||||
const kindTextColor = (kind: Kind) => {
|
const kindTextColor = (kind: Kind) => {
|
||||||
if (kind === "add") return "color: var(--icon-diff-add-base)"
|
if (kind === "add") return "color: var(--icon-diff-add-base)"
|
||||||
if (kind === "del") return "color: var(--icon-diff-delete-base)"
|
if (kind === "del") return "color: var(--icon-diff-delete-base)"
|
||||||
return "color: var(--icon-warning-active)"
|
return "color: var(--icon-diff-modified-base)"
|
||||||
}
|
}
|
||||||
|
|
||||||
const kindDotColor = (kind: Kind) => {
|
const kindDotColor = (kind: Kind) => {
|
||||||
if (kind === "add") return "background-color: var(--icon-diff-add-base)"
|
if (kind === "add") return "background-color: var(--icon-diff-add-base)"
|
||||||
if (kind === "del") return "background-color: var(--icon-diff-delete-base)"
|
if (kind === "del") return "background-color: var(--icon-diff-delete-base)"
|
||||||
return "background-color: var(--icon-warning-active)"
|
return "background-color: var(--icon-diff-modified-base)"
|
||||||
}
|
}
|
||||||
|
|
||||||
const visibleKind = (node: FileNode, kinds?: ReadonlyMap<string, Kind>, marks?: Set<string>) => {
|
const visibleKind = (node: FileNode, kinds?: ReadonlyMap<string, Kind>, marks?: Set<string>) => {
|
||||||
|
|||||||
@@ -354,7 +354,7 @@ export function SessionHeader() {
|
|||||||
<div class="flex h-[24px] box-border items-center rounded-md border border-border-weak-base bg-surface-panel overflow-hidden">
|
<div class="flex h-[24px] box-border items-center rounded-md border border-border-weak-base bg-surface-panel overflow-hidden">
|
||||||
<Button
|
<Button
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
class="rounded-none h-full py-0 pr-2 pl-0.5 gap-1.5 border-none shadow-none"
|
class="rounded-none h-full py-0 pr-3 pl-0.5 gap-1.5 border-none shadow-none"
|
||||||
onClick={copyPath}
|
onClick={copyPath}
|
||||||
aria-label={language.t("session.header.open.copyPath")}
|
aria-label={language.t("session.header.open.copyPath")}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -196,7 +196,7 @@ export function StatusPopover() {
|
|||||||
triggerProps={{
|
triggerProps={{
|
||||||
variant: "ghost",
|
variant: "ghost",
|
||||||
class:
|
class:
|
||||||
"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",
|
"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",
|
||||||
style: { scale: 1 },
|
style: { scale: 1 },
|
||||||
}}
|
}}
|
||||||
trigger={
|
trigger={
|
||||||
|
|||||||
@@ -287,7 +287,7 @@
|
|||||||
--icon-diff-add-active: var(--mint-light-12);
|
--icon-diff-add-active: var(--mint-light-12);
|
||||||
--icon-diff-delete-base: var(--ember-light-10);
|
--icon-diff-delete-base: var(--ember-light-10);
|
||||||
--icon-diff-delete-hover: var(--ember-light-11);
|
--icon-diff-delete-hover: var(--ember-light-11);
|
||||||
--icon-diff-modified-base: var(--icon-warning-base);
|
--icon-diff-modified-base: #ff8c00;
|
||||||
--syntax-comment: var(--text-weak);
|
--syntax-comment: var(--text-weak);
|
||||||
--syntax-regexp: var(--text-base);
|
--syntax-regexp: var(--text-base);
|
||||||
--syntax-string: #006656;
|
--syntax-string: #006656;
|
||||||
@@ -545,7 +545,7 @@
|
|||||||
--icon-diff-add-active: var(--mint-dark-11);
|
--icon-diff-add-active: var(--mint-dark-11);
|
||||||
--icon-diff-delete-base: var(--ember-dark-9);
|
--icon-diff-delete-base: var(--ember-dark-9);
|
||||||
--icon-diff-delete-hover: var(--ember-dark-10);
|
--icon-diff-delete-hover: var(--ember-dark-10);
|
||||||
--icon-diff-modified-base: var(--icon-warning-base);
|
--icon-diff-modified-base: #ffba92;
|
||||||
--syntax-comment: var(--text-weak);
|
--syntax-comment: var(--text-weak);
|
||||||
--syntax-regexp: var(--text-base);
|
--syntax-regexp: var(--text-base);
|
||||||
--syntax-string: #00ceb9;
|
--syntax-string: #00ceb9;
|
||||||
|
|||||||
@@ -240,7 +240,7 @@ export function resolveThemeVariant(variant: ThemeVariant, isDark: boolean): Res
|
|||||||
tokens["icon-diff-add-active"] = diffAdd[isDark ? 10 : 11]
|
tokens["icon-diff-add-active"] = diffAdd[isDark ? 10 : 11]
|
||||||
tokens["icon-diff-delete-base"] = diffDelete[isDark ? 8 : 9]
|
tokens["icon-diff-delete-base"] = diffDelete[isDark ? 8 : 9]
|
||||||
tokens["icon-diff-delete-hover"] = diffDelete[isDark ? 9 : 10]
|
tokens["icon-diff-delete-hover"] = diffDelete[isDark ? 9 : 10]
|
||||||
tokens["icon-diff-modified-base"] = tokens["icon-warning-base"]
|
tokens["icon-diff-modified-base"] = isDark ? "#ffba92" : "#FF8C00"
|
||||||
|
|
||||||
tokens["syntax-comment"] = "var(--text-weak)"
|
tokens["syntax-comment"] = "var(--text-weak)"
|
||||||
tokens["syntax-regexp"] = "var(--text-base)"
|
tokens["syntax-regexp"] = "var(--text-base)"
|
||||||
|
|||||||
Reference in New Issue
Block a user