an open-source alternative to the dots, bots and muses of the world, run an office of claude code/codex like agents on your laptop, sandboxes or anywhere, uses your existing subscriptions
HTML agent-harnessagent-orchestrationagentsai-agentsautonomous-agentsclaude-codecodexcoding-agentsdesktop-appdeveloper-toolselectrongemini-cliharnessharness-engineeringlocal-firstmemorymulti-agentopencodeorchestrationtypescript
fix(ui): make titlebar settings button a clear gear chip
Chaitanya Girifa2a9fca9129
diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsxindex 008a1c04..dac7e8a6 100644--- a/src/renderer/src/App.tsx+++ b/src/renderer/src/App.tsx@@ -138,19 +138,21 @@ export function App() {v0.1 · {config.autoMode ? 'auto mode on' : 'auto mode off'}</span><button- className="cth-titlebar-nodrag"+ className="cth-titlebar-nodrag cth-settings-btn"onClick={() => setSettingsOpen(true)}title="Settings"aria-label="Settings"style={{marginLeft: 'auto',display: 'inline-flex', alignItems: 'center', justifyContent: 'center',- width: 24, height: 24, padding: 0,- background: 'transparent', border: 'none', cursor: 'pointer',- color: 'var(--cth-ink-700)'+ width: 28, height: 28, padding: 0,+ background: 'var(--cth-paper-100)',+ boxShadow: 'inset 0 0 0 1.5px var(--cth-ink-900)',+ border: 'none', borderRadius: 2, cursor: 'pointer',+ color: 'var(--cth-ink-900)'}}>- <Icon name="gear" />+ <Icon name="gear" size={1} style={{ width: 18, height: 18 }} /></button></div>diff --git a/src/renderer/src/components/Icon.tsx b/src/renderer/src/components/Icon.tsxindex ff809ce4..257b0042 100644--- a/src/renderer/src/components/Icon.tsx+++ b/src/renderer/src/components/Icon.tsx@@ -16,10 +16,11 @@ interface IconDef {const paths: Record<IconName, IconDef> = {// 16x16 each, designed on pixel grid+ // Cog with four teeth (N/S/E/W) + a square hub hole. The hole is a second+ // subpath cut out via fill-rule: evenodd (set on the <path> below).gear: {accentColor: 'var(--cth-ink-300)',- ink: 'M6 1h4v2h1v1h2v1h2v4h-2v1h-1v2h-2v2H6v-2H4v-2H3v-1H1V7h2V6h1V5h2V4h0V1zM7 6v1H6v1H5v1h1v1h1v1h2v-1h1V9h1V8h-1V7h-1V6H7z',- accent:'M7 6h2v1h1v2h-1v1H7V9H6V7h1V6z'+ ink: 'M6 1h4v3h2v2h3v4h-3v2h-2v3h-4v-3h-2v-2h-3v-4h3v-2h2v-3zM6 6h4v4h-4z'},plus: {accentColor: 'var(--cth-mint)',@@ -97,11 +98,12 @@ export function Icon({ name, size = 1, style }: IconProps) {viewBox="0 0 16 16"width={dim}height={dim}+ shapeRendering="crispEdges"style={{ display: 'inline-block', ...style }}aria-hidden>- {def.accent && <path d={def.accent} fill={def.accentColor} />}- <path d={def.ink} fill="var(--cth-ink-900)" />+ {def.accent && <path d={def.accent} fill={def.accentColor} fillRule="evenodd" />}+ <path d={def.ink} fill="var(--cth-ink-900)" fillRule="evenodd" /></svg>);}diff --git a/src/renderer/src/design/global.css b/src/renderer/src/design/global.cssindex df5a44ec..a8197b87 100644--- a/src/renderer/src/design/global.css+++ b/src/renderer/src/design/global.css@@ -69,6 +69,19 @@ canvas, img, svg { image-rendering: pixelated; image-rendering: crisp-edges; }.cth-titlebar-drag { -webkit-app-region: drag; }.cth-titlebar-nodrag { -webkit-app-region: no-drag; }+/* Settings (gear) button in the title bar — a clear bordered chip with a+ neo-brutalist hover (lemon fill + offset shadow) so it reads as a button. */+.cth-settings-btn { transition: background 80ms steps(2), box-shadow 80ms steps(2), transform 80ms steps(2); }+.cth-settings-btn:hover {+ background: var(--cth-lemon) !important;+ box-shadow: inset 0 0 0 1.5px var(--cth-ink-900), 2px 2px 0 0 var(--cth-ink-900) !important;+ transform: translate(-1px, -1px);+}+.cth-settings-btn:active {+ transform: translate(0, 0);+ box-shadow: inset 0 0 0 1.5px var(--cth-ink-900) !important;+}+/* Keyframes — pixel-style: step-based, no easing */@keyframes cth-blink {0%, 49% { opacity: 1; }