mirror of
https://github.com/achiez/NebulaAuth-Steam-Desktop-Authenticator-by-Achies.git
synced 2026-07-25 06:14:31 +00:00
9016f96b6a
- Code clean-ups - Added "Copy File" support in mafile context menu - Added hotkeys support to "Copy Login" and "Copy File" commands - Added experimental feature "Ignore Patch Tuesday errors" - Added MAAC batch control - Added SessionID client-side generation in MafileSerializer to support mafiles without SessionID (especially from SDA) - SplashScreen.png was slightly enhanced
24 lines
661 B
C#
24 lines
661 B
C#
using System.Globalization;
|
|
using System.Windows.Data;
|
|
using System.Windows.Media;
|
|
using System;
|
|
|
|
namespace NebulaAuth.Converters;
|
|
|
|
public class PortableMaClientStatusToColorConverter : IValueConverter
|
|
{
|
|
public object Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
|
|
{
|
|
if (value is false)
|
|
{
|
|
return new SolidColorBrush(Color.FromRgb(187, 224, 139));
|
|
}
|
|
return new SolidColorBrush(Color.FromRgb(224, 139, 139));
|
|
|
|
}
|
|
|
|
public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture)
|
|
{
|
|
throw new NotSupportedException();
|
|
}
|
|
} |