mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-09-28 23:31:33 +12:00
Improved colorblind accessibility.
This commit is contained in:
parent
fb414084b4
commit
78e8624a45
2 changed files with 10 additions and 1 deletions
|
@ -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>
|
||||
|
|
|
@ -491,6 +491,15 @@ namespace ModAssistant.Pages
|
|||
}
|
||||
}
|
||||
|
||||
public string GetVersionDecoration
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!IsInstalled) return "None";
|
||||
return InstalledVersion == ModVersion ? "None" : "Strikethrough";
|
||||
}
|
||||
}
|
||||
|
||||
public bool CanDelete
|
||||
{
|
||||
get
|
||||
|
|
Loading…
Reference in a new issue