Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.
Rust acpagent-client-protocolai-agentsai-assistantclaudeclaude-codecodexcoding-agentscursorgeminigemini-cligrok-bot-alternativeiosiphonelinuxmacosmcpopen-sourcerustself-hosted
feat(desktop): outline the message box like sheets and menus
leepokaiecc955018da2
diff --git a/apps/desktop/src/renderer/components/overlay.css b/apps/desktop/src/renderer/components/overlay.cssindex c066c5a5..d9d4aba7 100644--- a/apps/desktop/src/renderer/components/overlay.css+++ b/apps/desktop/src/renderer/components/overlay.css@@ -89,7 +89,7 @@content: '';position: absolute;inset: 0;- border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);+ border: 1px solid var(--outline);border-radius: inherit;pointer-events: none;z-index: 1;diff --git a/apps/desktop/src/renderer/styles/theme.css b/apps/desktop/src/renderer/styles/theme.cssindex c7056f46..06df4df6 100644--- a/apps/desktop/src/renderer/styles/theme.css+++ b/apps/desktop/src/renderer/styles/theme.css@@ -32,9 +32,10 @@--chat-user: #e2e2e2;/* Floating transcript controls (chevrons, Jump to latest, inspector actions). */--chat-button: #eeeeee;- /* Light: the message box is the page color with a ring, like the details buttons; dark: a lighter fill. */+ /* Light: the message box is the page color; dark: a lighter fill. */--composer-fill: var(--background);- --composer-stroke: var(--chrome-stroke);+ /* The 1px outline on floating layers: the message box, sheets, dialogs and menus. */+ --outline: color-mix(in srgb, var(--text) 18%, transparent);--chrome-fill: #f3f3f3;--chrome-stroke: rgba(0, 0, 0, 0.09);--stroke-strong: rgba(0, 0, 0, 0.14);@@ -125,7 +126,6 @@--chat-user: #363636;--chat-button: #303030;--composer-fill: #2f2f2f;- --composer-stroke: transparent;--chrome-fill: #181818;--chrome-stroke: rgba(255, 255, 255, 0.10);--stroke-strong: rgba(255, 255, 255, 0.17);diff --git a/apps/desktop/src/renderer/views/thread/composer.css b/apps/desktop/src/renderer/views/thread/composer.cssindex e3bbc66e..7e10ff40 100644--- a/apps/desktop/src/renderer/views/thread/composer.css+++ b/apps/desktop/src/renderer/views/thread/composer.css@@ -88,7 +88,8 @@min-width: 0;background: var(--composer-fill);border-radius: var(--radius-xl);- box-shadow: 0 0 0 1px var(--composer-stroke), var(--shadow-s);+ /* Inset, so the outline sits on the fill like the sheets' and menus' border, not on the page. */+ box-shadow: inset 0 0 0 1px var(--outline), var(--shadow-s);display: flex;flex-direction: column;}diff --git a/docs/design/ui-conventions.md b/docs/design/ui-conventions.mdindex 0a26dd0d..0a807615 100644--- a/docs/design/ui-conventions.md+++ b/docs/design/ui-conventions.md@@ -53,7 +53,7 @@ The chat window's account menu copies Grok Bot's: Usage, Get Codync for mobile,The iPhone and the desktop no longer share UI code. `CodyncUI` (`apps/ios/Kit/`) is the iPhone app's own package; the desktop app (`apps/desktop/src/renderer/`) is a TypeScript port of the same screens with its own `BotStore`, chat items (`views/thread/chat-items.ts`) and Markdown blocks (`markdown-blocks.ts`).- The iPhone chat's chrome is in `ThreadView.swift` (`body`, `chrome`, `header`). The iPhone conversation (chat and thread) is a UIKit collection view of hosted SwiftUI rows (`ConversationList.swift`): it loads earlier messages from the computer as the reader scrolls up, runs under the bars and the composer (the list sits in the safe area and reaches past it, so rows never get a safe area of their own), follows the newest message until they scroll away (with a round "Jump to latest" button), and pops each new message in ([chat messages](../features/chat-messages.md)).-- The desktop UI rules (custom controls, no system menus except the tray, icon-only buttons, fill or border) are implemented in `apps/desktop/src/renderer/components/` (`Controls.tsx`, `Overlay.tsx`, `Icon.tsx`, `Text.tsx`, `Stack.tsx`); how views use them and the theme tokens: [desktop styles](../guides/desktop-styles.md). Chrome on the sidebar (its header actions, the computer filter, Extensions) is outlined; chrome floating over the conversation (the title pill, the composer) is filled with a shadow. Corner radii and shadows come from the `--radius-*` and `--shadow-*` scale in `styles/theme.css`. Status text uses `--attention` (`--warning` is for dots and fills only), and destructive fills use `--danger-fill` with `--on-danger`, so both stay readable in light and dark. Sheets and dialogs hold focus while open: the window behind goes inert, Tab cycles inside, and focus returns to where it was on close.+- The desktop UI rules (custom controls, no system menus except the tray, icon-only buttons, fill or border) are implemented in `apps/desktop/src/renderer/components/` (`Controls.tsx`, `Overlay.tsx`, `Icon.tsx`, `Text.tsx`, `Stack.tsx`); how views use them and the theme tokens: [desktop styles](../guides/desktop-styles.md). Chrome on the sidebar (its header actions, the computer filter, Extensions) is outlined; chrome floating over the conversation (the title pill, the composer) is filled with a shadow, and the composer also carries the floating-layer outline. Corner radii and shadows come from the `--radius-*` and `--shadow-*` scale in `styles/theme.css`. Status text uses `--attention` (`--warning` is for dots and fills only), and destructive fills use `--danger-fill` with `--on-danger`, so both stay readable in light and dark. Sheets and dialogs hold focus while open: the window behind goes inert, Tab cycles inside, and focus returns to where it was on close.- The Android app (`apps/android/`) ports the iPhone screens one to one in Compose. Where iOS uses system UI (the tab bar, menus, sheets, Liquid Glass), Android draws the same look with its `design` module: glass from Kyant's backdrop library (blur, lens refraction and highlight on RenderEffect/RuntimeShader), the iOS sheet with its grabber and drag-to-close, glass menus and context menus, Inter for SF Pro and Material Symbols for SF Symbols (`Symbol("sf.name")`), and the soft scroll edge under its bars (`ScrollEdge`: the content behind the header, composer and tab bar blurs and washes out). Android has no Liquid Glass of its own; Material widgets aren't used.- A change to one lands in the other and the TUI in the same change; see [native client parity](#native-client-parity).@@ -229,12 +229,13 @@ so this desktop presentation change does not affect its keyboard workflow.Desktop styling is shared across macOS, Linux and Windows.Desktop modal sheets, confirmation dialogs and menus (dropdown and right-click-menus, the account and action panels) use one subtle 1px outer outline, including-Apps, Credentials, and Settings. The outline follows the existing corner radius and-overlays the content without changing layout or intercepting input. This is an-explicit exception to the filled-surface border rule. iOS keeps the system sheet's-and system menu's own edge treatment; terminal dialogs retain their existing-character borders. Neither receives an extra desktop-style outline.+menus, the account and action panels) and the message composer use one subtle 1px+inner outline (`--outline`), including Apps, Credentials, and Settings. The outline+follows the existing corner radius and overlays the content without changing layout+or intercepting input. This is an explicit exception to the filled-surface border+rule. iOS keeps the system sheet's, system menu's and composer glass's own edge,+Android its `design` module glass edge; terminal dialogs retain their existing+character borders. None of them receives an extra desktop-style outline.Desktop sheets and dialogs sit a step above the page (`--sheet`, raised in darkmode, over a deeper scrim); inside them grouped rows and fields are quiet tints ofdiff --git a/docs/guides/desktop-styles.md b/docs/guides/desktop-styles.mdindex 3962dc68..1dfaaf58 100644--- a/docs/guides/desktop-styles.md+++ b/docs/guides/desktop-styles.md@@ -4,7 +4,7 @@ How the desktop renderer (`apps/desktop/src/renderer/`) styles its views. Views## Tokens (`styles/theme.css`)-- **Color**: `--text`, `--secondary`, `--tertiary`, `--danger`, `--attention` (status text), `--accent`, surfaces (`--background`, `--surface`, `--panel`, `--bubble-*`, `--chat-*`, `--chrome-fill`, `--composer-fill`), strokes (`--border`, `--chrome-stroke`, `--stroke-strong`), fills with their ink (`--accent-fill`/`--on-accent`, `--danger-fill`/`--on-danger`, `--warning`/`--on-warning`), `--added`/`--removed`, `--code-background`, `--scrim`, the chosen option of a segmented choice or chip (`--chip-on`, `--chip-shadow`). Sheets and dialogs sit on `--sheet` (a step above the page in dark mode) with grouped rows on `--group` and text fields on `--field`, tints that stack; inside `.modal-content` the page tokens point at them (`--background` → `--sheet`, `--surface` and `--bubble-agent` → `--group`, `--bubble-user` → `--field`), so a view styled with the page tokens fits a sheet unchanged. Every color has a light and a dark value. Views use the tokens, or `rgba(var(--text-rgb), a)` for a tint of the text color; a literal only where the color must not follow the theme (white behind a QR code or a favicon).+- **Color**: `--text`, `--secondary`, `--tertiary`, `--danger`, `--attention` (status text), `--accent`, surfaces (`--background`, `--surface`, `--panel`, `--bubble-*`, `--chat-*`, `--chrome-fill`, `--composer-fill`), strokes (`--border`, `--chrome-stroke`, `--stroke-strong`, `--outline` for the 1px edge of floating layers: the composer, sheets, dialogs and menus), fills with their ink (`--accent-fill`/`--on-accent`, `--danger-fill`/`--on-danger`, `--warning`/`--on-warning`), `--added`/`--removed`, `--code-background`, `--scrim`, the chosen option of a segmented choice or chip (`--chip-on`, `--chip-shadow`). Sheets and dialogs sit on `--sheet` (a step above the page in dark mode) with grouped rows on `--group` and text fields on `--field`, tints that stack; inside `.modal-content` the page tokens point at them (`--background` → `--sheet`, `--surface` and `--bubble-agent` → `--group`, `--bubble-user` → `--field`), so a view styled with the page tokens fits a sheet unchanged. Every color has a light and a dark value. Views use the tokens, or `rgba(var(--text-rgb), a)` for a tint of the text color; a literal only where the color must not follow the theme (white behind a QR code or a favicon).- **Type ramp**: `--text-large-title` 26, `--text-title` 22, `--text-title2` 17, `--text-title3` 15, `--text-body` 13, `--text-callout` 12, `--text-caption` 11 (points, scaled by the text size preference). `lib/fonts.ts` maps the macOS style names onto it (`headline` and `body` → body, `compactBody` → callout, `subheadline`, `footnote`, `caption`, `caption2`, `compactSecondary` → caption).- **Radius**: `--radius-xs` 6, `--radius-s` 10, `--radius-m` 12, `--radius-l` 16, `--radius-xl` 22, `--radius-pill`. **Shadow**: `--shadow-s` (resting), `--shadow-m` (floating chrome), `--shadow-l` (menus, panels), `--shadow-xl` (sheets, dialogs).- **Motion**: `--hover`, `--fade`, `--press`, `--morph`, `--layout`, `--ease`, `--ease-out`, `--spring`. The island has its own (`--island-spring`, `--island-fold`) in `views/island/island.css`.