mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-07-01 04:20:19 +12:00
Improved colorblind accessibility.
This commit is contained in:
parent
fb414084b4
commit
78e8624a45
|
@ -25,7 +25,7 @@
|
||||||
<GridViewColumn x:Name="InstalledColumn" Header="Installed">
|
<GridViewColumn x:Name="InstalledColumn" Header="Installed">
|
||||||
<GridViewColumn.CellTemplate>
|
<GridViewColumn.CellTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<TextBlock Text="{Binding InstalledVersion}" Foreground="{Binding GetVersionColor}" />
|
<TextBlock Text="{Binding InstalledVersion}" Foreground="{Binding GetVersionColor}" TextDecorations="{Binding GetVersionDecoration}" />
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</GridViewColumn.CellTemplate>
|
</GridViewColumn.CellTemplate>
|
||||||
</GridViewColumn>
|
</GridViewColumn>
|
||||||
|
|
|
@ -491,6 +491,15 @@ namespace ModAssistant.Pages
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public string GetVersionDecoration
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if (!IsInstalled) return "None";
|
||||||
|
return InstalledVersion == ModVersion ? "None" : "Strikethrough";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public bool CanDelete
|
public bool CanDelete
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
|
Loading…
Reference in a new issue