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): Pier mark and Autodesk-style ribbon icons
Claude2e787bc38ade
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 67bc236..03f9f69 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -1,5 +1,10 @@# Changelog+## Unreleased++- 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.+## 1.2.1 - 2026-09-23- Add the Plugin Module Registry with discovery, I/O verification, and validate/on_result hooks.diff --git a/assets/logo-mark.svg b/assets/logo-mark.svgnew file mode 100644index 0000000..b7e834b--- /dev/null+++ b/assets/logo-mark.svg@@ -0,0 +1,10 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 96" role="img" aria-label="AEC Model Bridge">+ <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"/>+</svg>diff --git a/assets/logo.svg b/assets/logo.svgindex a3b4abf..4721593 100644--- a/assets/logo.svg+++ b/assets/logo.svg@@ -1,57 +1,26 @@-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 560 168">+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 560 168" role="img" aria-label="AEC Model Bridge"><style>- /* Mark colors — light theme */- .amb-logo-svg .mk-wash-ink { fill: rgba(24,32,44,0.12); }- .amb-logo-svg .mk-wash-brand { fill: rgba(0,145,167,0.20); }- .amb-logo-svg .mk-ink { stroke: #18202C; fill: none; }- .amb-logo-svg .mk-brand { stroke: #0091A7; fill: none; }- .amb-logo-svg .mk-stroke { stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }-- /* Wordmark text — light theme */- .amb-logo-svg .mk-text-main { font-family: "Segoe UI", system-ui, sans-serif; font-weight: 600; font-size: 46; letter-spacing: 0; fill: #18202C; }- .amb-logo-svg .mk-text-sub { font-family: "Segoe UI", system-ui, sans-serif; font-weight: 400; font-size: 19; letter-spacing: 0.2; fill: #5B6676; }-- /* Dark theme overrides */+ .amb-logo-svg .t-main { font-family: "Segoe UI", system-ui, sans-serif; font-weight: 700; font-size: 46px; letter-spacing: -1px; fill: #18202C; }+ .amb-logo-svg .t-aec { fill: #0091A7; }+ .amb-logo-svg .t-sub { font-family: "Segoe UI", system-ui, sans-serif; font-weight: 400; font-size: 19px; letter-spacing: 0.2px; fill: #5B6676; }@media (prefers-color-scheme: dark) {- .amb-logo-svg .mk-wash-ink { fill: rgba(233,238,245,0.16); }- .amb-logo-svg .mk-wash-brand { fill: rgba(63,195,214,0.20); }- .amb-logo-svg .mk-ink { stroke: #E9EEF5; }- .amb-logo-svg .mk-brand { stroke: #3FC3D6; }- .amb-logo-svg .mk-text-main { fill: #E9EEF5; }- .amb-logo-svg .mk-text-sub { fill: #9BA8B9; }+ .amb-logo-svg .t-main { fill: #E9EEF5; }+ .amb-logo-svg .t-aec { fill: #3FC3D6; }+ .amb-logo-svg .t-sub { fill: #9BA8B9; }}</style>-<g class="amb-logo-svg">- <!-- Mark: 120×120 at (24, 24) --><g transform="translate(24, 24)">- <!-- 1. Apex wash -->- <polygon class="mk-wash-brand" points="60,10.2 80.4,51.6 39.6,51.6"/>-- <!-- 2. Node wash, left -->- <circle class="mk-wash-ink" cx="22.8" cy="87" r="16.8"/>-- <!-- 3. Node wash, right -->- <circle class="mk-wash-ink" cx="97.2" cy="87" r="16.8"/>-- <!-- 4-7. Stroked elements -->- <g class="mk-stroke">- <!-- 4. Deck -->- <line class="mk-ink" x1="39.6" y1="87" x2="80.4" y2="87"/>-- <!-- 5. Node, left -->- <circle class="mk-ink" cx="22.8" cy="87" r="16.8"/>-- <!-- 6. Node, right -->- <circle class="mk-ink" cx="97.2" cy="87" r="16.8"/>-- <!-- 7. Apex -->- <polygon class="mk-brand" points="60,10.2 80.4,51.6 39.6,51.6"/>- </g>+ <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"/></g>-- <!-- Wordmark text -->- <text class="mk-text-main" x="188" y="88" dominant-baseline="alphabetic">AEC Model Bridge</text>- <text class="mk-text-sub" x="190" y="120" dominant-baseline="alphabetic">Model context for Revit</text>+ <text class="t-main" x="164" y="88"><tspan class="t-aec">AEC</tspan> Model Bridge</text>+ <text class="t-sub" x="166" y="120">Model context for Revit</text></g></svg>diff --git a/docs/design/tokens.md b/docs/design/tokens.mdindex 9c56d3f..a6c06ae 100644--- a/docs/design/tokens.md+++ b/docs/design/tokens.md@@ -1,6 +1,15 @@# AEC Model Bridge — design tokensStatus: **approved**.++> **Update — Pier mark and Autodesk-style ribbon icons.** The brand mark is now+> the "Pier" (isometric model cube with a bridge arch through each side face, on+> a `#111923` tile; faces `#1CB5CA` / `#FFFFFF` / `#AEBCCB`) in+> `assets/logo-mark.svg`, `assets/logo.svg`, `panel/index.html`,+> `UI/BrandMark.cs` (dialog header, brand card, ribbon brand icon). Ribbon icons+> 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.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/powerbi-bridge-tool/AECModelBridge.pbitool.json b/packages/powerbi-bridge-tool/AECModelBridge.pbitool.jsonindex 77669f2..6b1fe91 100644--- a/packages/powerbi-bridge-tool/AECModelBridge.pbitool.json+++ b/packages/powerbi-bridge-tool/AECModelBridge.pbitool.json@@ -3,5 +3,5 @@"description": "Connects Power BI to the AEC Model Bridge Hub","path": "%PBITOOL_PATH%\\PowerBIBridge.exe","arguments": "\"%server%\" \"%database%\"",- "iconData": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEwAACxMBAJqcGAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAAydEVYdFRpdGxlAENyZWF0aXZlIENvbW1vbnMgQXR0cmlidXRpb24gMy4wIFVucG9ydGVkIExpY2Vuc2Xp9yqAAAAAElFTkSuQmCC"+ "iconData": "data:image/png;base64,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"}diff --git a/packages/revit-bridge-addin/src/UI/BrandMark.cs b/packages/revit-bridge-addin/src/UI/BrandMark.csnew file mode 100644index 0000000..dbc7f3e--- /dev/null+++ b/packages/revit-bridge-addin/src/UI/BrandMark.cs@@ -0,0 +1,78 @@+using System.Windows;+using System.Windows.Controls;+using System.Windows.Media;++namespace RevitBridge.UI+{+ /// <summary>+ /// The AEC Model Bridge app mark: an isometric model cube with a bridge arch cut+ /// through each side face, on a dark tile. One drawing, shared by the ribbon brand+ /// icon, the dialog header and the About/brand cards. Mirrors assets/logo-mark.svg+ /// (96 x 96 design space). Keep in sync with docs/design/tokens.md.+ /// </summary>+ internal static class BrandMark+ {+ private const string TopFace = "M48,16 L76,32 L48,48 L20,32 Z";+ private const string LeftFace = "M20,32 L48,48 L48,80 L20,64 Z";+ private const string RightFace = "M48,48 L76,32 L76,64 L48,80 Z";+ // Unit arch, mapped onto each side face by an affine matrix.+ private const string Arch = "M0.24,1.02 L0.24,0.66 A0.26,0.26 0 0 1 0.76,0.66 L0.76,1.02 Z";++ private static readonly Color TileColor = Color.FromRgb(0x11, 0x19, 0x23);+ private static readonly Color TopColor = Color.FromRgb(0x1C, 0xB5, 0xCA);+ private static readonly Color LeftColor = Color.FromRgb(0xFF, 0xFF, 0xFF);+ private static readonly Color RightColor = Color.FromRgb(0xAE, 0xBC, 0xCB);++ /// <summary>Draws the tile and mark into a 0..96 design space.</summary>+ public static void Draw(DrawingContext context, bool arches = true)+ {+ var tile = new SolidColorBrush(TileColor);+ var seam = new Pen(tile, 2.5) { LineJoin = PenLineJoin.Round };++ context.DrawRoundedRectangle(tile, null, new Rect(0, 0, 96, 96), arches ? 20 : 14, arches ? 20 : 14);+ context.DrawGeometry(new SolidColorBrush(TopColor), seam, Geometry.Parse(TopFace));+ context.DrawGeometry(new SolidColorBrush(LeftColor), seam, Geometry.Parse(LeftFace));+ context.DrawGeometry(new SolidColorBrush(RightColor), seam, Geometry.Parse(RightFace));++ if (!arches)+ {+ return;+ }++ var arch = Geometry.Parse(Arch);+ context.PushTransform(new MatrixTransform(28, 16, 0, 32, 20, 32));+ context.DrawGeometry(tile, null, arch);+ context.Pop();+ context.PushTransform(new MatrixTransform(28, -16, 0, 32, 48, 48));+ context.DrawGeometry(tile, null, arch);+ context.Pop();+ }++ public static ImageSource CreateImageSource(bool arches = true)+ {+ var group = new DrawingGroup();+ using (var context = group.Open())+ {+ Draw(context, arches);+ }++ var image = new DrawingImage(group);+ image.Freeze();+ return image;+ }++ public static Image CreateImage(double size)+ {+ return new Image+ {+ Source = CreateImageSource(),+ Width = size,+ Height = size,+ Stretch = Stretch.Uniform,+ VerticalAlignment = VerticalAlignment.Center,+ HorizontalAlignment = HorizontalAlignment.Center,+ SnapsToDevicePixels = true+ };+ }+ }+}diff --git a/packages/revit-bridge-addin/src/UI/IconGenerator.cs b/packages/revit-bridge-addin/src/UI/IconGenerator.csindex 2444fd0..e87c5ba 100644--- a/packages/revit-bridge-addin/src/UI/IconGenerator.cs+++ b/packages/revit-bridge-addin/src/UI/IconGenerator.cs@@ -12,18 +12,6 @@ namespace RevitBridge.UIpublic static class IconGenerator{// keep in sync with docs/design/tokens.md- private static double StrokeWidth(int size, double scale)- {- if (size <= 16)- {- return scale >= 0.075 ? 2.0 : 1.5;- }-- return Math.Max(- 1.5,- Math.Round(size * scale * 2, MidpointRounding.AwayFromZero) / 2);- }-internal static bool IsDarkTheme(){try@@ -38,340 +26,227 @@ namespace RevitBridge.UI}}- /// <summary>- /// Creates a Connect icon (the Span mark, monochrome in the success accent)- /// </summary>- public static BitmapSource CreateConnectIcon(int size = 32)+ // ---- Palette (32 px design grid; see docs/design/tokens.md section 5) ----+ private sealed class Palette{- var visual = new DrawingVisual();- using (var context = visual.RenderOpen())- {- bool isDark = IsDarkTheme();- var successRgb = isDark ? Color.FromRgb(63, 203, 139) : Color.FromRgb(18, 122, 75); // amb-success- var washBrush = new SolidColorBrush(Color.FromArgb(51, successRgb.R, successRgb.G, successRgb.B));- var strokeBrush = new SolidColorBrush(successRgb);- var pen = new Pen(strokeBrush, StrokeWidth(size, 0.06)) { StartLineCap = PenLineCap.Round, EndLineCap = PenLineCap.Round, LineJoin = PenLineJoin.Round };+ public Brush Ink, Fill, Surface, Face, Accent, Mid, Green, Red, Amber, Ring, OnBadge;+ }- // Node, left (wash + stroke)- context.DrawEllipse(washBrush, pen, new Point(size * 0.190, size * 0.725), size * 0.140, size * 0.140);- // Node, right (wash + stroke)- context.DrawEllipse(washBrush, pen, new Point(size * 0.810, size * 0.725), size * 0.140, size * 0.140);+ private static Brush Hex(string hex)+ {+ var brush = new SolidColorBrush((Color)ColorConverter.ConvertFromString(hex));+ brush.Freeze();+ return brush;+ }- // Deck- context.DrawLine(pen, new Point(size * 0.330, size * 0.725), new Point(size * 0.670, size * 0.725));+ private static Palette GetPalette(bool dark)+ {+ return dark+ ? new Palette+ {+ Ink = Hex("#E9EEF5"), Fill = Hex("#1F4A55"), Surface = Hex("#252E3A"), Face = Hex("#323D4B"),+ Accent = Hex("#3FC3D6"), Mid = Hex("#7B8794"), Green = Hex("#3FCB8B"), Red = Hex("#F0796B"),+ Amber = Hex("#F2A63C"), Ring = Hex("#2B323B"), OnBadge = Hex("#0B1118")+ }+ : new Palette+ {+ Ink = Hex("#2F3A47"), Fill = Hex("#CFEAF0"), Surface = Hex("#FFFFFF"), Face = Hex("#DDE3E9"),+ Accent = Hex("#0091A7"), Mid = Hex("#9AA6B2"), Green = Hex("#2E9E4F"), Red = Hex("#D64535"),+ Amber = Hex("#E39B1B"), Ring = Hex("#FFFFFF"), OnBadge = Hex("#FFFFFF")+ };+ }- // Apex (wash + stroke)- var apexGeometry = new PathGeometry();- var apexFigure = new PathFigure { StartPoint = new Point(size * 0.500, size * 0.085), IsClosed = true };- apexFigure.Segments.Add(new LineSegment(new Point(size * 0.670, size * 0.430), true));- apexFigure.Segments.Add(new LineSegment(new Point(size * 0.330, size * 0.430), true));- apexGeometry.Figures.Add(apexFigure);- context.DrawGeometry(washBrush, pen, apexGeometry);- }+ private static Pen P(Brush brush, double width, bool round = true)+ {+ return new Pen(brush, width)+ {+ StartLineCap = round ? PenLineCap.Round : PenLineCap.Flat,+ EndLineCap = round ? PenLineCap.Round : PenLineCap.Flat,+ LineJoin = PenLineJoin.Round+ };+ }- return RenderVisual(visual, size, size);+ private static void Shape(DrawingContext c, Brush fill, Pen pen, string path)+ {+ c.DrawGeometry(fill, pen, Geometry.Parse(path));}- /// <summary>- /// Creates a Disconnect icon (the Span mark, monochrome in the danger accent, with a single cancel slash)- /// </summary>- public static BitmapSource CreateDisconnectIcon(int size = 32)+ /// <summary>Draws in a 32 x 32 grid scaled to the requested pixel size.</summary>+ private static BitmapSource Render32(int size, Action<DrawingContext, Palette> draw){var visual = new DrawingVisual();using (var context = visual.RenderOpen()){- bool isDark = IsDarkTheme();- var dangerRgb = isDark ? Color.FromRgb(240, 121, 107) : Color.FromRgb(194, 59, 46); // amb-danger- var washBrush = new SolidColorBrush(Color.FromArgb(51, dangerRgb.R, dangerRgb.G, dangerRgb.B));- var strokeBrush = new SolidColorBrush(dangerRgb);- var pen = new Pen(strokeBrush, StrokeWidth(size, 0.06)) { StartLineCap = PenLineCap.Round, EndLineCap = PenLineCap.Round, LineJoin = PenLineJoin.Round };-- // Node, left (wash + stroke)- context.DrawEllipse(washBrush, pen, new Point(size * 0.190, size * 0.725), size * 0.140, size * 0.140);- // Node, right (wash + stroke)- context.DrawEllipse(washBrush, pen, new Point(size * 0.810, size * 0.725), size * 0.140, size * 0.140);-- // Deck- context.DrawLine(pen, new Point(size * 0.330, size * 0.725), new Point(size * 0.670, size * 0.725));-- // Apex (wash + stroke)- var apexGeometry = new PathGeometry();- var apexFigure = new PathFigure { StartPoint = new Point(size * 0.500, size * 0.085), IsClosed = true };- apexFigure.Segments.Add(new LineSegment(new Point(size * 0.670, size * 0.430), true));- apexFigure.Segments.Add(new LineSegment(new Point(size * 0.330, size * 0.430), true));- apexGeometry.Figures.Add(apexFigure);- context.DrawGeometry(washBrush, pen, apexGeometry);-- // Cancel slash — a single diagonal, not a cross- var slashPen = new Pen(strokeBrush, StrokeWidth(size, 0.08)) { StartLineCap = PenLineCap.Round, EndLineCap = PenLineCap.Round };- context.DrawLine(slashPen, new Point(size * 0.300, size * 0.290), new Point(size * 0.700, size * 0.690));+ double scale = size / 32.0;+ context.PushTransform(new ScaleTransform(scale, scale));+ draw(context, GetPalette(IsDarkTheme()));+ context.Pop();}return RenderVisual(visual, size, size);}- /// <summary>- /// Creates a Status icon (sleek dashboard grid with active blue communication indicator)- /// </summary>- public static BitmapSource CreateStatusIcon(int size = 32)+ /// <summary>State badge, lower right: 14 px circle with a ring.</summary>+ private static void Badge(DrawingContext c, Palette p, Brush color){- var visual = new DrawingVisual();- using (var context = visual.RenderOpen())- {- bool isDark = IsDarkTheme();- var primaryBrush = isDark ? new SolidColorBrush(Color.FromRgb(233, 238, 245)) : new SolidColorBrush(Color.FromRgb(24, 32, 44)); // amb-ink- var infoRgb = isDark ? Color.FromRgb(127, 166, 245) : Color.FromRgb(36, 87, 197); // amb-info- var accentBrush = new SolidColorBrush(infoRgb);- var softFillBrush = new SolidColorBrush(Color.FromArgb(51, infoRgb.R, infoRgb.G, infoRgb.B));- var pen = new Pen(primaryBrush, StrokeWidth(size, 0.06)) { StartLineCap = PenLineCap.Round, EndLineCap = PenLineCap.Round, LineJoin = PenLineJoin.Round };- var accentPen = new Pen(accentBrush, StrokeWidth(size, 0.06)) { StartLineCap = PenLineCap.Round, EndLineCap = PenLineCap.Round };+ c.DrawEllipse(color, P(p.Ring, 1.5), new Point(23, 23), 7, 7);+ }- // Outer dashboard window- context.DrawRoundedRectangle(null, pen, new Rect(size * 0.07, size * 0.07, size * 0.86, size * 0.86), size * 0.09, size * 0.09);+ // ---- Ribbon icons ----- // Grid lines inside status card- context.DrawLine(pen, new Point(size * 0.19, size * 0.32), new Point(size * 0.58, size * 0.32));- context.DrawLine(pen, new Point(size * 0.19, size * 0.53), new Point(size * 0.50, size * 0.53));+ /// <summary>Connect: two model blocks joined by the accent link, green "run" badge.</summary>+ public static BitmapSource CreateConnectIcon(int size = 32)+ {+ return Render32(size, (c, p) =>+ {+ var ink = P(p.Ink, 2);+ Shape(c, p.Fill, ink, "M4.5,5 H10.5 A1.5,1.5 0 0 1 12,6.5 V14.5 A1.5,1.5 0 0 1 10.5,16 H4.5 A1.5,1.5 0 0 1 3,14.5 V6.5 A1.5,1.5 0 0 1 4.5,5 Z");+ Shape(c, p.Fill, ink, "M21.5,5 H27.5 A1.5,1.5 0 0 1 29,6.5 V14.5 A1.5,1.5 0 0 1 27.5,16 H21.5 A1.5,1.5 0 0 1 20,14.5 V6.5 A1.5,1.5 0 0 1 21.5,5 Z");+ c.DrawLine(P(p.Accent, 3), new Point(12, 10.5), new Point(20, 10.5));+ Badge(c, p, p.Green);+ Shape(c, p.OnBadge, null, "M21.2,19.8 L26.2,23 L21.2,26.2 Z");+ });+ }- // Glowing blue pulse/indicator dot- context.DrawEllipse(softFillBrush, accentPen, new Point(size * 0.73, size * 0.72), size * 0.14, size * 0.14);- context.DrawEllipse(accentBrush, null, new Point(size * 0.73, size * 0.72), size * 0.055, size * 0.055);- }+ /// <summary>Disconnect: the same blocks with a broken link and a red "stop" badge.</summary>+ public static BitmapSource CreateDisconnectIcon(int size = 32)+ {+ return Render32(size, (c, p) =>+ {+ var ink = P(p.Ink, 2);+ Shape(c, p.Face, ink, "M4.5,5 H10.5 A1.5,1.5 0 0 1 12,6.5 V14.5 A1.5,1.5 0 0 1 10.5,16 H4.5 A1.5,1.5 0 0 1 3,14.5 V6.5 A1.5,1.5 0 0 1 4.5,5 Z");+ Shape(c, p.Face, ink, "M21.5,5 H27.5 A1.5,1.5 0 0 1 29,6.5 V14.5 A1.5,1.5 0 0 1 27.5,16 H21.5 A1.5,1.5 0 0 1 20,14.5 V6.5 A1.5,1.5 0 0 1 21.5,5 Z");+ var link = P(p.Mid, 3);+ c.DrawLine(link, new Point(12, 10.5), new Point(14, 10.5));+ c.DrawLine(link, new Point(18, 10.5), new Point(20, 10.5));+ Badge(c, p, p.Red);+ c.DrawRoundedRectangle(p.OnBadge, null, new Rect(19.8, 19.8, 6.4, 6.4), 1, 1);+ });+ }- return RenderVisual(visual, size, size);+ /// <summary>Status: monitor with an accent pulse line.</summary>+ public static BitmapSource CreateStatusIcon(int size = 32)+ {+ return Render32(size, (c, p) =>+ {+ var ink = P(p.Ink, 2);+ c.DrawRoundedRectangle(p.Surface, ink, new Rect(3, 4, 26, 18), 2, 2);+ c.DrawLine(ink, new Point(16, 22), new Point(16, 27));+ c.DrawLine(ink, new Point(10, 27), new Point(22, 27));+ Shape(c, null, P(p.Accent, 2.4), "M6.5,14 H11.5 L14,8 L18,19 L20.5,14 H25.5");+ });}- /// <summary>- /// Creates a Settings icon (geometrical gear wheel)- /// </summary>+ /// <summary>Settings: gear with an accent hub.</summary>public static BitmapSource CreateSettingsIcon(int size = 32){- var visual = new DrawingVisual();- using (var context = visual.RenderOpen())+ return Render32(size, (c, p) =>{- bool isDark = IsDarkTheme();- var primaryBrush = isDark ? Brushes.White : new SolidColorBrush(Color.FromRgb(30, 41, 59));- var pen = new Pen(primaryBrush, StrokeWidth(size, 0.06)) { StartLineCap = PenLineCap.Round, EndLineCap = PenLineCap.Round, LineJoin = PenLineJoin.Round };-- double cX = size / 2.0;- double cY = size / 2.0;- double rOuter = size * 0.30;- double rInner = size * 0.12;-- // Center shaft circle- context.DrawEllipse(null, pen, new Point(cX, cY), rInner, rInner);-- // Gear teeth- int teeth = 6;- double toothHeight = size * 0.11;- for (int i = 0; i < teeth; i++)+ for (int i = 0; i < 4; i++){- double angle = (Math.PI * 2 * i) / teeth;- double cos = Math.Cos(angle);- double sin = Math.Sin(angle);-- Point pStart = new Point(cX + rOuter * cos, cY + rOuter * sin);- Point pEnd = new Point(cX + (rOuter + toothHeight) * cos, cY + (rOuter + toothHeight) * sin);-- var toothPen = new Pen(primaryBrush, StrokeWidth(size, 0.08)) { StartLineCap = PenLineCap.Round, EndLineCap = PenLineCap.Round };- context.DrawLine(toothPen, pStart, pEnd);+ c.PushTransform(new RotateTransform(i * 45, 16, 16));+ c.DrawRoundedRectangle(p.Ink, null, new Rect(14, 2.5, 4, 6), 1, 1);+ c.DrawRoundedRectangle(p.Ink, null, new Rect(14, 23.5, 4, 6), 1, 1);+ c.Pop();}- // Outer gear ring- context.DrawEllipse(null, pen, new Point(cX, cY), rOuter, rOuter);- }-- return RenderVisual(visual, size, size);+ c.DrawEllipse(p.Surface, P(p.Ink, 2), new Point(16, 16), 9, 9);+ c.DrawEllipse(p.Fill, P(p.Accent, 2.2), new Point(16, 16), 3.6, 3.6);+ });}- /// <summary>- /// Creates a Help icon (question mark inside a circular balloon)- /// </summary>+ /// <summary>Help: filled round with an accent question mark.</summary>public static BitmapSource CreateHelpIcon(int size = 32){- var visual = new DrawingVisual();- using (var context = visual.RenderOpen())+ return Render32(size, (c, p) =>{- bool isDark = IsDarkTheme();- var inkRgb = isDark ? Color.FromRgb(233, 238, 245) : Color.FromRgb(24, 32, 44); // amb-ink- var primaryBrush = new SolidColorBrush(inkRgb);- var softFillBrush = new SolidColorBrush(Color.FromArgb(isDark ? (byte)41 : (byte)31, inkRgb.R, inkRgb.G, inkRgb.B));- var pen = new Pen(primaryBrush, StrokeWidth(size, 0.06)) { StartLineCap = PenLineCap.Round, EndLineCap = PenLineCap.Round };-- // Balloon outline- context.DrawEllipse(softFillBrush, pen, new Point(size / 2.0, size / 2.0), size * 0.42, size * 0.42);-- // Question mark text drawing- var formattedText = new FormattedText(- "?",- System.Globalization.CultureInfo.InvariantCulture,- FlowDirection.LeftToRight,- new Typeface(new FontFamily("Segoe UI"), FontStyles.Normal, FontWeights.Bold, FontStretches.Normal),- size * 0.54,- primaryBrush,- 96);-- context.DrawText(formattedText, new Point(size * 0.35, size * 0.11));- }+ c.DrawEllipse(p.Fill, P(p.Ink, 2), new Point(16, 16), 12.5, 12.5);+ Shape(c, null, P(p.Accent, 2.6), "M12.4,12.6 A3.7,3.7 0 1 1 17.8,15.9 C16.5,16.6 16,17.3 16,18.6");+ c.DrawEllipse(p.Accent, null, new Point(16, 22.6), 1.7, 1.7);+ });+ }- return RenderVisual(visual, size, size);+ /// <summary>About: filled round with an accent "i".</summary>+ public static BitmapSource CreateAboutIcon(int size = 32)+ {+ return Render32(size, (c, p) =>+ {+ c.DrawEllipse(p.Fill, P(p.Ink, 2), new Point(16, 16), 12.5, 12.5);+ c.DrawEllipse(p.Accent, null, new Point(16, 10.4), 1.8, 1.8);+ c.DrawLine(P(p.Accent, 2.8), new Point(16, 14.6), new Point(16, 22.6));+ });}- /// <summary>- /// Creates a dockable-panel icon (frame with a filled docked side panel) for Open Panel.- /// </summary>+ /// <summary>Open Panel: window with an accent docked side panel.</summary>public static BitmapSource CreatePanelIcon(int size = 32){- var visual = new DrawingVisual();- using (var context = visual.RenderOpen())+ return Render32(size, (c, p) =>{- bool isDark = IsDarkTheme();- var inkRgb = isDark ? Color.FromRgb(233, 238, 245) : Color.FromRgb(24, 32, 44); // amb-ink- var primaryBrush = new SolidColorBrush(inkRgb);- var softFillBrush = new SolidColorBrush(Color.FromArgb(isDark ? (byte)41 : (byte)31, inkRgb.R, inkRgb.G, inkRgb.B));- var pen = new Pen(primaryBrush, StrokeWidth(size, 0.06)) { StartLineCap = PenLineCap.Round, EndLineCap = PenLineCap.Round, LineJoin = PenLineJoin.Round };- var accentPen = new Pen(primaryBrush, StrokeWidth(size, 0.05)) { LineJoin = PenLineJoin.Round };-- // Outer window frame- context.DrawRoundedRectangle(null, pen, new Rect(size * 0.07, size * 0.07, size * 0.86, size * 0.86), size * 0.09, size * 0.09);-- // Docked side panel (filled, right third)- context.DrawRectangle(softFillBrush, accentPen, new Rect(size * 0.63, size * 0.09, size * 0.28, size * 0.82));-- // Content rows in the main area- context.DrawLine(pen, new Point(size * 0.17, size * 0.30), new Point(size * 0.53, size * 0.30));- context.DrawLine(pen, new Point(size * 0.17, size * 0.50), new Point(size * 0.46, size * 0.50));- }-- return RenderVisual(visual, size, size);+ var ink = P(p.Ink, 2);+ c.DrawRoundedRectangle(p.Surface, ink, new Rect(3, 4, 26, 24), 2, 2);+ Shape(c, p.Accent, ink, "M5,4 H13 V28 H5 A2,2 0 0 1 3,26 V6 A2,2 0 0 1 5,4 Z");+ c.DrawLine(ink, new Point(13, 10), new Point(29, 10));+ var line = P(p.Mid, 2);+ c.DrawLine(line, new Point(17.5, 15.5), new Point(25.5, 15.5));+ c.DrawLine(line, new Point(17.5, 20), new Point(23, 20));+ });}- /// <summary>- /// Creates a health-check icon (clipboard with a checkmark) for QA/QC model health checks.- /// </summary>+ /// <summary>Health Check: isometric model cube with a green check badge.</summary>public static BitmapSource CreateHealthIcon(int size = 32){- var visual = new DrawingVisual();- using (var context = visual.RenderOpen())+ return Render32(size, (c, p) =>{- bool isDark = IsDarkTheme();- var primaryBrush = isDark ? new SolidColorBrush(Color.FromRgb(233, 238, 245)) : new SolidColorBrush(Color.FromRgb(24, 32, 44)); // amb-ink- var accentBrush = new SolidColorBrush(isDark ? Color.FromRgb(242, 166, 60) : Color.FromRgb(164, 95, 11)); // amb-warning- var pen = new Pen(primaryBrush, StrokeWidth(size, 0.06)) { StartLineCap = PenLineCap.Round, EndLineCap = PenLineCap.Round, LineJoin = PenLineJoin.Round };- var accentPen = new Pen(accentBrush, StrokeWidth(size, 0.09)) { StartLineCap = PenLineCap.Round, LineJoin = PenLineJoin.Round };-- // Clipboard body- context.DrawRoundedRectangle(null, pen, new Rect(size * 0.20, size * 0.12, size * 0.60, size * 0.78), size * 0.06, size * 0.06);-- // Clip tab- context.DrawRoundedRectangle(isDark ? Brushes.Black : Brushes.White, pen, new Rect(size * 0.38, size * 0.05, size * 0.24, size * 0.11), size * 0.03, size * 0.03);-- // Checkmark- var check = new PathGeometry();- var checkFig = new PathFigure { StartPoint = new Point(size * 0.32, size * 0.53), IsClosed = false };- checkFig.Segments.Add(new LineSegment(new Point(size * 0.45, size * 0.66), true));- checkFig.Segments.Add(new LineSegment(new Point(size * 0.70, size * 0.36), true));- check.Figures.Add(checkFig);- context.DrawGeometry(null, accentPen, check);- }-- return RenderVisual(visual, size, size);+ var ink = P(p.Ink, 1.8);+ Shape(c, p.Fill, ink, "M14,2 L25,8 L14,14 L3,8 Z");+ Shape(c, p.Surface, ink, "M3,8 L14,14 L14,26 L3,20 Z");+ Shape(c, p.Face, ink, "M14,14 L25,8 L25,20 L14,26 Z");+ Badge(c, p, p.Green);+ Shape(c, null, P(p.OnBadge, 2.2), "M19.6,23 L22,25.4 L26.2,20.8");+ });}- /// <summary>- /// Creates a pending-actions icon (list rows with a clock badge) for the approval queue.- /// </summary>+ /// <summary>Pending Actions: checklist page with an amber clock badge.</summary>public static BitmapSource CreatePendingIcon(int size = 32){- var visual = new DrawingVisual();- using (var context = visual.RenderOpen())+ return Render32(size, (c, p) =>{- bool isDark = IsDarkTheme();- var primaryBrush = isDark ? new SolidColorBrush(Color.FromRgb(233, 238, 245)) : new SolidColorBrush(Color.FromRgb(24, 32, 44)); // amb-ink- var accentRgb = isDark ? Color.FromRgb(183, 154, 240) : Color.FromRgb(109, 63, 184); // amb-pending- var accentBrush = new SolidColorBrush(accentRgb);- var softFillBrush = new SolidColorBrush(Color.FromArgb(51, accentRgb.R, accentRgb.G, accentRgb.B));- var pen = new Pen(primaryBrush, StrokeWidth(size, 0.07)) { StartLineCap = PenLineCap.Round, EndLineCap = PenLineCap.Round };- var accentPen = new Pen(accentBrush, StrokeWidth(size, 0.055)) { StartLineCap = PenLineCap.Round, EndLineCap = PenLineCap.Round, LineJoin = PenLineJoin.Round };-- // Queued list rows (descending widths, top-left)- context.DrawLine(pen, new Point(size * 0.10, size * 0.22), new Point(size * 0.62, size * 0.22));- context.DrawLine(pen, new Point(size * 0.10, size * 0.42), new Point(size * 0.54, size * 0.42));- context.DrawLine(pen, new Point(size * 0.10, size * 0.62), new Point(size * 0.42, size * 0.62));-- // Clock badge (bottom-right) — the "pending/awaiting" marker- var badgeCenter = new Point(size * 0.730, size * 0.740);- double badgeR = size * 0.210;- context.DrawEllipse(softFillBrush, accentPen, badgeCenter, badgeR, badgeR);- context.DrawLine(accentPen, badgeCenter, new Point(size * 0.730, size * 0.6245));- context.DrawLine(accentPen, badgeCenter, new Point(size * 0.825, size * 0.761));- }-- return RenderVisual(visual, size, size);+ var ink = P(p.Ink, 2);+ c.DrawRoundedRectangle(p.Surface, ink, new Rect(4, 3, 19, 25), 2, 2);+ c.DrawLine(ink, new Point(8.5, 9), new Point(18.5, 9));+ c.DrawLine(ink, new Point(8.5, 14), new Point(18.5, 14));+ c.DrawLine(ink, new Point(8.5, 19), new Point(13.5, 19));+ Badge(c, p, p.Amber);+ Shape(c, null, P(p.OnBadge, 2), "M23,19 V23.4 L26,25");+ });}- /// <summary>- /// Creates a reports icon (ascending bar chart) for report export tools.- /// </summary>+ /// <summary>Reports: document with an accent bar chart.</summary>public static BitmapSource CreateReportsIcon(int size = 32){- var visual = new DrawingVisual();- using (var context = visual.RenderOpen())+ return Render32(size, (c, p) =>{- bool isDark = IsDarkTheme();- var inkRgb = isDark ? Color.FromRgb(233, 238, 245) : Color.FromRgb(24, 32, 44); // amb-ink- var primaryBrush = new SolidColorBrush(inkRgb);- var softFillBrush = new SolidColorBrush(Color.FromArgb(isDark ? (byte)41 : (byte)31, inkRgb.R, inkRgb.G, inkRgb.B));- var pen = new Pen(primaryBrush, StrokeWidth(size, 0.06)) { StartLineCap = PenLineCap.Round, EndLineCap = PenLineCap.Round };- var accentPen = new Pen(primaryBrush, StrokeWidth(size, 0.05)) { LineJoin = PenLineJoin.Round };-- double baseline = size * 0.86;- double barWidth = size * 0.17;-- context.DrawRectangle(softFillBrush, accentPen, new Rect(size * 0.15, size * 0.58, barWidth, baseline - size * 0.58));- context.DrawRectangle(softFillBrush, accentPen, new Rect(size * 0.415, size * 0.40, barWidth, baseline - size * 0.40));- context.DrawRectangle(softFillBrush, accentPen, new Rect(size * 0.68, size * 0.22, barWidth, baseline - size * 0.22));-- // Baseline- context.DrawLine(pen, new Point(size * 0.10, baseline), new Point(size * 0.90, baseline));- }-- return RenderVisual(visual, size, size);+ c.DrawRoundedRectangle(p.Surface, P(p.Ink, 2), new Rect(6, 3, 20, 26), 2, 2);+ c.DrawLine(P(p.Mid, 2), new Point(10.5, 8.5), new Point(21.5, 8.5));+ c.DrawRoundedRectangle(p.Accent, null, new Rect(10.5, 18, 3.4, 7), 0.5, 0.5);+ c.DrawRoundedRectangle(p.Accent, null, new Rect(15.3, 14, 3.4, 11), 0.5, 0.5);+ c.DrawRoundedRectangle(p.Ink, null, new Rect(20.1, 11, 3.4, 14), 0.5, 0.5);+ });}/// <summary>- /// Creates the AEC Model Bridge brand icon (the Span mark, two-tone: ink structure, brand apex).+ /// The AEC Model Bridge app tile (the Pier mark). The brand artwork is fixed in both+ /// themes, so it is not palette-driven; at 16 px the arches drop out for legibility./// </summary>public static BitmapSource CreateBrandIcon(int size = 32){var visual = new DrawingVisual();using (var context = visual.RenderOpen()){- bool isDark = IsDarkTheme();- var inkRgb = isDark ? Color.FromRgb(233, 238, 245) : Color.FromRgb(24, 32, 44); // amb-ink- var brandRgb = isDark ? Color.FromRgb(63, 195, 214) : Color.FromRgb(0, 145, 167); // amb-brand-- var inkWashBrush = new SolidColorBrush(Color.FromArgb(isDark ? (byte)41 : (byte)31, inkRgb.R, inkRgb.G, inkRgb.B));- var inkPen = new Pen(new SolidColorBrush(inkRgb), StrokeWidth(size, 0.06)) { StartLineCap = PenLineCap.Round, EndLineCap = PenLineCap.Round, LineJoin = PenLineJoin.Round };-- var brandWashBrush = new SolidColorBrush(Color.FromArgb(51, brandRgb.R, brandRgb.G, brandRgb.B));- var brandPen = new Pen(new SolidColorBrush(brandRgb), StrokeWidth(size, 0.06)) { StartLineCap = PenLineCap.Round, EndLineCap = PenLineCap.Round, LineJoin = PenLineJoin.Round };-- // Node, left (ink wash + ink stroke)- context.DrawEllipse(inkWashBrush, inkPen, new Point(size * 0.190, size * 0.725), size * 0.140, size * 0.140);- // Node, right (ink wash + ink stroke)- context.DrawEllipse(inkWashBrush, inkPen, new Point(size * 0.810, size * 0.725), size * 0.140, size * 0.140);-- // Deck (ink)- context.DrawLine(inkPen, new Point(size * 0.330, size * 0.725), new Point(size * 0.670, size * 0.725));-- // Apex (brand wash + brand stroke)- var apexGeometry = new PathGeometry();- var apexFigure = new PathFigure { StartPoint = new Point(size * 0.500, size * 0.085), IsClosed = true };- apexFigure.Segments.Add(new LineSegment(new Point(size * 0.670, size * 0.430), true));- apexFigure.Segments.Add(new LineSegment(new Point(size * 0.330, size * 0.430), true));- apexGeometry.Figures.Add(apexFigure);- context.DrawGeometry(brandWashBrush, brandPen, apexGeometry);+ double scale = size / 96.0;+ context.PushTransform(new ScaleTransform(scale, scale));+ BrandMark.Draw(context, size > 20);+ context.Pop();}return RenderVisual(visual, size, size);@@ -427,6 +302,7 @@ namespace RevitBridge.UISaveIcon(CreatePendingIcon(32), Path.Combine(iconDir, "pending.png"));SaveIcon(CreateReportsIcon(32), Path.Combine(iconDir, "reports_32.png"));SaveIcon(CreateReportsIcon(32), Path.Combine(iconDir, "reports.png"));+ SaveIcon(CreateAboutIcon(32), Path.Combine(iconDir, "about_32.png"));// 16x16 icons for Revit small buttons and stacked items.SaveIcon(CreateConnectIcon(16), Path.Combine(iconDir, "connect_16.png"));@@ -439,6 +315,7 @@ namespace RevitBridge.UISaveIcon(CreateHealthIcon(16), Path.Combine(iconDir, "healthcheck_16.png"));SaveIcon(CreatePendingIcon(16), Path.Combine(iconDir, "pending_16.png"));SaveIcon(CreateReportsIcon(16), Path.Combine(iconDir, "reports_16.png"));+ SaveIcon(CreateAboutIcon(16), Path.Combine(iconDir, "about_16.png"));}}}diff --git a/packages/revit-bridge-addin/src/UI/ModernDialog.xaml b/packages/revit-bridge-addin/src/UI/ModernDialog.xamlindex e0cef06..a89ca64 100644--- a/packages/revit-bridge-addin/src/UI/ModernDialog.xaml+++ b/packages/revit-bridge-addin/src/UI/ModernDialog.xaml@@ -128,16 +128,7 @@<ColumnDefinition Width="Auto"/></Grid.ColumnDefinitions>- <Viewbox Grid.Column="0" Width="36" Height="36" Margin="15,0,10,0">- <Canvas Width="200" Height="200">- <!-- Top face (light blue) -->- <Polygon Points="50,80 80,50 140,50 110,80" Fill="#93c5fd" Stroke="#1e293b" StrokeThickness="3" />- <!-- Front face (bright blue) -->- <Polygon Points="50,80 110,80 110,140 50,140" Fill="#60a5fa" Stroke="#1e293b" StrokeThickness="3" />- <!-- Right side face (medium blue) -->- <Polygon Points="110,80 140,50 140,110 110,140" Fill="#3b82f6" Stroke="#1e293b" StrokeThickness="3" />- </Canvas>- </Viewbox>+ <Image x:Name="HeaderLogo" Grid.Column="0" Width="36" Height="36" Margin="15,0,10,0" Stretch="Uniform" SnapsToDevicePixels="True" AutomationProperties.Name="AEC Model Bridge logo"/><!-- Title --><StackPanel Grid.Column="1" VerticalAlignment="Center">diff --git a/packages/revit-bridge-addin/src/UI/ModernDialog.xaml.cs b/packages/revit-bridge-addin/src/UI/ModernDialog.xaml.csindex 8d4e535..94bdff5 100644--- a/packages/revit-bridge-addin/src/UI/ModernDialog.xaml.cs+++ b/packages/revit-bridge-addin/src/UI/ModernDialog.xaml.cs@@ -68,6 +68,7 @@ namespace RevitBridge.UIResources["FooterBorderBrush"] = _footerBorderBrush;InitializeComponent();+ HeaderLogo.Source = BrandMark.CreateImageSource();// Keep dialogs usable on smaller displays and owned by Revit.var workArea = SystemParameters.WorkArea;@@ -180,19 +181,8 @@ namespace RevitBridge.UIgrid.ColumnDefinitions.Add(new ColumnDefinition { Width = new GridLength(50) });grid.ColumnDefinitions.Add(new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) });- // Cube Icon- var viewBox = new Viewbox- {- Width = 40,- Height = 40,- VerticalAlignment = VerticalAlignment.Center,- HorizontalAlignment = HorizontalAlignment.Center- };- var canvas = new Canvas { Width = 200, Height = 200 };- canvas.Children.Add(new System.Windows.Shapes.Polygon { Points = new PointCollection(new[] { new Point(50, 80), new Point(80, 50), new Point(140, 50), new Point(110, 80) }), Fill = new SolidColorBrush(Color.FromRgb(147, 197, 253)), Stroke = new SolidColorBrush(Color.FromRgb(30, 41, 59)), StrokeThickness = 3 });- canvas.Children.Add(new System.Windows.Shapes.Polygon { Points = new PointCollection(new[] { new Point(50, 80), new Point(110, 80), new Point(110, 140), new Point(50, 140) }), Fill = new SolidColorBrush(Color.FromRgb(96, 165, 250)), Stroke = new SolidColorBrush(Color.FromRgb(30, 41, 59)), StrokeThickness = 3 });- canvas.Children.Add(new System.Windows.Shapes.Polygon { Points = new PointCollection(new[] { new Point(110, 80), new Point(140, 50), new Point(140, 110), new Point(110, 140) }), Fill = new SolidColorBrush(Color.FromRgb(59, 130, 246)), Stroke = new SolidColorBrush(Color.FromRgb(30, 41, 59)), StrokeThickness = 3 });- viewBox.Child = canvas;+ // Brand mark (shared with the dialog header and ribbon brand icon)+ var viewBox = BrandMark.CreateImage(40);Grid.SetColumn(viewBox, 0);grid.Children.Add(viewBox);diff --git a/panel/index.html b/panel/index.htmlindex ca1fc9c..175803b 100644--- a/panel/index.html+++ b/panel/index.html@@ -9,16 +9,16 @@<body><aside class="rail" aria-label="Primary"><div class="brand" aria-label="AEC Model Bridge">- <svg class="brand-mark" viewBox="0 0 26 26" width="26" height="26" aria-hidden="true">- <polygon points="13,2.21 17.42,11.18 8.58,11.18" fill="rgba(63,195,214,0.20)"/>- <circle cx="4.94" cy="18.85" r="3.64" fill="rgba(233,238,245,0.16)"/>- <circle cx="21.06" cy="18.85" r="3.64" fill="rgba(233,238,245,0.16)"/>- <g fill="none" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">- <line x1="8.58" y1="18.85" x2="17.42" y2="18.85" stroke="#E9EEF5"/>- <circle cx="4.94" cy="18.85" r="3.64" stroke="#E9EEF5"/>- <circle cx="21.06" cy="18.85" r="3.64" stroke="#E9EEF5"/>- <polygon points="13,2.21 17.42,11.18 8.58,11.18" stroke="#3FC3D6"/>+ <svg class="brand-mark" viewBox="0 0 96 96" width="28" height="28" 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><span>AMB</span></div>