Open-source Revit MCP server: let Claude and other AI assistants read and edit BIM models, with human approval on every change.
Python aecai-agentsautodeskautomationbimclaudeifcmcpmcp-servermodel-context-protocolnavisworksrevitrevit-addinrevit-apirhino
feat(brand): tidy loose ends across ribbon, dialogs, panel and installer
Claude2e10bc01b0f1
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 139a5d1..a88cce0 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -2,6 +2,11 @@## Unreleased+- Ribbon: Workflows and Tools now use one large button plus stacked 16 px buttons, every button gets the brand tooltip image and F1 help, and icons redraw live when Revit's theme changes.+- Dialogs: semantic vector status glyphs replace emoji, link/panel errors use the branded dialog instead of native MessageBox/TaskDialog, and the dialog window carries the app icon.+- Panel: empty states and assistant messages carry icons, nav exposes `aria-current`.+- Add `assets/icon.ico`, `assets/logo-mark-512.png`, Inno Setup wizard images and `scripts/make_brand_assets.py`; the MCP registry icon now points at the square mark.+- Unify the side panel and popup dialogs on one design: the panel gets an icon rail (same icon language as the ribbon) with labels, a view-icon header and primary/secondary buttons; dialogs now use the panel's colour tokens, a dark header with a teal rule and the Pier mark, vector status glyphs instead of emoji, and the same card and button shapes.- Replace the Span brand mark with the Pier mark: an isometric model cube with a bridge arch through each face, on a dark app tile. Applied to `assets/logo.svg` (new `assets/logo-mark.svg`), the panel rail, the dialog header, the About/status brand card, the ribbon brand icon and the Power BI tool icon.- Redraw all ribbon icons in the Autodesk-style flat grammar: 32 px grid, charcoal outline, light teal fill, one teal accent and a state badge (green run/pass, red stop, amber waiting). Adds an About icon.diff --git a/assets/icon.ico b/assets/icon.iconew file mode 100644index 0000000..1516bd7Binary files /dev/null and b/assets/icon.ico differdiff --git a/assets/installer/wizard-large.bmp b/assets/installer/wizard-large.bmpnew file mode 100644index 0000000..423f2c0Binary files /dev/null and b/assets/installer/wizard-large.bmp differdiff --git a/assets/installer/wizard-small.bmp b/assets/installer/wizard-small.bmpnew file mode 100644index 0000000..3c3cf0fBinary files /dev/null and b/assets/installer/wizard-small.bmp differdiff --git a/assets/logo-mark-512.png b/assets/logo-mark-512.pngnew file mode 100644index 0000000..cc5767bBinary files /dev/null and b/assets/logo-mark-512.png differdiff --git a/docs/design/tokens.md b/docs/design/tokens.mdindex a6c06ae..d4f3699 100644--- a/docs/design/tokens.md+++ b/docs/design/tokens.md@@ -10,6 +10,15 @@ Status: **approved**.> in `IconGenerator.cs` use a 32 px grid, 2 px charcoal outline, light teal fill,> one `amb-brand` accent and a lower-right state badge. Sections 2 and 5 below> describe the earlier Span mark and are superseded where they conflict.++### One design across surfaces (current)++| Surface | Where | Rules |+|---|---|---|+| Ribbon | `Bridge/App.cs`, `UI/IconGenerator.cs` | Workflows = one large button + three stacked 16 px; Tools = three stacked. Every button has the brand tooltip image and F1 opens the docs. Icons redraw live on Revit's `ThemeChanged`. |+| Side panel | `panel/` | 64 px dark rail with 22 px icons + 10 px labels (same grammar as the ribbon), `aria-current` on the active view, view-icon tile in the header, empty states carry the view icon, assistant messages carry the mini mark. |+| Dialogs | `UI/ModernDialog.*` | Panel colour tokens in both themes, dark `#141B24` header with a 2 px accent rule, 10 px cards, 8 px buttons, teal primary. Status/stat glyphs are vector and keyed semantically: `success`, `stop`, `error`, `info`, `plug`, `chart`, `clock` (short plain text such as `MCP` renders as a chip). No emoji and no native `MessageBox`/`TaskDialog` in the Revit add-in. |+| Installer / registry | `assets/icon.ico`, `assets/installer/*`, `server.json` | Generated by `scripts/make_brand_assets.py` from the same geometry. |Scope: the brand mark, the color system, typography, and the ribbon icongrammar for `assets/logo.svg`, `packages/revit-bridge-addin/src/UI/IconGenerator.cs`,and `panel/styles.css`.diff --git a/packages/revit-bridge-addin/src/Bridge/AdditionalCommands.cs b/packages/revit-bridge-addin/src/Bridge/AdditionalCommands.csindex 0801f63..93fe018 100644--- a/packages/revit-bridge-addin/src/Bridge/AdditionalCommands.cs+++ b/packages/revit-bridge-addin/src/Bridge/AdditionalCommands.cs@@ -55,7 +55,12 @@ namespace RevitBridge.Bridge}message = error;- TaskDialog.Show(ProductInfo.ProductName, "The AEC Model Bridge panel could not be opened.\n\n" + error);+ var dialog = new ModernDialog();+ dialog.SetTitle(ProductInfo.ProductName, "Panel unavailable");+ dialog.AddStatusCard("error", "Panel", "The AEC Model Bridge panel could not be opened.");+ dialog.AddInfoSection("Details", error);+ dialog.SetActionButton("OK");+ dialog.ShowDialog();return Result.Failed;}}diff --git a/packages/revit-bridge-addin/src/Bridge/App.cs b/packages/revit-bridge-addin/src/Bridge/App.csindex d8b628e..d9a5e9d 100644--- a/packages/revit-bridge-addin/src/Bridge/App.cs+++ b/packages/revit-bridge-addin/src/Bridge/App.cs@@ -1,4 +1,5 @@using System;+using System.Collections.Generic;using System.IO;using System.Windows.Media.Imaging;using Autodesk.Revit.UI;@@ -136,11 +137,8 @@ namespace RevitBridge.Bridgestring reportsIconPath16 = Path.Combine(iconPath, "reports_16.png");string reportsIconPath32 = Path.Combine(iconPath, "reports_32.png");- // Generate theme-adaptive icons, then retain in-memory fallbacks if file I/O fails.- // Known, accepted limitation: ribbon icons reflect the Revit theme at session- // start only. The dockable panel re-themes live on ThemeChanged- // (BridgePanelProvider), but the ribbon needs a full Revit restart (not just a- // panel reload) to pick up a theme change.+ // Generate theme-adaptive icons (rewritten each session so they never go stale), then retain+ // in-memory fallbacks if file I/O fails. RefreshRibbonIcons re-skins the buttons when Revit's theme changes.try{IconGenerator.GenerateAllIcons(iconPath);@@ -184,7 +182,6 @@ namespace RevitBridge.BridgeconnectBtnData.LongDescription = "Starts AEC Model Bridge to enable MCP automation for Revit software.";connectBtnData.Image = connectIcon16;connectBtnData.LargeImage = connectIcon32;- connectBtnData.ToolTipImage = brandIcon32;// Disconnect ButtonPushButtonData disconnectBtnData = new PushButtonData(@@ -211,10 +208,10 @@ namespace RevitBridge.BridgestatusBtnData.LargeImage = statusIcon32;// Create stacked items for better layout- connectionPanel.AddItem(connectBtnData);- connectionPanel.AddItem(disconnectBtnData);+ Track(connectionPanel.AddItem(connectBtnData), IconGenerator.CreateConnectIcon);+ Track(connectionPanel.AddItem(disconnectBtnData), IconGenerator.CreateDisconnectIcon);connectionPanel.AddSeparator();- connectionPanel.AddItem(statusBtnData);+ Track(connectionPanel.AddItem(statusBtnData), IconGenerator.CreateStatusIcon);// === TOOLS PANEL ===@@ -300,20 +297,60 @@ namespace RevitBridge.BridgeaboutBtnData.Image = brandIcon16;aboutBtnData.LargeImage = brandIcon32;- workflowPanel.AddItem(panelBtnData);- workflowPanel.AddItem(healthBtnData);- workflowPanel.AddItem(pendingBtnData);- workflowPanel.AddSeparator();- workflowPanel.AddItem(reportsBtnData);+ // Every button: brand tooltip image, F1 opens the docs.+ foreach (var data in new[]+ {+ connectBtnData, disconnectBtnData, statusBtnData, panelBtnData, healthBtnData,+ pendingBtnData, reportsBtnData, settingsBtnData, helpBtnData, aboutBtnData+ })+ {+ data.ToolTipImage = brandIcon32;+ data.SetContextualHelp(new ContextualHelp(ContextualHelpType.Url, ProductInfo.DocumentationUrl));+ }- toolsPanel.AddItem(settingsBtnData);- toolsPanel.AddItem(helpBtnData);- toolsPanel.AddSeparator();- toolsPanel.AddItem(aboutBtnData);+ // Workflows: one large primary action, the secondary ones stacked at 16 px (Revit's own pattern).+ Track(workflowPanel.AddItem(panelBtnData), IconGenerator.CreatePanelIcon);+ var workflowStack = workflowPanel.AddStackedItems(healthBtnData, pendingBtnData, reportsBtnData);+ Track(workflowStack[0], IconGenerator.CreateHealthIcon);+ Track(workflowStack[1], IconGenerator.CreatePendingIcon);+ Track(workflowStack[2], IconGenerator.CreateReportsIcon);++ var toolsStack = toolsPanel.AddStackedItems(settingsBtnData, helpBtnData, aboutBtnData);+ Track(toolsStack[0], IconGenerator.CreateSettingsIcon);+ Track(toolsStack[1], IconGenerator.CreateHelpIcon);+ Track(toolsStack[2], IconGenerator.CreateBrandIcon);Log.Information("Modern ribbon interface created with icons");}+ private static readonly List<(PushButton Button, Func<int, BitmapSource> Factory)> ThemedButtons =+ new List<(PushButton, Func<int, BitmapSource>)>();++ private static void Track(RibbonItem? item, Func<int, BitmapSource> factory)+ {+ if (item is PushButton button)+ {+ ThemedButtons.Add((button, factory));+ }+ }++ /// <summary>Redraws every ribbon icon for the current Revit theme (called from ThemeChanged).</summary>+ internal static void RefreshRibbonIcons()+ {+ foreach (var (button, factory) in ThemedButtons)+ {+ try+ {+ button.Image = factory(16);+ button.LargeImage = factory(32);+ }+ catch (Exception ex)+ {+ Log.Debug(ex, "Could not refresh ribbon icon for {Button}", button.Name);+ }+ }+ }+private static BitmapSource LoadIcon(string path,Func<int, BitmapSource> fallbackFactory,diff --git a/packages/revit-bridge-addin/src/Bridge/BridgeCommands.cs b/packages/revit-bridge-addin/src/Bridge/BridgeCommands.csindex 1187a10..db56c30 100644--- a/packages/revit-bridge-addin/src/Bridge/BridgeCommands.cs+++ b/packages/revit-bridge-addin/src/Bridge/BridgeCommands.cs@@ -4,8 +4,6 @@ using Autodesk.Revit.DB;using Autodesk.Revit.UI;using RevitBridge;using RevitBridge.UI;-using MediaColor = System.Windows.Media.Color;-using MediaBrush = System.Windows.Media.SolidColorBrush;namespace RevitBridge.Bridge{@@ -35,10 +33,9 @@ namespace RevitBridge.Bridgedialog.SetTitle(title, "Success");dialog.AddStatusCard(- "✅",+ "success","Status",- message,- new MediaBrush(MediaColor.FromRgb(76, 175, 80))+ message);dialog.AddInfoSection("Server Address", App.Server != null ? $"http://127.0.0.1:{App.Server.Port}/" : "http://127.0.0.1:3000/");@@ -53,10 +50,9 @@ namespace RevitBridge.Bridgedialog.SetTitle(title, "Information");dialog.AddStatusCard(- "ℹ️",+ "info","Status",- message,- new MediaBrush(MediaColor.FromRgb(33, 150, 243))+ message);dialog.SetActionButton("OK");@@ -90,10 +86,9 @@ namespace RevitBridge.Bridgedialog.SetTitle("Server Disconnected", "Connection Closed");dialog.AddStatusCard(- "🛑",+ "stop","Status",- "The MCP Bridge Server has been stopped.",- new MediaBrush(MediaColor.FromRgb(244, 67, 54))+ "The MCP Bridge Server has been stopped.");dialog.AddInfoSection("Note", "You can restart the server anytime by clicking the Connect button.");@@ -108,10 +103,9 @@ namespace RevitBridge.Bridgedialog.SetTitle(title, "Information");dialog.AddStatusCard(- "ℹ️",+ "info","Status",- message,- new MediaBrush(MediaColor.FromRgb(33, 150, 243))+ message);dialog.SetActionButton("OK");@@ -145,19 +139,16 @@ namespace RevitBridge.Bridge);// Status indicator- string statusIcon = App.Server.IsRunning ? "✅" : "🛑";+ string statusIcon = App.Server.IsRunning ? "success" : "stop";string statusText = App.Server.IsRunning ? "Running" : "Stopped";- var statusColor = App.Server.IsRunning- ? new MediaBrush(MediaColor.FromRgb(76, 175, 80))- : new MediaBrush(MediaColor.FromRgb(244, 67, 54));- dialog.AddStatusCard(statusIcon, "Server Status", statusText, statusColor);+ dialog.AddStatusCard(statusIcon, "Server Status", statusText);// Statistics Griddialog.AddStatsGrid(- ("🔌", "Connections", App.Server.ActiveConnections.ToString()),- ("📊", "Total Requests", App.Server.TotalRequests.ToString()),- ("⏱️", "Uptime", $"{App.Server.UptimeSeconds:F1}s")+ ("plug", "Connections", App.Server.ActiveConnections.ToString()),+ ("chart", "Total Requests", App.Server.TotalRequests.ToString()),+ ("clock", "Uptime", $"{App.Server.UptimeSeconds:F1}s"));dialog.AddSeparator();@@ -202,10 +193,9 @@ namespace RevitBridge.Bridgedialog.SetTitle("Error", "Server Not Initialized");dialog.AddStatusCard(- "❌",+ "error","Error",- "Server not initialized properly. Please restart Revit.",- new MediaBrush(MediaColor.FromRgb(244, 67, 54))+ "Server not initialized properly. Please restart Revit.");dialog.SetActionButton("OK");diff --git a/packages/revit-bridge-addin/src/UI/BridgePanelProvider.cs b/packages/revit-bridge-addin/src/UI/BridgePanelProvider.csindex 5e1eb75..d19d62b 100644--- a/packages/revit-bridge-addin/src/UI/BridgePanelProvider.cs+++ b/packages/revit-bridge-addin/src/UI/BridgePanelProvider.cs@@ -36,7 +36,11 @@ namespace RevitBridge.UI{// Push a fresh host.status (which carries isDarkTheme) the moment the// user toggles Revit's theme, instead of waiting for their next click.- application.ThemeChanged += (_, _) => _panel?.OnRevitThemeChanged();+ application.ThemeChanged += (_, _) =>+ {+ _panel?.OnRevitThemeChanged();+ RevitBridge.Bridge.App.RefreshRibbonIcons();+ };}public static bool Show(UIApplication application, out string error, string view = "", string action = "")diff --git a/packages/revit-bridge-addin/src/UI/ModernDialog.xaml.cs b/packages/revit-bridge-addin/src/UI/ModernDialog.xaml.csindex 355d32c..5390e2f 100644--- a/packages/revit-bridge-addin/src/UI/ModernDialog.xaml.cs+++ b/packages/revit-bridge-addin/src/UI/ModernDialog.xaml.cs@@ -1,5 +1,6 @@using System;using System.Diagnostics;+using System.Linq;using System.Windows;using System.Windows.Controls;using System.Windows.Input;@@ -93,6 +94,7 @@ namespace RevitBridge.UIInitializeComponent();HeaderLogo.Source = BrandMark.CreateImageSource();+ Icon = BrandMark.CreateImageSource();// Keep dialogs usable on smaller displays and owned by Revit.var workArea = SystemParameters.WorkArea;@@ -138,14 +140,24 @@ namespace RevitBridge.UI// Glyphs are drawn in a 24 x 24 box: stroke only, round caps, like the ribbon and panel icons.private FrameworkElement CreateGlyphTile(string icon, double tile){+ // Semantic keys ("success", "stop", ...) are the contract; the emoji are accepted for old callers.string? data = null;Color kind = _accentColor;- if (icon.Contains("\u2705")) { data = "M5,12.5 L10,17.5 L19,7.5"; kind = _successColor; }- else if (icon.Contains("\U0001F6D1")) { data = "M7,7 H17 V17 H7 Z"; kind = _dangerColor; }- else if (icon.Contains("\u2139")) { data = "M12,10.5 V17 M12,6.6 V6.5"; }- else if (icon.Contains("\U0001F50C")) { data = "M8,4 V9 M16,4 V9 M6,9 H18 V12 A6,6 0 0 1 6,12 Z M12,18 V21"; }- else if (icon.Contains("\U0001F4CA")) { data = "M6,19 V12 M12,19 V6 M18,19 V10"; }- else if (icon.Contains("\u23F1")) { data = "M12,4 A8,8 0 1 0 12,20 A8,8 0 1 0 12,4 M12,8 V12.5 L15,14.5"; }+ string key = icon.Trim().ToLowerInvariant();+ if (key == "success" || icon.Contains("\u2705")) { data = "M5,12.5 L10,17.5 L19,7.5"; kind = _successColor; }+ else if (key == "stop" || icon.Contains("\U0001F6D1")) { data = "M7,7 H17 V17 H7 Z"; kind = _dangerColor; }+ else if (key == "error" || icon.Contains("\u274C")) { data = "M7,7 L17,17 M17,7 L7,17"; kind = _dangerColor; }+ else if (key == "info" || icon.Contains("\u2139")) { data = "M12,10.5 V17 M12,6.6 V6.5"; }+ else if (key == "plug" || icon.Contains("\U0001F50C")) { data = "M8,4 V9 M16,4 V9 M6,9 H18 V12 A6,6 0 0 1 6,12 Z M12,18 V21"; }+ else if (key == "chart" || icon.Contains("\U0001F4CA")) { data = "M6,19 V12 M12,19 V6 M18,19 V10"; }+ else if (key == "clock" || icon.Contains("\u23F1")) { data = "M12,4 A8,8 0 1 0 12,20 A8,8 0 1 0 12,4 M12,8 V12.5 L15,14.5"; }++ // Short plain text ("MCP", "API") renders as a chip; any other unknown symbol falls back to the info glyph.+ bool chip = data == null && icon.Length <= 6 && icon.All(ch => ch < 0x2000);+ if (data == null && !chip)+ {+ data = "M12,10.5 V17 M12,6.6 V6.5";+ }var border = new Border{@@ -190,8 +202,8 @@ namespace RevitBridge.UIreturn border;}- /// <param name="iconColor">Legacy; the tile colour is now derived from the icon so every dialog uses the same palette.</param>- public void AddStatusCard(string icon, string label, string value, Brush? iconColor = null)+ /// <param name="icon">Semantic key: success, stop, error, info, plug, chart, clock.</param>+ public void AddStatusCard(string icon, string label, string value){var card = new Border{@@ -431,16 +443,7 @@ namespace RevitBridge.UI};button.Click += (s, e) =>{- if (!ProductInfo.TryOpenUrl(link.url, out var error))- {- MessageBox.Show(- this,- $"Could not open the link.\n\n{link.url}\n\n{error}",- ProductInfo.ProductName,- MessageBoxButton.OK,- MessageBoxImage.Warning- );- }+ OpenLink(link.url);};panel.Children.Add(button);}@@ -544,20 +547,31 @@ namespace RevitBridge.UI};button.Click += (s, e) =>{- if (!ProductInfo.TryOpenUrl(url, out var error))- {- MessageBox.Show(- this,- $"Could not open the link.\n\n{url}\n\n{error}",- ProductInfo.ProductName,- MessageBoxButton.OK,- MessageBoxImage.Warning- );- }+ OpenLink(url);};return button;}+ private void OpenLink(string url)+ {+ if (ProductInfo.TryOpenUrl(url, out var error))+ {+ return;+ }++ var notice = new ModernDialog { Owner = this };+ notice.SetTitle(ProductInfo.ProductName, "Could not open the link");+ notice.AddStatusCard("error", "Link", "Your system could not open this address.");+ notice.AddInfoSection("Address", url);+ if (!string.IsNullOrWhiteSpace(error))+ {+ notice.AddInfoSection("Details", error);+ }++ notice.SetActionButton("OK");+ notice.ShowDialog();+ }+public void SetActionButton(string text, Action? action = null){ActionButton.Content = text;diff --git a/panel/app.js b/panel/app.jsindex 28f5b20..59677cb 100644--- a/panel/app.js+++ b/panel/app.js@@ -90,7 +90,13 @@ function modelActionsBlocked() {function setView(viewName) {document.querySelectorAll(".nav").forEach((button) => {- button.classList.toggle("is-active", button.dataset.view === viewName);+ const active = button.dataset.view === viewName;+ button.classList.toggle("is-active", active);+ if (active) {+ button.setAttribute("aria-current", "page");+ } else {+ button.removeAttribute("aria-current");+ }});document.querySelectorAll(".view").forEach((view) => {view.classList.toggle("is-active", view.id === `view-${viewName}`);@@ -191,7 +197,7 @@ function renderChat() {function appendMessage(role, text) {const item = document.createElement("article");item.className = `message ${role === "user" ? "user" : "assistant"}`;- item.innerHTML = `<div class="meta">${role === "user" ? "You" : "AMB"}</div><div>${escapeHtml(text)}</div>`;+ item.innerHTML = `<div class="meta">${role === "user" ? "You" : '<svg class="mini-mark" width="14" height="14" aria-hidden="true"><use href="#brand-mark"/></svg> AMB'}</div><div>${escapeHtml(text)}</div>`;chatFeed.appendChild(item);chatFeed.scrollTop = chatFeed.scrollHeight;return item;@@ -310,7 +316,11 @@ function renderLog() {function renderEmpty(container, heading, detail) {const item = document.createElement("article");item.className = "empty";- item.innerHTML = `<strong>${escapeHtml(heading)}</strong><p>${escapeHtml(detail)}</p>`;+ const iconView = { "plan-list": "plans", "finding-list": "findings", "report-list": "reports", "run-log": "log" }[container.id];+ const icon = iconView+ ? `<span class="empty-tile" aria-hidden="true"><svg class="ico" viewBox="0 0 32 32"><use href="#nav-${iconView}"/></svg></span>`+ : "";+ item.innerHTML = `${icon}<strong>${escapeHtml(heading)}</strong><p>${escapeHtml(detail)}</p>`;container.appendChild(item);}diff --git a/panel/index.html b/panel/index.htmlindex fe76579..4fff0d6 100644--- a/panel/index.html+++ b/panel/index.html@@ -9,6 +9,17 @@<body><svg width="0" height="0" style="position:absolute" aria-hidden="true" focusable="false"><defs>+ <symbol id="brand-mark" viewBox="0 0 96 96">+ <rect width="96" height="96" rx="20" fill="#111923"/>+ <g stroke="#111923" stroke-width="2.5" stroke-linejoin="round">+ <polygon fill="#1CB5CA" points="48,16 76,32 48,48 20,32"/>+ <polygon fill="#FFFFFF" points="20,32 48,48 48,80 20,64"/>+ <polygon fill="#AEBCCB" points="48,48 76,32 76,64 48,80"/>+ </g>+ <path fill="#111923" transform="matrix(28,16,0,32,20,32)" d="M0.24,1.02 V0.66 A0.26,0.26 0 0 1 0.76,0.66 V1.02 Z"/>+ <path fill="#111923" transform="matrix(28,-16,0,32,48,48)" d="M0.24,1.02 V0.66 A0.26,0.26 0 0 1 0.76,0.66 V1.02 Z"/>+ <rect x="0.5" y="0.5" width="95" height="95" rx="19.5" fill="none" stroke="rgba(255,255,255,0.16)"/>+ </symbol><symbol id="nav-chat" viewBox="0 0 32 32"><path class="o f" d="M5 5h22a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H15l-6 5v-5H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2z"/><path class="a" d="M9 11h14M9 16h8"/>@@ -46,19 +57,9 @@<aside class="rail" aria-label="Primary"><div class="brand" title="AEC Model Bridge" aria-label="AEC Model Bridge">- <svg class="brand-mark" viewBox="0 0 96 96" width="36" height="36" aria-hidden="true">- <rect width="96" height="96" rx="20" fill="#111923"/>- <g stroke="#111923" stroke-width="2.5" stroke-linejoin="round">- <polygon fill="#1CB5CA" points="48,16 76,32 48,48 20,32"/>- <polygon fill="#FFFFFF" points="20,32 48,48 48,80 20,64"/>- <polygon fill="#AEBCCB" points="48,48 76,32 76,64 48,80"/>- </g>- <path fill="#111923" transform="matrix(28,16,0,32,20,32)" d="M0.24,1.02 V0.66 A0.26,0.26 0 0 1 0.76,0.66 V1.02 Z"/>- <path fill="#111923" transform="matrix(28,-16,0,32,48,48)" d="M0.24,1.02 V0.66 A0.26,0.26 0 0 1 0.76,0.66 V1.02 Z"/>- <rect x="0.5" y="0.5" width="95" height="95" rx="19.5" fill="none" stroke="rgba(255,255,255,0.16)"/>- </svg>+ <svg class="brand-mark" width="36" height="36" aria-hidden="true"><use href="#brand-mark"/></svg></div>- <button class="nav is-active" type="button" data-view="chat" title="Chat" aria-label="Chat">+ <button class="nav is-active" aria-current="page" type="button" data-view="chat" title="Chat" aria-label="Chat"><svg class="ico" viewBox="0 0 32 32" aria-hidden="true"><use href="#nav-chat"/></svg><span class="nav-label">Chat</span></button>@@ -93,7 +94,7 @@<p id="view-subtitle">AEC Model Bridge</p></div></div>- <div class="status-pill" id="host-status">+ <div class="status-pill" role="status" id="host-status"><span class="dot"></span><span>Host pending</span></div>diff --git a/panel/styles.css b/panel/styles.cssindex 39de62f..7a8af69 100644--- a/panel/styles.css+++ b/panel/styles.css@@ -578,3 +578,25 @@ p {color: var(--amb-ink-muted);font-size: 12px;}++.empty-tile {+ display: inline-grid;+ place-items: center;+ width: 44px;+ height: 44px;+ margin-bottom: 10px;+ border-radius: 12px;+ background: var(--amb-brand-wash);+ color: var(--amb-ink);+}++.empty-tile .ico {+ width: 24px;+ height: 24px;+}++.mini-mark {+ display: inline-block;+ vertical-align: -3px;+ margin-right: 4px;+}diff --git a/scripts/installer/AECModelBridge.iss b/scripts/installer/AECModelBridge.issindex 578c564..fda09ef 100644--- a/scripts/installer/AECModelBridge.iss+++ b/scripts/installer/AECModelBridge.iss@@ -17,8 +17,14 @@ SolidCompression=yesArchitecturesAllowed=x64compatibleArchitecturesInstallIn64BitMode=x64compatiblePrivilegesRequired=admin+SetupIconFile=..\..\assets\icon.ico+UninstallDisplayIcon={app}\assets\icon.ico+WizardImageFile=..\..\assets\installer\wizard-large.bmp+WizardSmallImageFile=..\..\assets\installer\wizard-small.bmp+WizardStyle=modern[Files]+Source: "..\..\assets\icon.ico"; DestDir: "{app}\assets"; Flags: ignoreversionSource: "..\..\dist\AECModelBridge\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs[Run]diff --git a/scripts/make_brand_assets.py b/scripts/make_brand_assets.pynew file mode 100644index 0000000..dcd5f0a--- /dev/null+++ b/scripts/make_brand_assets.py@@ -0,0 +1,70 @@+"""Regenerate raster brand assets from the Pier mark geometry (see assets/logo-mark.svg).++Usage: python scripts/make_brand_assets.py (needs Pillow)++Writes assets/icon.ico, assets/logo-mark-512.png and the Inno Setup wizard bitmaps in+assets/installer/. The geometry mirrors assets/logo-mark.svg and UI/BrandMark.cs.+"""+import math+from pathlib import Path++from PIL import Image, ImageDraw++ROOT = Path(__file__).resolve().parent.parent+TILE = (0x11, 0x19, 0x23, 255)+TOP, LEFT, RIGHT = (0x1C, 0xB5, 0xCA, 255), (255, 255, 255, 255), (0xAE, 0xBC, 0xCB, 255)+++def arch(m, k):+ a, b, c, d, e, f = m+ pts = [(0.24, 1.02), (0.24, 0.66)]+ for i in range(1, 32):+ t = math.pi * (1 - i / 32)+ pts.append((0.5 + 0.26 * math.cos(t), 0.66 - 0.26 * math.sin(t)))+ pts += [(0.76, 0.66), (0.76, 1.02)]+ return [((a * u + c * v + e) * k, (b * u + d * v + f) * k) for u, v in pts]+++def mark(size, arches=True, rounded=True):+ """Render the 96-unit tile + mark at `size` px (8x supersampled)."""+ s = 8+ n = size * s+ k = n / 96+ im = Image.new("RGBA", (n, n), (0, 0, 0, 0))+ d = ImageDraw.Draw(im)+ radius = (20 if arches else 14) * k if rounded else 0+ d.rounded_rectangle([0, 0, n - 1, n - 1], radius=radius, fill=TILE)+ p = lambda pts: [(x * k, y * k) for x, y in pts]+ top = [(48, 16), (76, 32), (48, 48), (20, 32)]+ left = [(20, 32), (48, 48), (48, 80), (20, 64)]+ right = [(48, 48), (76, 32), (76, 64), (48, 80)]+ for poly, col in ((top, TOP), (left, LEFT), (right, RIGHT)):+ d.polygon(p(poly), fill=col)+ d.line(p(poly + [poly[0]]), fill=TILE, width=max(1, int(2.5 * k)), joint="curve")+ if arches:+ d.polygon(arch((28, 16, 0, 32, 20, 32), k), fill=TILE)+ d.polygon(arch((28, -16, 0, 32, 48, 48), k), fill=TILE)+ return im.resize((size, size), Image.LANCZOS)+++def main():+ assets = ROOT / "assets"+ (assets / "installer").mkdir(parents=True, exist_ok=True)++ sizes = [16, 24, 32, 48, 64, 128, 256]+ frames = [mark(sz, arches=sz > 20) for sz in sizes]+ frames[-1].save(assets / "icon.ico", sizes=[(sz, sz) for sz in sizes], append_images=frames[:-1])+ mark(512).save(assets / "logo-mark-512.png")++ # Inno Setup wizard images: 164x314 side panel, 55x58 corner icon.+ big = Image.new("RGB", (164, 314), TILE[:3])+ big.paste(mark(104), (30, 40), mark(104))+ ImageDraw.Draw(big).rectangle([0, 310, 163, 313], fill=(0x1C, 0xB5, 0xCA))+ big.save(assets / "installer" / "wizard-large.bmp")+ small = Image.new("RGB", (55, 58), (255, 255, 255))+ small.paste(mark(44), (6, 7), mark(44))+ small.save(assets / "installer" / "wizard-small.bmp")+++if __name__ == "__main__":+ main()diff --git a/server.json b/server.jsonindex 8a9f33a..bcfa60b 100644--- a/server.json+++ b/server.json@@ -6,7 +6,7 @@"websiteUrl": "https://github.com/Sam-AEC/aec-model-bridge","icons": [{- "src": "https://raw.githubusercontent.com/Sam-AEC/aec-model-bridge/main/assets/logo.svg",+ "src": "https://raw.githubusercontent.com/Sam-AEC/aec-model-bridge/main/assets/logo-mark.svg","mimeType": "image/svg+xml","sizes": ["any"