Skip to content

Commit c917fc7

Browse files
mohnjilesclaude
andcommitted
style: use the FontAwesome circle-question glyph for docs buttons
Its counter stays legible at 16px where the FluentIcons filled variant closes up, and it matches the FontAwesome help glyphs already used elsewhere in the app. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent ffc1152 commit c917fc7

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

StabilityMatrix.Avalonia/Styles/ControlThemes/DocsHelpButtonStyles.axaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
xmlns="https://github.com/avaloniaui"
33
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
44
xmlns:controls="clr-namespace:StabilityMatrix.Avalonia.Controls"
5-
xmlns:fluentIcons="clr-namespace:FluentIcons.Avalonia.Fluent;assembly=FluentIcons.Avalonia.Fluent"
5+
xmlns:icons="https://github.com/projektanker/icons.avalonia"
66
xmlns:lang="clr-namespace:StabilityMatrix.Avalonia.Languages">
77

88
<Design.PreviewWith>
@@ -33,14 +33,11 @@
3333
Padding="{TemplateBinding Padding}"
3434
Background="{TemplateBinding Background}"
3535
CornerRadius="{TemplateBinding CornerRadius}">
36-
<!-- FluentIcons SymbolIcon measures greedily without explicit Width/Height -->
37-
<fluentIcons:SymbolIcon
38-
Width="16"
39-
Height="16"
36+
<!-- Matches the FontAwesome help glyphs used elsewhere in the app -->
37+
<icons:Icon
4038
FontSize="16"
4139
Foreground="{TemplateBinding Foreground}"
42-
IconVariant="Filled"
43-
Symbol="QuestionCircle" />
40+
Value="fa-solid fa-circle-question" />
4441
</Border>
4542
</ControlTemplate>
4643
</Setter>

StabilityMatrix.UITests/DocsHelpButtonTests.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Avalonia.Controls;
22
using Avalonia.VisualTree;
3-
using FluentIcons.Avalonia.Fluent;
3+
using Projektanker.Icons.Avalonia;
44
using StabilityMatrix.Avalonia.Controls;
55
using StabilityMatrix.Core.Models.Documentation;
66

@@ -21,9 +21,10 @@ public void DocsHelpButton_ShouldResolveControlTheme()
2121

2222
window.Show();
2323

24-
var icon = button.GetVisualDescendants().OfType<SymbolIcon>().FirstOrDefault();
24+
var icon = button.GetVisualDescendants().OfType<Icon>().FirstOrDefault();
2525

2626
Assert.NotNull(icon);
27+
Assert.Equal("fa-solid fa-circle-question", icon.Value);
2728
Assert.Equal("Hand", button.Cursor?.ToString());
2829
}
2930
}

0 commit comments

Comments
 (0)