Improved colorblind accessibility.

This commit is contained in:
Assistant 2019-12-18 19:40:06 -08:00
parent fb414084b4
commit 78e8624a45
2 changed files with 10 additions and 1 deletions

View file

@ -25,7 +25,7 @@
<GridViewColumn x:Name="InstalledColumn" Header="Installed">
<GridViewColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="{Binding InstalledVersion}" Foreground="{Binding GetVersionColor}" />
<TextBlock Text="{Binding InstalledVersion}" Foreground="{Binding GetVersionColor}" TextDecorations="{Binding GetVersionDecoration}" />
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>

View file

@ -491,6 +491,15 @@ namespace ModAssistant.Pages
}
}
public string GetVersionDecoration
{
get
{
if (!IsInstalled) return "None";
return InstalledVersion == ModVersion ? "None" : "Strikethrough";
}
}
public bool CanDelete
{
get