Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

Give Devices its own Harness product icon (#583)

Dee360fb23cdcad
diff --git a/desktop/assets/devices/README.md b/desktop/assets/devices/README.md
index 912c1e9a9..6868abc9e 100644
--- a/desktop/assets/devices/README.md
+++ b/desktop/assets/devices/README.md
@@ -10,3 +10,28 @@ representations of a separate Pro enclosure or a connected device's live display
Bundled for offline device management. Presentation crops happen in
`DeviceArtwork`; the original images are unchanged.
+
+## Devices navigation mark
+
+`harness-mark.png` is a transparent product illustration generated with the
+built-in imagegen tool from `harness-front.webp` on 2026-10-01. Both Flutter and
+AppKit use this same asset at 20 points; it retains its orange product color in
+light and dark appearances. It is an identity mark, not a live status display.
+
+Generation prompt:
+
+> Use case: product-mockup. Create one polished macOS toolbar product-identity
+> icon of the orange Harness desktop device shown in the reference photograph.
+> The photograph is a shape/material reference, not a scene to reproduce. One
+> single compact circular orange enclosure, glossy near-black round display,
+> subtly tilted three-quarter front view with enough lower orange casing depth
+> to read as real hardware rather than a flat ring. Refined miniature 3D product
+> rendering, crisp silhouette and restrained highlights, warm orange edge, a
+> tiny bright mint status stroke and two short ivory horizontal strokes on the
+> black display; no text, logos, numbers, badges or cables. The device should
+> occupy 90 percent of a square canvas and be centered. Optimize for recognition
+> at 20 pixels beside the words Devices in a dark or light desktop toolbar: bold
+> simple details, strong silhouette, no tiny photoreal texture. Transparent
+> background with true alpha; no background square, no tile, no floor, no cast
+> shadow, no glow outside the silhouette. Keep the physical orange Harness
+> product recognizable and elegant.
diff --git a/desktop/assets/devices/harness-mark.png b/desktop/assets/devices/harness-mark.png
new file mode 100644
index 000000000..04d08ce87
Binary files /dev/null and b/desktop/assets/devices/harness-mark.png differ
diff --git a/desktop/design/desktop-ui-migration.md b/desktop/design/desktop-ui-migration.md
index 6d5ec96bc..dcb352b3b 100644
--- a/desktop/design/desktop-ui-migration.md
+++ b/desktop/design/desktop-ui-migration.md
@@ -548,6 +548,15 @@ unmerged.
### Experimental Devices DSH, 2026-10-01
+- Devices navigation now uses a transparent miniature of the orange Harness
+ hardware in both Flutter and AppKit. The shared 20 pt identity artwork keeps
+ its color across themes; labels, focus, disabled opacity and experimental
+ gating stay with the existing controls. Native button renders were reviewed
+ in [dark](../../docs/research/2026-10-01-devices/devices-icon-dark.png) and
+ [light](../../docs/research/2026-10-01-devices/devices-icon-light.png) appearances.
+ Ten existing navigation/typography tests, 4,352 native titlebar checks,
+ scoped analysis and the icon audit pass. The asset notes retain its imagegen
+ prompt and reference-photo provenance.
- Devices is an account-scoped experiment, off by default. After the server
acknowledges opt-in, navigation reads Search → Devices → Harness Store in
AppKit and Flutter. Clicking Devices opens the bundled `autonomous/devices`
diff --git a/desktop/lib/devices/device_artwork.dart b/desktop/lib/devices/device_artwork.dart
index 11a6b1463..fe488fe60 100644
--- a/desktop/lib/devices/device_artwork.dart
+++ b/desktop/lib/devices/device_artwork.dart
@@ -1,5 +1,29 @@
import 'package:flutter/material.dart';
+/// The same product identity artwork is used by the native titlebar.
+const kDeviceMarkAsset = 'assets/devices/harness-mark.png';
+
+class DeviceMark extends StatelessWidget {
+ const DeviceMark({super.key, this.size = 20, this.enabled = true});
+
+ final double size;
+ final bool enabled;
+
+ @override
+ Widget build(BuildContext context) => Opacity(
+ opacity: enabled ? 1 : .45,
+ child: Image.asset(
+ kDeviceMarkAsset,
+ width: size,
+ height: size,
+ cacheWidth: (size * MediaQuery.devicePixelRatioOf(context)).ceil(),
+ fit: BoxFit.contain,
+ filterQuality: FilterQuality.high,
+ excludeFromSemantics: true,
+ ),
+ );
+}
+
/// Product photography from autonomous.ai/harness-device. Bundled so the
/// library remains useful when the computer is offline.
class DeviceArtwork extends StatelessWidget {
diff --git a/desktop/lib/widgets/workspace_store_button.dart b/desktop/lib/widgets/workspace_store_button.dart
index bb796d168..084e4b174 100644
--- a/desktop/lib/widgets/workspace_store_button.dart
+++ b/desktop/lib/widgets/workspace_store_button.dart
@@ -3,8 +3,8 @@ import 'dart:math' as math;
import 'package:flutter/material.dart';
import '../shared/theme/app_theme.dart' as grid;
+import '../devices/device_artwork.dart';
import '../store/store_mark.dart';
-import '../shared/theme/app_icons.dart';
import 'desktop_chrome.dart';
import 'workspace_bar_control.dart';
@@ -78,11 +78,7 @@ class WorkspaceStoreButton extends StatelessWidget {
child: Row(
children: [
if (devices)
- Icon(
- AppIcons.circle,
- size: 16,
- color: accent.withValues(alpha: enabled ? 1 : .45),
- )
+ DeviceMark(enabled: enabled)
else
StoreMark(enabled: enabled),
const SizedBox(width: 8),
diff --git a/desktop/macos/Runner/SwarmTitlebar.swift b/desktop/macos/Runner/SwarmTitlebar.swift
index 73437cb1a..be8492079 100644
--- a/desktop/macos/Runner/SwarmTitlebar.swift
+++ b/desktop/macos/Runner/SwarmTitlebar.swift
@@ -769,6 +769,7 @@ private final class SwarmHistoryIcons {
/// which is how the store tab once read "S".
static func opens(_ asset: String) -> Bool {
!asset.contains("..") && (asset == "assets/app_icon.png" || asset == "assets/harnesses.png" || asset == "assets/machines.svg" || asset == "assets/models.svg" || asset == "assets/harnesses.svg" || asset == "assets/models.png" || asset == "assets/store/polymath.png"
+ || asset == "assets/devices/harness-mark.png"
|| asset.hasPrefix("assets/engine-icons/") && asset.hasSuffix(".png")
|| pullRequestAssets.contains(asset))
}
@@ -1008,7 +1009,7 @@ private class SwarmPlainIconButton: SwarmIconButton {
/// A quiet filled pill, with the Store's colorful mark as its focal point.
/// Drawing the content keeps the same spacing across AppKit button styles.
private final class SwarmStoreButton: SwarmIconButton {
- var monochrome = false
+ var markSize: CGFloat = 16
var palette = SwarmNativePalette() { didSet { needsDisplay = true } }
var preferredWidth: CGFloat {
ceil(workspaceBarTextWidth(title,
@@ -1026,16 +1027,10 @@ private final class SwarmStoreButton: SwarmIconButton {
palette.accent.withAlphaComponent(hasKeyboardFocus && isEnabled ? 0.85 : 0.12).setStroke()
shape.lineWidth = hasKeyboardFocus && isEnabled ? 1.5 : 1
shape.stroke()
- let iconRect = NSRect(x: 12, y: (bounds.height - 16) / 2, width: 16, height: 16)
- NSGraphicsContext.current?.cgContext.beginTransparencyLayer(auxiliaryInfo: nil)
+ let iconRect = NSRect(x: 12, y: (bounds.height - markSize) / 2, width: markSize, height: markSize)
image?.draw(in: iconRect,
from: .zero, operation: .sourceOver, fraction: isEnabled ? 1 : 0.45,
respectFlipped: true, hints: [.interpolation: NSImageInterpolation.high])
- if monochrome {
- palette.accent.setFill()
- iconRect.fill(using: .sourceIn)
- }
- NSGraphicsContext.current?.cgContext.endTransparencyLayer()
let paragraph = NSMutableParagraphStyle()
paragraph.lineBreakMode = .byTruncatingTail
let attributes: [NSAttributedString.Key: Any] = [
@@ -1045,8 +1040,9 @@ private final class SwarmStoreButton: SwarmIconButton {
]
let text = title as NSString
let height = text.size(withAttributes: attributes).height
- text.draw(in: NSRect(x: 36, y: (bounds.height - height) / 2,
- width: max(0, bounds.width - 48), height: height), withAttributes: attributes)
+ let textX = 20 + markSize
+ text.draw(in: NSRect(x: textX, y: (bounds.height - height) / 2,
+ width: max(0, bounds.width - textX - 12), height: height), withAttributes: attributes)
}
}
@@ -1915,8 +1911,9 @@ private final class SwarmTabStrip: NSView {
devicesButton.title = "Devices"
devicesButton.font = navigationFont
devicesButton.palette = palette
- devicesButton.image = HarnessControlSymbols.image("circle")
- devicesButton.monochrome = true
+ devicesButton.markSize = 20
+ devicesButton.image = SwarmHistoryIcons().image(engine: "devices",
+ asset: "assets/devices/harness-mark.png", pointSize: devicesButton.markSize)
devicesButton.isEnabled = false
devicesButton.isHidden = true
devicesButton.focusRingType = .none
diff --git a/desktop/tool/swarm_titlebar_checks.swift b/desktop/tool/swarm_titlebar_checks.swift
index 53069f00f..8d3d4f661 100644
--- a/desktop/tool/swarm_titlebar_checks.swift
+++ b/desktop/tool/swarm_titlebar_checks.swift
@@ -1400,9 +1400,12 @@ private extension SwarmTabStrip {
guard let directory = ProcessInfo.processInfo.environment["HARNESS_TAB_CAPTURE_DIR"] else { return }
if let root = ProcessInfo.processInfo.environment["HARNESS_TITLEBAR_ASSETS"] {
let assets = URL(fileURLWithPath: root)
- storeButton.image = SwarmHistoryIcons(assetURL: { asset in
+ let icons = SwarmHistoryIcons(assetURL: { asset in
assets.appendingPathComponent(String(asset.dropFirst("assets/".count)))
- }).image(engine: "store", asset: "assets/store/polymath.png")
+ })
+ storeButton.image = icons.image(engine: "store", asset: "assets/store/polymath.png")
+ devicesButton.image = icons.image(engine: "devices",
+ asset: "assets/devices/harness-mark.png", pointSize: devicesButton.markSize)
}
let height = Int(bounds.height) + 40
let bitmap = NSBitmapImageRep(bitmapDataPlanes: nil, pixelsWide: Int(bounds.width), pixelsHigh: height,
diff --git a/docs/research/2026-10-01-devices/devices-icon-dark.png b/docs/research/2026-10-01-devices/devices-icon-dark.png
new file mode 100644
index 000000000..3ffed7733
Binary files /dev/null and b/docs/research/2026-10-01-devices/devices-icon-dark.png differ
diff --git a/docs/research/2026-10-01-devices/devices-icon-light.png b/docs/research/2026-10-01-devices/devices-icon-light.png
new file mode 100644
index 000000000..a674ec38f
Binary files /dev/null and b/docs/research/2026-10-01-devices/devices-icon-light.png differ