Skip to content

Open-source Revit MCP server: let Claude and other AI assistants read and edit BIM models, with human approval on every change.

feat(ui): one design across side panel, popup dialogs and fallback view

Claudeb4f8c4adf5d9
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 03f9f69..139a5d1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,7 @@
## Unreleased
+- 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/packages/revit-bridge-addin/src/UI/BridgePanel.xaml b/packages/revit-bridge-addin/src/UI/BridgePanel.xaml
index 85dc102..a20d647 100644
--- a/packages/revit-bridge-addin/src/UI/BridgePanel.xaml
+++ b/packages/revit-bridge-addin/src/UI/BridgePanel.xaml
@@ -7,25 +7,26 @@
UseLayoutRounding="True"
SnapsToDevicePixels="True"
FontFamily="Segoe UI">
- <Grid Background="#F8FAFC">
+ <Grid Background="#F2F5F8">
<wv2:WebView2 x:Name="Browser" />
<Border x:Name="Fallback"
Visibility="Collapsed"
- Background="#F8FAFC"
+ Background="#F2F5F8"
Padding="20">
<StackPanel VerticalAlignment="Center">
+ <Image x:Name="FallbackLogo" Width="48" Height="48" HorizontalAlignment="Left" Margin="0,0,0,14" AutomationProperties.Name="AEC Model Bridge logo" />
<TextBlock Text="AEC Model Bridge"
FontSize="18"
FontWeight="SemiBold"
- Foreground="#1F2937"
+ Foreground="#18202C"
Margin="0,0,0,8" />
<TextBlock x:Name="FallbackMessage"
Text="Panel runtime unavailable."
FontSize="13"
LineHeight="20"
TextWrapping="Wrap"
- Foreground="#4B5563" />
+ Foreground="#5B6676" />
</StackPanel>
</Border>
</Grid>
diff --git a/packages/revit-bridge-addin/src/UI/BridgePanel.xaml.cs b/packages/revit-bridge-addin/src/UI/BridgePanel.xaml.cs
index 57bc6e4..72cd4eb 100644
--- a/packages/revit-bridge-addin/src/UI/BridgePanel.xaml.cs
+++ b/packages/revit-bridge-addin/src/UI/BridgePanel.xaml.cs
@@ -22,6 +22,7 @@ namespace RevitBridge.UI
public BridgePanel()
{
InitializeComponent();
+ FallbackLogo.Source = BrandMark.CreateImageSource();
Loaded += async (_, _) => await InitializeWebViewAsync();
}
diff --git a/packages/revit-bridge-addin/src/UI/ModernDialog.xaml b/packages/revit-bridge-addin/src/UI/ModernDialog.xaml
index a89ca64..da398c6 100644
--- a/packages/revit-bridge-addin/src/UI/ModernDialog.xaml
+++ b/packages/revit-bridge-addin/src/UI/ModernDialog.xaml
@@ -21,8 +21,8 @@
<Window.Resources>
<!-- Modern Button Style -->
<Style x:Key="ModernButton" TargetType="Button">
- <Setter Property="Background" Value="{DynamicResource HeaderBrush}"/>
- <Setter Property="Foreground" Value="White"/>
+ <Setter Property="Background" Value="{DynamicResource AccentBrush}"/>
+ <Setter Property="Foreground" Value="{DynamicResource OnAccentBrush}"/>
<Setter Property="FontSize" Value="13"/>
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="Padding" Value="24,10"/>
@@ -32,7 +32,7 @@
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Background="{TemplateBinding Background}"
- CornerRadius="6"
+ CornerRadius="8"
Padding="{TemplateBinding Padding}">
<ContentPresenter HorizontalAlignment="Center"
VerticalAlignment="Center"/>
@@ -62,7 +62,7 @@
<Border Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="6"
+ CornerRadius="8"
Padding="{TemplateBinding Padding}">
<ContentPresenter HorizontalAlignment="Center"
VerticalAlignment="Center"/>
@@ -72,7 +72,7 @@
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Background" Value="{DynamicResource BgBrush}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource AccentBrush}"/>
</Trigger>
</Style.Triggers>
</Style>
@@ -82,7 +82,7 @@
<Setter Property="Background" Value="{DynamicResource CardBgBrush}"/>
<Setter Property="BorderBrush" Value="{DynamicResource BorderBrush}"/>
<Setter Property="BorderThickness" Value="1"/>
- <Setter Property="CornerRadius" Value="8"/>
+ <Setter Property="CornerRadius" Value="10"/>
<Setter Property="Padding" Value="16"/>
<Setter Property="Margin" Value="6"/>
<Setter Property="Effect">
@@ -92,7 +92,7 @@
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
- <Setter Property="BorderBrush" Value="{DynamicResource HeaderBrush}"/>
+ <Setter Property="BorderBrush" Value="{DynamicResource AccentBrush}"/>
<Setter Property="Effect">
<Setter.Value>
<DropShadowEffect Color="#000000" Opacity="0.12" BlurRadius="12" ShadowDepth="3"/>
@@ -120,7 +120,7 @@
</Grid.RowDefinitions>
<!-- Header -->
- <Border x:Name="HeaderBorder" Grid.Row="0" Background="{DynamicResource HeaderBrush}" CornerRadius="9,9,0,0">
+ <Border x:Name="HeaderBorder" Grid.Row="0" Background="{DynamicResource HeaderBrush}" CornerRadius="9,9,0,0" BorderBrush="{DynamicResource AccentBrush}" BorderThickness="0,0,0,2">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
@@ -136,12 +136,11 @@
Text="AEC Model Bridge Status"
FontSize="17"
FontWeight="SemiBold"
- Foreground="White"/>
+ Foreground="#E9EEF5"/>
<TextBlock x:Name="DialogSubtitle"
Text="MCP automation for Revit software"
FontSize="11"
- Foreground="White"
- Opacity="0.85"/>
+ Foreground="#9BA8B9"/>
</StackPanel>
<!-- Close Button -->
@@ -155,13 +154,14 @@
Cursor="Hand"
AutomationProperties.Name="Close dialog"
Click="CloseButton_Click">
- <Path Fill="White" Data="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"/>
+ <Path Fill="#C9D4E2" Data="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"/>
</Button>
</Grid>
</Border>
<!-- Content -->
<ScrollViewer Grid.Row="1"
+ Background="{DynamicResource BgBrush}"
VerticalScrollBarVisibility="Auto"
HorizontalScrollBarVisibility="Disabled"
CanContentScroll="False"
diff --git a/packages/revit-bridge-addin/src/UI/ModernDialog.xaml.cs b/packages/revit-bridge-addin/src/UI/ModernDialog.xaml.cs
index 94bdff5..355d32c 100644
--- a/packages/revit-bridge-addin/src/UI/ModernDialog.xaml.cs
+++ b/packages/revit-bridge-addin/src/UI/ModernDialog.xaml.cs
@@ -19,6 +19,12 @@ namespace RevitBridge.UI
private readonly Brush _headerBrush;
private readonly Brush _footerBgBrush;
private readonly Brush _footerBorderBrush;
+ private readonly Brush _accentBrush;
+ private readonly Brush _accentTextBrush;
+ private readonly Brush _onAccentBrush;
+ private readonly Color _accentColor;
+ private readonly Color _successColor;
+ private readonly Color _dangerColor;
public ModernDialog()
{
@@ -33,30 +39,45 @@ namespace RevitBridge.UI
// Fallback if UIThemeManager is not available
}
- // Establish professional, Revit-aligned color system
+ // Same tokens as the panel (panel/styles.css, docs/design/tokens.md): one design across ribbon, panel and dialogs.
+ SolidColorBrush Rgb(byte r, byte g, byte b) => new SolidColorBrush(Color.FromRgb(r, g, b));
+ SolidColorBrush accent;
if (isDark)
{
- _bgBrush = new SolidColorBrush(Color.FromRgb(43, 43, 43)); // Dark charcoal
- _cardBgBrush = new SolidColorBrush(Color.FromRgb(51, 51, 51)); // Medium charcoal
- _textPrimaryBrush = new SolidColorBrush(Color.FromRgb(224, 224, 224)); // Soft white
- _textSecondaryBrush = new SolidColorBrush(Color.FromRgb(170, 170, 170)); // Slate gray
- _borderBrush = new SolidColorBrush(Color.FromRgb(68, 68, 68)); // Charcoal border
- _headerBrush = new SolidColorBrush(Color.FromRgb(31, 31, 31)); // Rich near-black header
- _footerBgBrush = new SolidColorBrush(Color.FromRgb(37, 37, 37)); // Footer background
- _footerBorderBrush = new SolidColorBrush(Color.FromRgb(48, 48, 48)); // Footer border
+ _bgBrush = Rgb(0x14, 0x18, 0x1E);
+ _cardBgBrush = Rgb(0x1C, 0x22, 0x2B);
+ _textPrimaryBrush = Rgb(0xE9, 0xEE, 0xF5);
+ _textSecondaryBrush = Rgb(0x9B, 0xA8, 0xB9);
+ _borderBrush = Rgb(0x2F, 0x39, 0x45);
+ _headerBrush = Rgb(0x14, 0x1B, 0x24);
+ _footerBgBrush = Rgb(0x1C, 0x22, 0x2B);
+ _footerBorderBrush = Rgb(0x2F, 0x39, 0x45);
+ accent = Rgb(0x3F, 0xC3, 0xD6);
+ _accentTextBrush = accent;
+ _onAccentBrush = Rgb(0x06, 0x22, 0x2A);
+ _successColor = Color.FromRgb(0x3F, 0xCB, 0x8B);
+ _dangerColor = Color.FromRgb(0xF0, 0x79, 0x6B);
}
else
{
- _bgBrush = new SolidColorBrush(Color.FromRgb(240, 240, 240)); // Professional light gray
- _cardBgBrush = new SolidColorBrush(Color.FromRgb(255, 255, 255)); // Flawless white
- _textPrimaryBrush = new SolidColorBrush(Color.FromRgb(34, 34, 34)); // Dark charcoal text
- _textSecondaryBrush = new SolidColorBrush(Color.FromRgb(85, 85, 85)); // Muted slate text
- _borderBrush = new SolidColorBrush(Color.FromRgb(208, 208, 208)); // Professional border gray
- _headerBrush = new SolidColorBrush(Color.FromRgb(29, 58, 86)); // Sleek corporate Revit Blue/Slate
- _footerBgBrush = new SolidColorBrush(Color.FromRgb(245, 245, 245)); // Off-white footer
- _footerBorderBrush = new SolidColorBrush(Color.FromRgb(224, 224, 224)); // Footer separator
+ _bgBrush = Rgb(0xF2, 0xF5, 0xF8);
+ _cardBgBrush = Rgb(0xFF, 0xFF, 0xFF);
+ _textPrimaryBrush = Rgb(0x18, 0x20, 0x2C);
+ _textSecondaryBrush = Rgb(0x5B, 0x66, 0x76);
+ _borderBrush = Rgb(0xD3, 0xDA, 0xE3);
+ _headerBrush = Rgb(0x14, 0x1B, 0x24);
+ _footerBgBrush = Rgb(0xE9, 0xEE, 0xF4);
+ _footerBorderBrush = Rgb(0xD3, 0xDA, 0xE3);
+ accent = Rgb(0x00, 0x91, 0xA7);
+ _accentTextBrush = Rgb(0x04, 0x6B, 0x80);
+ _onAccentBrush = Rgb(0xFF, 0xFF, 0xFF);
+ _successColor = Color.FromRgb(0x12, 0x7A, 0x4B);
+ _dangerColor = Color.FromRgb(0xC2, 0x3B, 0x2E);
}
+ _accentBrush = accent;
+ _accentColor = accent.Color;
+
// Expose as DynamicResources before initializing components so XAML bindings compile and evaluate perfectly
Resources["BgBrush"] = _bgBrush;
Resources["CardBgBrush"] = _cardBgBrush;
@@ -66,6 +87,9 @@ namespace RevitBridge.UI
Resources["HeaderBrush"] = _headerBrush;
Resources["FooterBgBrush"] = _footerBgBrush;
Resources["FooterBorderBrush"] = _footerBorderBrush;
+ Resources["AccentBrush"] = _accentBrush;
+ Resources["AccentTextBrush"] = _accentTextBrush;
+ Resources["OnAccentBrush"] = _onAccentBrush;
InitializeComponent();
HeaderLogo.Source = BrandMark.CreateImageSource();
@@ -111,6 +135,62 @@ 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)
+ {
+ 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"; }
+
+ var border = new Border
+ {
+ Width = tile,
+ Height = tile,
+ CornerRadius = new CornerRadius(10),
+ Background = new SolidColorBrush(Color.FromArgb(0x29, kind.R, kind.G, kind.B)),
+ HorizontalAlignment = HorizontalAlignment.Center,
+ VerticalAlignment = VerticalAlignment.Center
+ };
+
+ if (data != null)
+ {
+ var canvas = new Canvas { Width = 24, Height = 24 };
+ canvas.Children.Add(new System.Windows.Shapes.Path
+ {
+ Data = Geometry.Parse(data),
+ Stroke = new SolidColorBrush(kind),
+ StrokeThickness = 2.4,
+ StrokeStartLineCap = PenLineCap.Round,
+ StrokeEndLineCap = PenLineCap.Round,
+ StrokeLineJoin = PenLineJoin.Round
+ });
+ border.Child = new Viewbox { Width = tile * 0.55, Height = tile * 0.55, Child = canvas };
+ }
+ else
+ {
+ border.Width = double.NaN;
+ border.MinWidth = tile;
+ border.Padding = new Thickness(8, 0, 8, 0);
+ border.Child = new TextBlock
+ {
+ Text = icon,
+ FontSize = 11,
+ FontWeight = FontWeights.Bold,
+ Foreground = (Brush)FindResource("AccentTextBrush"),
+ HorizontalAlignment = HorizontalAlignment.Center,
+ VerticalAlignment = VerticalAlignment.Center
+ };
+ }
+
+ return 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)
{
var card = new Border
@@ -123,15 +203,8 @@ namespace RevitBridge.UI
grid.ColumnDefinitions.Add(new ColumnDefinition { Width = new GridLength(50) });
grid.ColumnDefinitions.Add(new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) });
- // Icon
- var iconText = new TextBlock
- {
- Text = icon,
- FontSize = 32,
- VerticalAlignment = VerticalAlignment.Center,
- HorizontalAlignment = HorizontalAlignment.Center,
- Foreground = iconColor ?? new SolidColorBrush(Color.FromRgb(33, 150, 243)) // Blue
- };
+ // Icon tile (vector glyph in the shared icon language; colour follows the glyph kind)
+ var iconText = CreateGlyphTile(icon, 44);
Grid.SetColumn(iconText, 0);
grid.Children.Add(iconText);
@@ -235,8 +308,8 @@ namespace RevitBridge.UI
var contentBorder = new Border
{
- Background = (Brush)FindResource("BgBrush"),
- CornerRadius = new CornerRadius(6),
+ Background = (Brush)FindResource("CardBgBrush"),
+ CornerRadius = new CornerRadius(8),
Padding = new Thickness(14),
BorderBrush = (Brush)FindResource("BorderBrush"),
BorderThickness = new Thickness(1)
@@ -294,13 +367,8 @@ namespace RevitBridge.UI
var stack = new StackPanel { HorizontalAlignment = HorizontalAlignment.Center };
- var iconText = new TextBlock
- {
- Text = icon,
- FontSize = 28,
- HorizontalAlignment = HorizontalAlignment.Center,
- Margin = new Thickness(0, 0, 0, 8)
- };
+ var iconText = CreateGlyphTile(icon, 36);
+ iconText.Margin = new Thickness(0, 0, 0, 10);
var valueText = new TextBlock
{
@@ -310,7 +378,7 @@ namespace RevitBridge.UI
HorizontalAlignment = HorizontalAlignment.Center,
TextAlignment = TextAlignment.Center,
TextWrapping = TextWrapping.Wrap,
- Foreground = new SolidColorBrush(Color.FromRgb(33, 150, 243)), // Autodesk Blue
+ Foreground = (Brush)FindResource("AccentTextBrush"),
Margin = new Thickness(0, 0, 0, 4)
};
@@ -403,13 +471,13 @@ namespace RevitBridge.UI
Width = 46,
Height = 46,
CornerRadius = new CornerRadius(23),
- Background = (Brush)FindResource("HeaderBrush"),
+ Background = (Brush)FindResource("AccentBrush"),
VerticalAlignment = VerticalAlignment.Top
};
initials.Child = new TextBlock
{
Text = "SM",
- Foreground = Brushes.White,
+ Foreground = (Brush)FindResource("OnAccentBrush"),
FontSize = 15,
FontWeight = FontWeights.Bold,
HorizontalAlignment = HorizontalAlignment.Center,
@@ -448,15 +516,15 @@ namespace RevitBridge.UI
buttons.Children.Add(CreateProfileButton(
"Email",
$"mailto:{email}",
- Color.FromRgb(69, 90, 100)));
+ Colors.Transparent));
buttons.Children.Add(CreateProfileButton(
"GitHub",
gitHubUrl,
- Color.FromRgb(36, 41, 46)));
+ Colors.Transparent));
buttons.Children.Add(CreateProfileButton(
"LinkedIn",
linkedInUrl,
- Color.FromRgb(10, 102, 194)));
+ Colors.Transparent));
details.Children.Add(buttons);
layout.Children.Add(details);
@@ -469,9 +537,7 @@ namespace RevitBridge.UI
var button = new Button
{
Content = label,
- Style = (Style)FindResource("ModernButton"),
- Background = new SolidColorBrush(background),
- Foreground = Brushes.White,
+ Style = (Style)FindResource("SecondaryButton"),
Padding = new Thickness(14, 7, 14, 7),
Margin = new Thickness(0, 0, 8, 8),
ToolTip = url
diff --git a/panel/app.js b/panel/app.js
index dea25b2..28f5b20 100644
--- a/panel/app.js
+++ b/panel/app.js
@@ -28,6 +28,7 @@ const hostStatus = document.getElementById("host-status");
const systemAlerts = document.getElementById("system-alerts");
const title = document.getElementById("view-title");
const subtitle = document.getElementById("view-subtitle");
+const viewIcon = document.getElementById("view-icon");
const chatFeed = document.getElementById("chat-feed");
const chatForm = document.getElementById("chat-form");
const chatInput = document.getElementById("chat-input");
@@ -96,6 +97,7 @@ function setView(viewName) {
});
title.textContent = views[viewName].title;
subtitle.textContent = views[viewName].subtitle;
+ viewIcon.setAttribute("href", `#nav-${viewName}`);
}
function renderHostStatus() {
@@ -232,7 +234,7 @@ function renderPlans() {
</div>
<p>${escapeHtml(plan.detail)}</p>
<div class="item-actions">
- <button type="button" data-plan="${escapeHtml(plan.id)}" data-decision="approve">Approve</button>
+ <button type="button" data-plan="${escapeHtml(plan.id)}" class="primary" data-decision="approve">Approve</button>
<button type="button" data-plan="${escapeHtml(plan.id)}" data-decision="reject">Reject</button>
</div>`;
planList.appendChild(item);
diff --git a/panel/index.html b/panel/index.html
index 175803b..fe76579 100644
--- a/panel/index.html
+++ b/panel/index.html
@@ -7,9 +7,46 @@
<link rel="stylesheet" href="./styles.css">
</head>
<body>
+ <svg width="0" height="0" style="position:absolute" aria-hidden="true" focusable="false">
+ <defs>
+ <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"/>
+ </symbol>
+ <symbol id="nav-plans" viewBox="0 0 32 32">
+ <rect class="o f" x="6" y="3" width="20" height="26" rx="2"/>
+ <path class="o" d="M10.5 9.5h11M10.5 14.5h11"/>
+ <path class="a" d="M10.5 20h6"/>
+ </symbol>
+ <symbol id="nav-findings" viewBox="0 0 32 32">
+ <path class="o f" d="M14 2l11 6-11 6-11-6z"/>
+ <path class="o" d="M3 8l11 6v12L3 20zM14 14l11-6v12l-11 6z"/>
+ <circle class="b" cx="23" cy="23" r="7"/>
+ <path class="c" d="M19.6 23l2.4 2.4 4.2-4.6"/>
+ </symbol>
+ <symbol id="nav-reports" viewBox="0 0 32 32">
+ <rect class="o f" x="6" y="3" width="20" height="26" rx="2"/>
+ <path class="o" d="M10.5 8.5h11"/>
+ <rect class="fa" x="10.5" y="18" width="3.4" height="7" rx=".5"/>
+ <rect class="fa" x="15.3" y="14" width="3.4" height="11" rx=".5"/>
+ <rect class="fi" x="20.1" y="11" width="3.4" height="14" rx=".5"/>
+ </symbol>
+ <symbol id="nav-log" viewBox="0 0 32 32">
+ <rect class="o f" x="3" y="5" width="26" height="22" rx="2"/>
+ <path class="a" d="M8.5 12l5 4-5 4"/>
+ <path class="o" d="M16.5 21h7"/>
+ </symbol>
+ <symbol id="nav-settings" viewBox="0 0 32 32">
+ <path class="o" stroke-width="3.2" d="M16 3v5M16 24v5M3 16h5M24 16h5M6.8 6.8l3.5 3.5M21.7 21.7l3.5 3.5M25.2 6.8l-3.5 3.5M10.3 21.7l-3.5 3.5"/>
+ <circle class="o f" cx="16" cy="16" r="9"/>
+ <circle class="a" cx="16" cy="16" r="3.4"/>
+ </symbol>
+ </defs>
+ </svg>
+
<aside class="rail" aria-label="Primary">
- <div class="brand" aria-label="AEC Model Bridge">
- <svg class="brand-mark" viewBox="0 0 96 96" width="28" height="28" aria-hidden="true">
+ <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"/>
@@ -20,33 +57,41 @@
<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>
<button class="nav is-active" type="button" data-view="chat" title="Chat" aria-label="Chat">
- <span aria-hidden="true">C</span>
+ <svg class="ico" viewBox="0 0 32 32" aria-hidden="true"><use href="#nav-chat"/></svg>
+ <span class="nav-label">Chat</span>
</button>
<button class="nav" type="button" data-view="plans" title="Plans" aria-label="Plans">
- <span aria-hidden="true">P</span>
+ <svg class="ico" viewBox="0 0 32 32" aria-hidden="true"><use href="#nav-plans"/></svg>
+ <span class="nav-label">Plans</span>
</button>
<button class="nav" type="button" data-view="findings" title="Findings" aria-label="Findings">
- <span aria-hidden="true">F</span>
+ <svg class="ico" viewBox="0 0 32 32" aria-hidden="true"><use href="#nav-findings"/></svg>
+ <span class="nav-label">Findings</span>
</button>
<button class="nav" type="button" data-view="reports" title="Reports" aria-label="Reports">
- <span aria-hidden="true">R</span>
+ <svg class="ico" viewBox="0 0 32 32" aria-hidden="true"><use href="#nav-reports"/></svg>
+ <span class="nav-label">Reports</span>
</button>
<button class="nav" type="button" data-view="log" title="Run Log" aria-label="Run Log">
- <span aria-hidden="true">L</span>
+ <svg class="ico" viewBox="0 0 32 32" aria-hidden="true"><use href="#nav-log"/></svg>
+ <span class="nav-label">Log</span>
</button>
<button class="nav" type="button" data-view="settings" title="Settings" aria-label="Settings">
- <span aria-hidden="true">S</span>
+ <svg class="ico" viewBox="0 0 32 32" aria-hidden="true"><use href="#nav-settings"/></svg>
+ <span class="nav-label">Settings</span>
</button>
</aside>
<main class="app">
<header class="topbar">
- <div>
- <h1 id="view-title">Chat</h1>
- <p id="view-subtitle">AEC Model Bridge</p>
+ <div class="titleblock">
+ <span class="view-tile" aria-hidden="true"><svg class="ico" viewBox="0 0 32 32"><use id="view-icon" href="#nav-chat"/></svg></span>
+ <div>
+ <h1 id="view-title">Chat</h1>
+ <p id="view-subtitle">AEC Model Bridge</p>
+ </div>
</div>
<div class="status-pill" id="host-status">
<span class="dot"></span>
@@ -63,7 +108,7 @@
<option value="codex">Codex</option>
</select>
<input id="chat-input" name="message" autocomplete="off" placeholder="Ask about the active model">
- <button type="submit">Send</button>
+ <button type="submit" class="primary">Send</button>
<button type="button" id="chat-reset" title="Start a new conversation">New</button>
</form>
</section>
@@ -71,14 +116,14 @@
<section class="view" id="view-plans" aria-labelledby="view-title">
<div class="toolbar">
<button type="button" data-action="refresh-plans">Refresh</button>
- <button type="button" data-action="approve-selected">Approve Selected</button>
+ <button type="button" class="primary" data-action="approve-selected">Approve Selected</button>
</div>
<div class="list" id="plan-list"></div>
</section>
<section class="view" id="view-findings" aria-labelledby="view-title">
<div class="toolbar">
- <button type="button" data-action="run-health">Run Health Check</button>
+ <button type="button" class="primary" data-action="run-health">Run Health Check</button>
<select id="severity-filter" aria-label="Severity">
<option value="all">All severities</option>
<option value="error">Errors</option>
@@ -91,7 +136,7 @@
<section class="view" id="view-reports" aria-labelledby="view-title">
<div class="toolbar">
- <button type="button" data-action="export-excel">Export Excel</button>
+ <button type="button" class="primary" data-action="export-excel">Export Excel</button>
<button type="button" data-action="refresh-reports">Refresh</button>
</div>
<div class="list" id="report-list"></div>
@@ -114,7 +159,7 @@
<option value="auto">Auto</option>
</select>
</label>
- <button type="submit">Save</button>
+ <button type="submit" class="primary">Save</button>
</form>
</section>
</main>
diff --git a/panel/styles.css b/panel/styles.css
index 40d37f5..39de62f 100644
--- a/panel/styles.css
+++ b/panel/styles.css
@@ -26,6 +26,9 @@
--amb-glass-filter: blur(14px) saturate(120%);
--amb-shadow-1: 0 1px 2px rgba(16, 24, 40, 0.08);
--amb-shadow-2: 0 6px 16px rgba(16, 24, 40, 0.10);
+ --amb-ico-fill: rgba(0, 145, 167, 0.16);
+ --amb-ico-ring: #FFFFFF;
+ --amb-radius: 10px;
--amb-motion-fast: 120ms cubic-bezier(.4, 0, .2, 1); /* hover, press */
--amb-motion-view: 180ms cubic-bezier(.2, .7, .3, 1); /* view switch */
}
@@ -56,6 +59,8 @@
--amb-pending: #B79AF0;
--amb-idle: #9BA8B9;
--amb-on-brand: #06222A;
+ --amb-ico-fill: rgba(63, 195, 214, 0.18);
+ --amb-ico-ring: #1C222B;
--amb-glass: rgba(28, 34, 43, 0.72);
--amb-glass-line: rgba(255, 255, 255, 0.07);
--amb-glass-filter: blur(14px) saturate(140%);
@@ -90,7 +95,9 @@
--amb-pending: #B79AF0;
--amb-idle: #9BA8B9;
--amb-on-brand: #06222A;
- --amb-glass: rgba(28, 34, 43, 0.72);
+ --amb-ico-fill: rgba(63, 195, 214, 0.18);
+ --amb-ico-ring: #1C222B;
+ --amb-glass: rgba(28, 34, 43, 0.72);
--amb-glass-line: rgba(255, 255, 255, 0.07);
--amb-glass-filter: blur(14px) saturate(140%);
--amb-shadow-1: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
@@ -109,7 +116,7 @@ body {
min-width: 320px;
min-height: 100vh;
display: grid;
- grid-template-columns: 58px minmax(0, 1fr);
+ grid-template-columns: 64px minmax(0, 1fr);
background: var(--amb-bg);
color: var(--amb-ink);
}
@@ -122,12 +129,30 @@ select {
button {
border: 1px solid var(--amb-line);
- border-radius: 6px;
+ border-radius: 8px;
background: var(--amb-surface);
color: var(--amb-ink);
min-height: 34px;
- padding: 0 12px;
+ padding: 0 14px;
+ font-weight: 600;
cursor: pointer;
+ transition: background-color var(--amb-motion-fast), border-color var(--amb-motion-fast);
+}
+
+button:hover:not(:disabled) {
+ border-color: var(--amb-brand);
+ background: var(--amb-brand-wash);
+}
+
+button.primary {
+ border-color: var(--amb-brand);
+ background: var(--amb-brand);
+ color: var(--amb-on-brand);
+}
+
+button.primary:hover:not(:disabled) {
+ border-color: var(--amb-brand-strong);
+ background: var(--amb-brand-strong);
}
:focus-visible {
@@ -147,29 +172,49 @@ select {
min-height: 36px;
width: 100%;
border: 1px solid var(--amb-line);
- border-radius: 6px;
+ border-radius: 8px;
padding: 0 10px;
background: var(--amb-surface);
color: var(--amb-ink);
}
+input:focus,
+select:focus {
+ border-color: var(--amb-brand);
+}
+
+/* Icon language: shared with the ribbon icons (docs/design/tokens.md section 5).
+ Charcoal/ink outline, light teal fill, one teal accent, round joins. */
+.ico {
+ display: block;
+ width: 22px;
+ height: 22px;
+ --amb-ico-ring: var(--amb-surface);
+}
+symbol .o { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
+symbol .f { fill: var(--amb-ico-fill); }
+symbol .a { fill: none; stroke: var(--amb-brand); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
+symbol .b { fill: var(--amb-success); stroke: var(--amb-ico-ring); stroke-width: 1.5; }
+symbol .c { fill: none; stroke: var(--amb-on-brand); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
+symbol .fa { fill: var(--amb-brand); }
+symbol .fi { fill: currentColor; }
+
.rail {
- display: grid;
- grid-template-rows: 58px repeat(6, 44px) 1fr;
- gap: 6px;
- padding: 8px;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 4px;
+ padding: 10px 6px;
border-right: 1px solid var(--amb-line);
background: var(--amb-rail);
- backdrop-filter: var(--amb-glass-filter);
- color: white;
+ color: var(--amb-rail-ink);
}
.brand {
display: grid;
place-items: center;
- gap: 3px;
- font-size: 10px;
- letter-spacing: 0.06em;
+ height: 52px;
+ margin-bottom: 6px;
}
.brand-mark {
@@ -178,35 +223,52 @@ select {
.nav {
position: relative;
- width: 42px;
- min-height: 40px;
- padding: 0;
+ width: 52px;
+ min-height: 52px;
+ padding: 6px 0 4px;
+ display: grid;
+ justify-items: center;
+ align-content: center;
+ gap: 3px;
border-color: transparent;
+ border-radius: 10px;
background: transparent;
color: var(--amb-rail-ink);
font-weight: 600;
- font-size: 13px;
}
-.nav:hover {
+.nav .ico {
+ --amb-ico-ring: var(--amb-rail);
+ --amb-ico-fill: rgba(255, 255, 255, 0.07);
+ --amb-brand: #3FC3D6;
+}
+
+.nav-label {
+ font-size: 10px;
+ line-height: 1;
+ letter-spacing: 0.02em;
+}
+
+.nav:hover:not(:disabled) {
background: rgba(255, 255, 255, 0.08);
+ border-color: transparent;
color: #E9EEF5;
}
.nav.is-active {
- background: rgba(63, 195, 214, 0.14);
- color: #E9EEF5;
+ background: rgba(63, 195, 214, 0.16);
+ color: #FFFFFF;
}
-.nav.is-active::after {
+.nav.is-active::before {
content: "";
position: absolute;
- top: 0;
- right: -8px;
- width: 2px;
- height: 100%;
- background: var(--amb-brand);
- border-radius: 0 2px 2px 0;
+ left: -6px;
+ top: 12px;
+ bottom: 12px;
+ width: 3px;
+ background: #3FC3D6;
+ border-radius: 0 3px 3px 0;
}
.app {
@@ -226,6 +288,25 @@ select {
backdrop-filter: var(--amb-glass-filter);
}
+.titleblock {
+ display: flex;
+ align-items: center;
+ gap: 12px;
+ min-width: 0;
+}
+
+.view-tile {
+ flex: none;
+ display: grid;
+ place-items: center;
+ width: 38px;
+ height: 38px;
+ border-radius: 10px;
+ border: 1px solid var(--amb-line);
+ background: var(--amb-brand-wash);
+ color: var(--amb-ink);
+}
+
h1 {
margin: 0;
font-size: 18px;
@@ -258,10 +339,12 @@ p {
height: 8px;
border-radius: 50%;
background: var(--amb-warning);
+ box-shadow: 0 0 0 3px transparent;
}
.status-pill.is-online .dot {
background: var(--amb-success);
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--amb-success) 22%, transparent);
}
.status-pill.is-offline .dot {
@@ -281,7 +364,7 @@ p {
.alert,
.empty {
border: 1px solid var(--amb-line);
- border-radius: 8px;
+ border-radius: var(--amb-radius);
background: var(--amb-surface);
box-shadow: var(--amb-shadow-1);
}
@@ -358,7 +441,7 @@ p {
.item,
.event {
border: 1px solid var(--amb-line);
- border-radius: 8px;
+ border-radius: var(--amb-radius);
background: var(--amb-surface);
box-shadow: var(--amb-shadow-1);
}
@@ -408,20 +491,8 @@ p {
max-width: 110px;
}
-.composer button,
-.settings button,
-[data-action="approve-selected"] {
- border-color: var(--amb-brand);
- background: var(--amb-brand);
- color: var(--amb-on-brand);
- transition: background-color var(--amb-motion-fast), border-color var(--amb-motion-fast);
-}
-
-.composer button:hover:not(:disabled),
-.settings button:hover:not(:disabled),
-[data-action="approve-selected"]:hover:not(:disabled) {
- border-color: var(--amb-brand-strong);
- background: var(--amb-brand-strong);
+.composer #chat-reset {
+ font-weight: 500;
}
.item {