Skip to content

Commit

Permalink
Merge pull request #2459 from Nexus-Mods/healthcheck-tweaks
Browse files Browse the repository at this point in the history
Fixes Health Check UI bugs
  • Loading branch information
insomnious authored Jan 9, 2025
2 parents afe1167 + 99372cc commit 55e81e8
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@
<DockPanel>
<icons:UnifiedIcon x:Name="SeverityIcon"
DockPanel.Dock="Left" />
<icons:UnifiedIcon
x:Name="NavigationIcon"
<icons:UnifiedIcon x:Name="NavigationIcon"
DockPanel.Dock="Right"
Value="{x:Static icons:IconValues.ChevronRight}"/>

<StackPanel Margin="16,0">
<StackPanel Margin="16,0" Spacing="0">
<TextBlock x:Name="TitleText"
Text="Name"
Theme="{StaticResource BodyMDNormalTheme}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ private void InitializeData(IDiagnosticEntryViewModel vm)
switch (vm.Severity)
{
case DiagnosticSeverity.Suggestion:
SeverityIcon.Value = IconValues.Help;
SeverityIcon.Value = IconValues.InfoFilled;
SeverityIcon.Classes.Add("ForegroundInfoStrong");
break;
case DiagnosticSeverity.Warning:
SeverityIcon.Value = IconValues.Error;
SeverityIcon.Value = IconValues.Warning;
SeverityIcon.Classes.Add("ForegroundWarningStrong");
break;
case DiagnosticSeverity.Critical:
SeverityIcon.Value = IconValues.Alert;
SeverityIcon.Value = IconValues.Error;
SeverityIcon.Classes.Add("ForegroundDangerStrong");
break;
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
xmlns:diagnostics="clr-namespace:NexusMods.App.UI.Pages.Diagnostics"
xmlns:icons="clr-namespace:NexusMods.Icons;assembly=NexusMods.Icons"
xmlns:controls="clr-namespace:NexusMods.App.UI.Controls"
mc:Ignorable="d" d:DesignWidth="1200" d:DesignHeight="450"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="NexusMods.App.UI.Pages.Diagnostics.DiagnosticDetailsView">

<Design.DataContext>
Expand Down Expand Up @@ -84,11 +84,9 @@
Background="#0D93C5FD"
BorderBrush="#6693C5FD">

<ScrollViewer Padding="0,0,24,0">

<reactiveUi:ViewModelViewHost x:Name="MarkdownRendererViewModelViewHost" />

</ScrollViewer>
</Border>

</DockPanel>
Expand Down
3 changes: 3 additions & 0 deletions src/NexusMods.Icons/IconValues.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ public static class IconValues
// https://pictogrammers.com/library/mdi/icon/information-outline/
public static readonly IconValue Info = new ProjektankerIcon("mdi-information-outline");

// https://pictogrammers.com/library/mdi/icon/information/
public static readonly IconValue InfoFilled = new ProjektankerIcon("mdi-information");

#endregion

#region AV
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@
<icons:UnifiedIcon Classes="Package" />
<icons:UnifiedIcon Classes="Cardiology" />
<icons:UnifiedIcon Classes="LibraryOutline" />
<icons:UnifiedIcon Classes="CollectionsOutline" />
<icons:UnifiedIcon Classes="InfoFilled" />
</WrapPanel>
<WrapPanel>
<icons:UnifiedIcon Classes="Nexus" />
Expand Down Expand Up @@ -594,4 +596,7 @@
<Style Selector="icons|UnifiedIcon.Swap">
<Setter Property="Value" Value="{x:Static icons:IconValues.Swap}" />
</Style>
<Style Selector="icons|UnifiedIcon.InfoFilled">
<Setter Property="Value" Value="{x:Static icons:IconValues.InfoFilled}" />
</Style>
</Styles>

0 comments on commit 55e81e8

Please sign in to comment.