icons show correctly now

This commit is contained in:
2026-06-10 23:17:25 -05:00
parent e23feff44d
commit 8a17a5e799
7 changed files with 119 additions and 12 deletions
@@ -581,8 +581,8 @@ public sealed partial class MainWindow : Window
plotCheck.Unchecked += (_, _) => QueuePlotSeriesRefresh();
sensorCell.Children.Add(plotCheck);
FontIcon icon = new() { FontSize = 14 };
Bind(icon, FontIcon.GlyphProperty, item, nameof(SensorTreeItemViewModel.IconGlyph));
Image icon = new() { Width = 16, Height = 16 };
icon.Source = SensorTypeDisplay.GetImageByFilename(item.IconImageName);
sensorCell.Children.Add(icon);
TextBlock name = new() { TextTrimming = TextTrimming.CharacterEllipsis };