Permalink
Browse files

Merge branch 'colors'

  • Loading branch information...
nopara73 committed Nov 8, 2018
2 parents 0525538 + f515740 commit 79fb38be0398762253cd50529bd54f22a3a21866
@@ -63,7 +63,7 @@
</ToolTip.Tip>
</Path>
<TextBlock Grid.Column="2" Text="{Binding AmountBtc}" />
<Panel Grid.Column="3" VerticalAlignment="Center" HorizontalAlignment="Center"
<Panel Grid.Column="3" VerticalAlignment="Center" HorizontalAlignment="Center"
DataContext="{Binding AnonymitySet, Converter={StaticResource PrivacyLevelValueConverter}}"
ToolTip.Tip="{Binding ToolTip}">
<DrawingPresenter Drawing="{Binding Icon}" Margin="0 0 25 0" />
@@ -15,7 +15,14 @@ public class MoneyBrushConverter : IValueConverter
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
var money = decimal.Parse((string)value);
return money < 0 ? Brushes.IndianRed : Brushes.Green;
if (money < 0)
{
return Brushes.IndianRed;
}
else
{
return Brushes.MediumSeaGreen;
}
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)

0 comments on commit 79fb38b

Please sign in to comment.