Skip to content

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.

feat(apps): show the codync-network mark for Network

leepokaia62b6159eb5f
diff --git a/apps/android/app/src/main/kotlin/com/codync/android/ComputersView.kt b/apps/android/app/src/main/kotlin/com/codync/android/ComputersView.kt
index 4c3207ac..59f3924c 100644
--- a/apps/android/app/src/main/kotlin/com/codync/android/ComputersView.kt
+++ b/apps/android/app/src/main/kotlin/com/codync/android/ComputersView.kt
@@ -188,7 +188,7 @@ private fun CardRows.computerRows(state: AppState, store: AppStore, inAccount: B
}
}
-private const val NETWORK_ICON = "point.3.connected.trianglepath.dotted"
+private const val NETWORK_ICON = "codync.network"
/** How this phone reaches the computer: the short name on the row, the whole route in the menu. */
@Composable private fun ConnectionRow(computer: Computer, store: AppStore) {
diff --git a/apps/android/app/src/main/kotlin/com/codync/android/NetworkSheet.kt b/apps/android/app/src/main/kotlin/com/codync/android/NetworkSheet.kt
index 4d0bbfca..acf07d77 100644
--- a/apps/android/app/src/main/kotlin/com/codync/android/NetworkSheet.kt
+++ b/apps/android/app/src/main/kotlin/com/codync/android/NetworkSheet.kt
@@ -35,7 +35,7 @@ import com.kyant.shapes.Capsule
LaunchedEffect(Unit) { refresh() }
Column(Modifier.fillMaxSize().background(Palette.background)) {
ModalHeader({
- Symbol("point.3.connected.trianglepath.dotted", size = 24.dp, tint = Palette.text)
+ Symbol("codync.network", size = 24.dp, tint = Palette.text)
Spacer(Modifier.width(8.dp))
Text(tr("Network"), style = Type.body.semibold, color = Palette.text, maxLines = 1, overflow = TextOverflow.Ellipsis)
Spacer(Modifier.width(8.dp))
diff --git a/apps/android/design/src/main/kotlin/com/codync/android/design/Symbol.kt b/apps/android/design/src/main/kotlin/com/codync/android/design/Symbol.kt
index 5742067c..0db2409b 100644
--- a/apps/android/design/src/main/kotlin/com/codync/android/design/Symbol.kt
+++ b/apps/android/design/src/main/kotlin/com/codync/android/design/Symbol.kt
@@ -25,6 +25,7 @@ import androidx.compose.ui.unit.dp
"rectangle.stack.fill" -> CardStack
"apple.logo" -> painterResource(R.drawable.apple_logo)
"computer.linux" -> painterResource(R.drawable.computer_linux)
+ "codync.network" -> painterResource(R.drawable.codync_network)
else -> painterResource(symbolRes(name) ?: R.drawable.sf_circle_dotted)
}
val described = if (contentDescription == null) modifier.clearAndSetSemantics {}
diff --git a/apps/android/design/src/main/res/drawable/codync_network.xml b/apps/android/design/src/main/res/drawable/codync_network.xml
new file mode 100644
index 00000000..75710480
--- /dev/null
+++ b/apps/android/design/src/main/res/drawable/codync_network.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- The codync-network mark (host/crates/network/assets/icon.png); SF Symbols has none. -->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp" android:height="24dp" android:viewportWidth="24" android:viewportHeight="24">
+ <path android:fillColor="#FF000000"
+ android:pathData="M11.66 3.41c-0.05 0-0.2 0.03-0.33 0.06c-0.7 0.15-1.33 0.49-1.82 1c-0.6 0.62-0.91 1.34-0.95 2.17c-0.02 0.39 0.01 0.69 0.12 1.1c0.1 0.39 0.1 0.58-0 0.87c-0.14 0.39-0.28 0.57-0.93 1.17c-0.86 0.8-1.38 1.66-1.71 2.81c-0.12 0.41-0.24 0.66-0.43 0.87c-0.23 0.26-0.48 0.39-0.94 0.5c-0.26 0.06-0.61 0.2-0.87 0.33c-0.9 0.48-1.56 1.39-1.73 2.41c-0.05 0.31-0.04 0.92 0.02 1.21c0.14 0.64 0.46 1.22 0.94 1.69c0.55 0.55 1.19 0.85 1.97 0.93c0.67 0.07 1.38-0.1 1.99-0.46c0.28-0.17 0.4-0.27 0.82-0.7c0.42-0.42 0.51-0.49 0.81-0.54c0.27-0.05 0.56 0.02 1.07 0.26c0.86 0.4 1.38 0.54 2.14 0.57c0.79 0.03 1.56-0.13 2.39-0.52c0.19-0.09 0.45-0.2 0.57-0.24c0.38-0.13 0.72-0.1 0.99 0.07c0.11 0.06 0.25 0.21 0.62 0.61c0.38 0.42 0.77 0.68 1.28 0.85c0.34 0.12 0.51 0.14 1 0.14c0.41-0 0.47-0.01 0.72-0.07c0.66-0.17 1.13-0.43 1.59-0.91c0.49-0.49 0.8-1.05 0.94-1.74c0.07-0.35 0.07-0.94-0-1.3c-0.13-0.64-0.45-1.22-0.93-1.7c-0.61-0.62-1.38-0.95-2.37-1.04c-1.1-0.09-2.12 0.25-2.83 0.96c-0.22 0.21-0.38 0.43-0.87 1.1c-0.27 0.37-0.8 0.92-1.09 1.12c-0.69 0.48-1.41 0.68-2.19 0.62c-1.65-0.13-2.95-1.29-3.32-2.94c-0.07-0.32-0.08-1.14-0.01-1.47c0.24-1.16 0.95-2.18 1.96-2.77c0.34-0.2 0.79-0.36 1.2-0.44c0.3-0.05 0.95-0.04 1.25 0.03c0.83 0.18 1.51 0.61 1.87 1.2c0.11 0.17 0.23 0.45 0.38 0.89c0.1 0.29 0.2 0.46 0.36 0.63c0.5 0.54 1.31 0.56 1.81 0.04c0.16-0.16 0.29-0.4 0.33-0.58c0.04-0.16 0.03-0.48-0.01-0.67c-0.06-0.24-0.3-0.71-0.54-1.03c-0.12-0.16-0.41-0.48-0.69-0.77c-0.54-0.55-0.65-0.68-0.79-0.96c-0.18-0.37-0.21-0.65-0.12-1.03c0.25-1.04 0.12-1.97-0.4-2.77c-0.66-1.02-1.75-1.62-2.93-1.6c-0.15 0-0.31 0.01-0.36 0.01z" />
+</vector>
diff --git a/apps/desktop/src/main/tray.ts b/apps/desktop/src/main/tray.ts
index 5542e47f..130cb8a8 100644
--- a/apps/desktop/src/main/tray.ts
+++ b/apps/desktop/src/main/tray.ts
@@ -62,13 +62,18 @@ export class Tray {
return translate(text, preference, 'en')
}
- /** The renderer draws menu images at 1× and 2× (`tray-summary.ts`): each screen gets its own pixels. */
- private image(drawn: TrayImage | null) {
+ /**
+ * The renderer draws menu images at 1× and 2× (`tray-summary.ts`): each screen gets its own pixels.
+ * A template image follows the menu's highlight and appearance on macOS, like its SF Symbols.
+ */
+ private image(drawn: TrayImage | null, template = false) {
if (!drawn) return undefined
const image = nativeImage.createEmpty()
image.addRepresentation({ scaleFactor: 1, dataURL: drawn.x1 })
image.addRepresentation({ scaleFactor: 2, dataURL: drawn.x2 })
- return image.isEmpty() ? undefined : image
+ if (image.isEmpty()) return undefined
+ image.setTemplateImage(template)
+ return image
}
/** The symbol beside an action: SF Symbols on macOS, the renderer's drawing of it on Windows and Linux. */
@@ -134,7 +139,7 @@ export class Tray {
}
if (s?.screen || s?.networks) items.push({ type: 'separator' })
if (s?.screen) items.push({ label: this.tr('Remote screen'), icon: this.symbol('display'), submenu: this.screenMenu(s.screen) })
- if (s?.networks) items.push({ label: this.tr('Network'), icon: this.symbol('point.3.connected.trianglepath.dotted'), submenu: this.networkMenu(s.networks) })
+ if (s?.networks) items.push({ label: this.tr('Network'), icon: this.image(s.networkIcon, process.platform === 'darwin'), submenu: this.networkMenu(s.networks) })
if (s && s.usage.length) {
items.push({ type: 'separator' })
for (const provider of s.usage) {
diff --git a/apps/desktop/src/renderer/components/icon-fallbacks.ts b/apps/desktop/src/renderer/components/icon-fallbacks.ts
index 7cea9241..b8fb6297 100644
--- a/apps/desktop/src/renderer/components/icon-fallbacks.ts
+++ b/apps/desktop/src/renderer/components/icon-fallbacks.ts
@@ -14,6 +14,9 @@ const appleLogo: IconNode = [
],
]
+// The codync-network mark (host/crates/network/assets/icon.png), drawn on every platform.
+const codyncNetwork: IconNode = [['path', { fill: 'currentColor', stroke: 'none', d: 'M11.66 3.41c-0.05 0-0.2 0.03-0.33 0.06c-0.7 0.15-1.33 0.49-1.82 1c-0.6 0.62-0.91 1.34-0.95 2.17c-0.02 0.39 0.01 0.69 0.12 1.1c0.1 0.39 0.1 0.58-0 0.87c-0.14 0.39-0.28 0.57-0.93 1.17c-0.86 0.8-1.38 1.66-1.71 2.81c-0.12 0.41-0.24 0.66-0.43 0.87c-0.23 0.26-0.48 0.39-0.94 0.5c-0.26 0.06-0.61 0.2-0.87 0.33c-0.9 0.48-1.56 1.39-1.73 2.41c-0.05 0.31-0.04 0.92 0.02 1.21c0.14 0.64 0.46 1.22 0.94 1.69c0.55 0.55 1.19 0.85 1.97 0.93c0.67 0.07 1.38-0.1 1.99-0.46c0.28-0.17 0.4-0.27 0.82-0.7c0.42-0.42 0.51-0.49 0.81-0.54c0.27-0.05 0.56 0.02 1.07 0.26c0.86 0.4 1.38 0.54 2.14 0.57c0.79 0.03 1.56-0.13 2.39-0.52c0.19-0.09 0.45-0.2 0.57-0.24c0.38-0.13 0.72-0.1 0.99 0.07c0.11 0.06 0.25 0.21 0.62 0.61c0.38 0.42 0.77 0.68 1.28 0.85c0.34 0.12 0.51 0.14 1 0.14c0.41-0 0.47-0.01 0.72-0.07c0.66-0.17 1.13-0.43 1.59-0.91c0.49-0.49 0.8-1.05 0.94-1.74c0.07-0.35 0.07-0.94-0-1.3c-0.13-0.64-0.45-1.22-0.93-1.7c-0.61-0.62-1.38-0.95-2.37-1.04c-1.1-0.09-2.12 0.25-2.83 0.96c-0.22 0.21-0.38 0.43-0.87 1.1c-0.27 0.37-0.8 0.92-1.09 1.12c-0.69 0.48-1.41 0.68-2.19 0.62c-1.65-0.13-2.95-1.29-3.32-2.94c-0.07-0.32-0.08-1.14-0.01-1.47c0.24-1.16 0.95-2.18 1.96-2.77c0.34-0.2 0.79-0.36 1.2-0.44c0.3-0.05 0.95-0.04 1.25 0.03c0.83 0.18 1.51 0.61 1.87 1.2c0.11 0.17 0.23 0.45 0.38 0.89c0.1 0.29 0.2 0.46 0.36 0.63c0.5 0.54 1.31 0.56 1.81 0.04c0.16-0.16 0.29-0.4 0.33-0.58c0.04-0.16 0.03-0.48-0.01-0.67c-0.06-0.24-0.3-0.71-0.54-1.03c-0.12-0.16-0.41-0.48-0.69-0.77c-0.54-0.55-0.65-0.68-0.79-0.96c-0.18-0.37-0.21-0.65-0.12-1.03c0.25-1.04 0.12-1.97-0.4-2.77c-0.66-1.02-1.75-1.62-2.93-1.6c-0.15 0-0.31 0.01-0.36 0.01z' }]]
+
// The closest Lucide icon for each SF Symbol, for platforms without SF Symbols (Linux, Windows).
const map: Record<string, IconNode> = {
archivebox: L.Archive,
@@ -67,6 +70,7 @@ const map: Record<string, IconNode> = {
clock: L.Clock,
'clock.arrow.circlepath': L.History,
cloud: L.Cloud,
+ 'codync.network': codyncNetwork,
cpu: L.Cpu,
'cursorarrow.motionlines': L.MousePointerClick,
desktopcomputer: L.Monitor,
diff --git a/apps/desktop/src/renderer/views/settings/NetworkSheets.tsx b/apps/desktop/src/renderer/views/settings/NetworkSheets.tsx
index c56785d0..1d152f8a 100644
--- a/apps/desktop/src/renderer/views/settings/NetworkSheets.tsx
+++ b/apps/desktop/src/renderer/views/settings/NetworkSheets.tsx
@@ -10,7 +10,7 @@ import type { BotStore } from '../../store/bot-store'
import { network } from '../../store/network'
import { errorText } from './parts'
-const NETWORK_ICON = 'point.3.connected.trianglepath.dotted'
+const NETWORK_ICON = 'codync.network'
function Field({ label, value, set, placeholder, mono = false }: { label: string; value: string; set: (v: string) => void; placeholder: string; mono?: boolean }) {
const tr = useTr()
diff --git a/apps/desktop/src/renderer/views/settings/SettingsView.tsx b/apps/desktop/src/renderer/views/settings/SettingsView.tsx
index f5e1f9bd..b645db03 100644
--- a/apps/desktop/src/renderer/views/settings/SettingsView.tsx
+++ b/apps/desktop/src/renderer/views/settings/SettingsView.tsx
@@ -34,7 +34,7 @@ const thisComputer = isMac ? 'This Mac' : 'This computer'
const pages: { id: SettingsPage; title: string; label?: string; group: string; icon: string }[] = [
{ id: 'general', title: 'General', group: 'Personal', icon: 'gearshape' },
{ id: 'computers', title: 'Computers & devices', label: 'Computers', group: thisComputer, icon: 'desktopcomputer' },
- { id: 'network', title: 'Network', group: thisComputer, icon: 'point.3.connected.trianglepath.dotted' },
+ { id: 'network', title: 'Network', group: thisComputer, icon: 'codync.network' },
{ id: 'access', title: 'Computer access', group: thisComputer, icon: 'hand.raised' },
{ id: 'voice', title: 'Voice chat', group: 'Personal', icon: 'waveform' },
{ id: 'usage', title: 'Usage', group: 'Personal', icon: 'gauge.with.dots.needle.33percent' },
diff --git a/apps/desktop/src/renderer/views/tray-summary.ts b/apps/desktop/src/renderer/views/tray-summary.ts
index ed1af54e..8a0ad825 100644
--- a/apps/desktop/src/renderer/views/tray-summary.ts
+++ b/apps/desktop/src/renderer/views/tray-summary.ts
@@ -99,6 +99,15 @@ function dotIcon(online: boolean) {
})
}
+/** The Network row's codync-network mark: black for a macOS template image, else the menu's text color. */
+function networkIcon() {
+ return canvasImage('network', 16, 16, (ctx) => {
+ ctx.scale(16 / 24, 16 / 24)
+ ctx.fillStyle = !isMac && isDark() ? '#FFFFFF' : '#000000'
+ ctx.fill(fallbackPath('codync.network'))
+ })
+}
+
/** The actions' icons for Windows and Linux menus, from the same fallbacks the app's icons use there. */
function symbolIcons(): TraySummary['symbols'] {
if (isMac) return null
@@ -189,6 +198,7 @@ export function useTraySummary(app: AppModel) {
}
: null,
networks: networkLines(local?.network),
+ networkIcon: networkIcon(),
symbols: symbolIcons(),
needsAttention: app.needsAttention,
textSize,
diff --git a/apps/desktop/src/shared/ipc.ts b/apps/desktop/src/shared/ipc.ts
index 02c03a64..fb655ee5 100644
--- a/apps/desktop/src/shared/ipc.ts
+++ b/apps/desktop/src/shared/ipc.ts
@@ -54,7 +54,6 @@ export const TRAY_SYMBOLS = [
'list.bullet.rectangle',
'person.crop.circle.badge.checkmark',
'display',
- 'point.3.connected.trianglepath.dotted',
'gearshape',
'power',
] as const
@@ -73,6 +72,8 @@ export interface TraySummary {
} | null
/** This computer's networks (codync-network), lines already translated; null on hosts without them. */
networks: { title: string; computers: { label: string; dot: TrayImage | null }[] }[] | null
+ /** The Network row's codync-network mark (SF Symbols has none), drawn on every platform; a template image on macOS. */
+ networkIcon: TrayImage | null
/** Windows and Linux: the actions' symbols drawn by the renderer (macOS menus draw SF Symbols); null on macOS. */
symbols: Partial<Record<TraySymbol, TrayImage>> | null
needsAttention: boolean
diff --git a/apps/ios/Kit/Sources/CodyncUI/NetworkSheet.swift b/apps/ios/Kit/Sources/CodyncUI/NetworkSheet.swift
index b43b1078..b66b85ac 100644
--- a/apps/ios/Kit/Sources/CodyncUI/NetworkSheet.swift
+++ b/apps/ios/Kit/Sources/CodyncUI/NetworkSheet.swift
@@ -1,6 +1,11 @@
import CodyncKit
import SwiftUI
+extension Image {
+ /// The codync-network mark (host/crates/network/assets/icon.png); SF Symbols has none.
+ public static var codyncNetwork: Image { Image("codync-network", bundle: .module) }
+}
+
/// A computer's networks of the user's other computers, read-only: who is in each, whether each one
/// answers and which bots it offers, who may message this computer's bots there, and whether cloud
/// assistants may reach them.
@@ -14,7 +19,7 @@ public struct NetworkSheet: View {
VStack(spacing: 0) {
ModalHeader {
HStack(spacing: 8) {
- Image(systemName: "point.3.connected.trianglepath.dotted").font(.title2).accessibilityHidden(true)
+ Image.codyncNetwork.resizable().scaledToFit().frame(width: 26, height: 26).accessibilityHidden(true)
Text(L10n.tr("Network"))
// The network is a beta feature.
Text(L10n.tr("Beta"))
diff --git a/apps/ios/Kit/Sources/CodyncUI/Resources/AgentIcons.xcassets/codync-network.imageset/Contents.json b/apps/ios/Kit/Sources/CodyncUI/Resources/AgentIcons.xcassets/codync-network.imageset/Contents.json
new file mode 100644
index 00000000..d7eea3fa
--- /dev/null
+++ b/apps/ios/Kit/Sources/CodyncUI/Resources/AgentIcons.xcassets/codync-network.imageset/Contents.json
@@ -0,0 +1,5 @@
+{
+ "images" : [ { "filename" : "codync-network.svg", "idiom" : "universal" } ],
+ "info" : { "author" : "xcode", "version" : 1 },
+ "properties" : { "template-rendering-intent" : "template", "preserves-vector-representation" : true }
+}
diff --git a/apps/ios/Kit/Sources/CodyncUI/Resources/AgentIcons.xcassets/codync-network.imageset/codync-network.svg b/apps/ios/Kit/Sources/CodyncUI/Resources/AgentIcons.xcassets/codync-network.imageset/codync-network.svg
new file mode 100644
index 00000000..d9e51837
--- /dev/null
+++ b/apps/ios/Kit/Sources/CodyncUI/Resources/AgentIcons.xcassets/codync-network.imageset/codync-network.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M11.66 3.41c-0.05 0-0.2 0.03-0.33 0.06c-0.7 0.15-1.33 0.49-1.82 1c-0.6 0.62-0.91 1.34-0.95 2.17c-0.02 0.39 0.01 0.69 0.12 1.1c0.1 0.39 0.1 0.58-0 0.87c-0.14 0.39-0.28 0.57-0.93 1.17c-0.86 0.8-1.38 1.66-1.71 2.81c-0.12 0.41-0.24 0.66-0.43 0.87c-0.23 0.26-0.48 0.39-0.94 0.5c-0.26 0.06-0.61 0.2-0.87 0.33c-0.9 0.48-1.56 1.39-1.73 2.41c-0.05 0.31-0.04 0.92 0.02 1.21c0.14 0.64 0.46 1.22 0.94 1.69c0.55 0.55 1.19 0.85 1.97 0.93c0.67 0.07 1.38-0.1 1.99-0.46c0.28-0.17 0.4-0.27 0.82-0.7c0.42-0.42 0.51-0.49 0.81-0.54c0.27-0.05 0.56 0.02 1.07 0.26c0.86 0.4 1.38 0.54 2.14 0.57c0.79 0.03 1.56-0.13 2.39-0.52c0.19-0.09 0.45-0.2 0.57-0.24c0.38-0.13 0.72-0.1 0.99 0.07c0.11 0.06 0.25 0.21 0.62 0.61c0.38 0.42 0.77 0.68 1.28 0.85c0.34 0.12 0.51 0.14 1 0.14c0.41-0 0.47-0.01 0.72-0.07c0.66-0.17 1.13-0.43 1.59-0.91c0.49-0.49 0.8-1.05 0.94-1.74c0.07-0.35 0.07-0.94-0-1.3c-0.13-0.64-0.45-1.22-0.93-1.7c-0.61-0.62-1.38-0.95-2.37-1.04c-1.1-0.09-2.12 0.25-2.83 0.96c-0.22 0.21-0.38 0.43-0.87 1.1c-0.27 0.37-0.8 0.92-1.09 1.12c-0.69 0.48-1.41 0.68-2.19 0.62c-1.65-0.13-2.95-1.29-3.32-2.94c-0.07-0.32-0.08-1.14-0.01-1.47c0.24-1.16 0.95-2.18 1.96-2.77c0.34-0.2 0.79-0.36 1.2-0.44c0.3-0.05 0.95-0.04 1.25 0.03c0.83 0.18 1.51 0.61 1.87 1.2c0.11 0.17 0.23 0.45 0.38 0.89c0.1 0.29 0.2 0.46 0.36 0.63c0.5 0.54 1.31 0.56 1.81 0.04c0.16-0.16 0.29-0.4 0.33-0.58c0.04-0.16 0.03-0.48-0.01-0.67c-0.06-0.24-0.3-0.71-0.54-1.03c-0.12-0.16-0.41-0.48-0.69-0.77c-0.54-0.55-0.65-0.68-0.79-0.96c-0.18-0.37-0.21-0.65-0.12-1.03c0.25-1.04 0.12-1.97-0.4-2.77c-0.66-1.02-1.75-1.62-2.93-1.6c-0.15 0-0.31 0.01-0.36 0.01z"/></svg>
diff --git a/apps/ios/Views/ComputersView.swift b/apps/ios/Views/ComputersView.swift
index fb91e83d..7851fba5 100644
--- a/apps/ios/Views/ComputersView.swift
+++ b/apps/ios/Views/ComputersView.swift
@@ -169,7 +169,7 @@ private struct ComputerRows: View {
.buttonStyle(.plain)
}
if showsNetwork {
- Button { networkSheet = true } label: { RowLabel("Network", systemImage: Self.networkIcon, chevron: true) }
+ Button { networkSheet = true } label: { RowLabel("Network", image: .codyncNetwork, chevron: true) }
.buttonStyle(.plain)
}
}
@@ -217,7 +217,7 @@ private struct ComputerRows: View {
items.append(MenuItem("Screen", icon: "display", action: openScreen))
}
if store.connection == .online, showsNetwork {
- items.append(MenuItem("Network", icon: Self.networkIcon) { networkSheet = true })
+ items.append(MenuItem("Network", image: .codyncNetwork) { networkSheet = true })
}
if let revoke {
items.append(MenuItem("Revoke this iPhone's access", icon: "lock.slash", destructive: true, divider: true, action: revoke))
@@ -274,8 +274,6 @@ private struct ComputerRows: View {
private var preference: ConnectionRoute { store.computer.route ?? .automatic }
- private static let networkIcon = "point.3.connected.trianglepath.dotted"
-
/// In a network of the user's computers, or cloud assistants on (hosts before it say nothing).
private var showsNetwork: Bool { store.network?.hasContent == true }
diff --git a/apps/ios/Views/RowLabel.swift b/apps/ios/Views/RowLabel.swift
index c355b727..a77a7aeb 100644
--- a/apps/ios/Views/RowLabel.swift
+++ b/apps/ios/Views/RowLabel.swift
@@ -3,23 +3,34 @@ import SwiftUI
/// An icon and a short name, with a chevron when it leads somewhere.
struct RowLabel: View {
+ /// An SF Symbol sizes with the font; a custom mark gets a frame instead.
+ enum Icon {
+ case symbol(String)
+ case image(Image)
+ }
+
let title: String
- let systemImage: String
+ let icon: Icon
var tint: Color = Palette.text
var chevron = false
init(_ title: String, systemImage: String, tint: Color = Palette.text, chevron: Bool = false) {
self.title = title
- self.systemImage = systemImage
+ icon = .symbol(systemImage)
+ self.tint = tint
+ self.chevron = chevron
+ }
+
+ init(_ title: String, image: Image, tint: Color = Palette.text, chevron: Bool = false) {
+ self.title = title
+ icon = .image(image)
self.tint = tint
self.chevron = chevron
}
var body: some View {
HStack(spacing: 12) {
- Image(systemName: systemImage)
- .font(.system(size: 17))
- .frame(width: 26)
+ iconView.frame(width: 26)
Text(L10n.tr(title))
Spacer(minLength: 8)
if chevron {
@@ -29,4 +40,11 @@ struct RowLabel: View {
.foregroundStyle(tint)
.contentShape(Rectangle())
}
+
+ @ViewBuilder private var iconView: some View {
+ switch icon {
+ case .symbol(let name): Image(systemName: name).font(.system(size: 17))
+ case .image(let image): image.resizable().scaledToFit().frame(width: 20, height: 20)
+ }
+ }
}
diff --git a/docs/design/ui-conventions.md b/docs/design/ui-conventions.md
index a97ae7b0..e29eeda8 100644
--- a/docs/design/ui-conventions.md
+++ b/docs/design/ui-conventions.md
@@ -39,7 +39,7 @@ runs the latest version. The TUI action list has **Check for updates**. Download
install go through electron-updater (`apps/desktop/src/main/updates.ts`); there is no
separate update window.
-The tray menu is Electron's native `Menu` (`apps/desktop/src/main/tray.ts`), the only system menu in the desktop app. Its commands, submenus, checkboxes, usage-icon radio items, separators and keyboard navigation use system styling. Do not add custom cards, hover backgrounds, icon buttons or a window-style menu panel here. Action rows (Open, Pair iPhone, host actions, approval review, Remote screen, Settings, Quit) carry an SF Symbol: on macOS through `nativeImage.createMenuSymbol`, on Linux and Windows as the symbol's Lucide fallback the renderer draws (`TRAY_SYMBOLS`, `tray-summary.ts`); status, bot and usage rows get none. The app version is a row in Settings → Updates, so Settings and Quit end the menu together.
+The tray menu is Electron's native `Menu` (`apps/desktop/src/main/tray.ts`), the only system menu in the desktop app. Its commands, submenus, checkboxes, usage-icon radio items, separators and keyboard navigation use system styling. Do not add custom cards, hover backgrounds, icon buttons or a window-style menu panel here. Action rows (Open, Pair iPhone, host actions, approval review, Remote screen, Settings, Quit) carry an SF Symbol: on macOS through `nativeImage.createMenuSymbol`, on Linux and Windows as the symbol's Lucide fallback the renderer draws (`TRAY_SYMBOLS`, `tray-summary.ts`). The Network row carries the codync-network mark instead, as in the app (SF Symbols has none): the renderer draws it on every platform, a template image on macOS. Status, bot and usage rows get none. The app version is a row in Settings → Updates, so Settings and Quit end the menu together.
The menu retains host installation/restart, bot conversation/stop actions, approval review, usage limits, remote-screen permissions, open-at-login and quit. Pairing opens a separate titled window because its QR needs a persistent scanning surface. The chat window retains its own UI conventions.