optimized and add diagnostic feature
This commit is contained in:
@ -244,4 +244,23 @@ namespace Billing.UI
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
public class TintColorConverter : IValueConverter
|
||||
{
|
||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
if (value is long l)
|
||||
{
|
||||
return l.IsTransparent() ?
|
||||
BaseTheme.CurrentPrimaryColor :
|
||||
l.ToColor();
|
||||
}
|
||||
return Color.Transparent;
|
||||
}
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user