Skip to content

Commit 0433623

Browse files
fix(ui): unify tab icon colors, tighten controls spacing, restyle terminal
1 parent fdaf7c9 commit 0433623

3 files changed

Lines changed: 12 additions & 19 deletions

File tree

render.zip

153 KB
Binary file not shown.

render/features/terminal/TerminalPane.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import type { UnlistenFn } from "@tauri-apps/api/event";
1212
import "@xterm/xterm/css/xterm.css";
1313

1414
// ── Theme & constants ─────────────────────────────────────────────────────────
15-
const BG = "#0b0e10";
16-
const BG_ACT = "#0e1214";
15+
const BG = "#111111";
16+
const BG_ACT = "#161616";
1717

1818
const TERM_THEME = {
1919
background: BG, foreground: "#d4d4d4",
@@ -50,7 +50,7 @@ const TERM_CSS = `
5050
.rp-win.rp-active .rp-cwd{color:rgba(255,255,255,.55)}
5151
.rp-chip{font-size:9px;font-family:ui-monospace,monospace;letter-spacing:.05em;
5252
flex-shrink:0;color:rgba(255,255,255,.18);background:rgba(255,255,255,.04);
53-
border:1px solid rgba(255,255,255,.07);border-radius:0;padding:1px 6px;
53+
border:1px solid rgba(255,255,255,.07);border-radius:3px;padding:1px 6px;
5454
transition:all .15s}
5555
.rp-win.rp-active .rp-chip{color:rgba(255,255,255,.4);background:rgba(255,255,255,.07);
5656
border-color:rgba(255,255,255,.12)}
@@ -325,7 +325,7 @@ export function TerminalPane({
325325
>
326326
<span className="rp-cwd">{liveCwd || runboxCwd}</span>
327327
{label && <span className="rp-chip">{label}</span>}
328-
<div style={{ display: "flex", alignItems: "center", gap: 1, marginLeft: 2 }}>
328+
<div style={{ display: "flex", alignItems: "center", gap: 3, marginLeft: 4 }}>
329329
{onMinimize && (
330330
<TBtn title="Minimize pane" onClick={onMinimize}>
331331
<svg width="14" height="14" viewBox="0 0 16 16" fill="none"

render/features/workspace/TabBar.tsx

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -111,27 +111,20 @@ export function TabBar({
111111
userSelect: "none", paddingLeft: 2, lineHeight: "1",
112112
}}>Stackbox</span>
113113

114-
<StripIcon title="Workspace" active={!sidebarCollapsed && !fileTreeOpen} onClick={onSidebarToggle} size={32}>
115-
<svg width="15" height="15" viewBox="0 0 24 24" fill="none"
114+
<StripIcon title="Workspace" active={!sidebarCollapsed && !fileTreeOpen} onClick={onSidebarToggle} size={28}>
115+
<svg width="13" height="13" viewBox="0 0 24 24" fill="none"
116116
strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
117-
{/* outer rect */}
118-
<rect x="3" y="3" width="18" height="18" rx="2"
119-
stroke="rgba(255,255,255,.4)"/>
120-
{/* left panel — filled white when open */}
117+
<rect x="3" y="3" width="18" height="18" rx="2" stroke="currentColor" opacity="0.5"/>
121118
<path d="M3 5a2 2 0 0 1 2-2h4v18H5a2 2 0 0 1-2-2V5z"
122-
fill={sidebarCollapsed ? "rgba(255,255,255,.15)" : "#ffffff"}
123-
stroke="none"/>
124-
{/* divider line */}
125-
<line x1="9" y1="3" x2="9" y2="21"
126-
stroke="rgba(255,255,255,.4)"/>
119+
fill="currentColor" stroke="none"/>
120+
<line x1="9" y1="3" x2="9" y2="21" stroke="currentColor" opacity="0.5"/>
127121
</svg>
128122
</StripIcon>
129123

130-
<StripIcon title="Code" active={!sidebarCollapsed && fileTreeOpen} onClick={onFileTreeToggle} size={32}>
124+
<StripIcon title="Code" active={!sidebarCollapsed && fileTreeOpen} onClick={onFileTreeToggle} size={28}>
131125
<span style={{
132-
fontSize: 13, fontWeight: 700, letterSpacing: "-0.03em",
126+
fontSize: 12, fontWeight: 700, letterSpacing: "-0.03em",
133127
fontFamily: "ui-monospace, 'SF Mono', Menlo, monospace",
134-
opacity: !sidebarCollapsed && fileTreeOpen ? 1 : 0.4,
135128
lineHeight: 1, userSelect: "none",
136129
color: "currentColor",
137130
}}>&lt;/&gt;</span>
@@ -165,7 +158,7 @@ export function TabBar({
165158
<button
166159
onClick={onAddTerminal}
167160
title="New terminal"
168-
style={{ ...tbtn, width: 30, alignSelf: "stretch", borderRadius: 0, fontSize: 18, fontWeight: 300, border: "1px solid transparent" }}
161+
style={{ ...tbtn, width: 26, alignSelf: "stretch", borderRadius: 0, fontSize: 16, fontWeight: 300, border: "1px solid transparent", marginRight: 6 }}
169162
onMouseEnter={e => {
170163
const el = e.currentTarget as HTMLElement;
171164
el.style.color = C.t0; el.style.background = "rgba(255,255,255,.09)";

0 commit comments

Comments
 (0)