Initial commit: WpywMail 自建邮件系统:.NET 8 原生 SMTP/IMAP 服务端(DKIM 签名、SPF/DKIM/DMARC 入站校验、SQLite 存储、完整账号体系)、Node 服务端、WinUI 3 客户端与 Web 前端
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using Microsoft.UI.Xaml;
|
||||
using Microsoft.UI.Xaml.Data;
|
||||
|
||||
namespace WpywMail.Client;
|
||||
|
||||
public sealed class UnreadBackgroundConverter : IValueConverter
|
||||
{
|
||||
public object Convert(object value, Type targetType, object parameter, string language) =>
|
||||
value is true ? Application.Current.Resources["AccentSubtleBrush"] : Application.Current.Resources["SurfaceBrush"];
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, string language) => throw new NotSupportedException();
|
||||
}
|
||||
|
||||
public sealed class UnreadWeightConverter : IValueConverter
|
||||
{
|
||||
public object Convert(object value, Type targetType, object parameter, string language) =>
|
||||
value is true ? Microsoft.UI.Text.FontWeights.SemiBold : Microsoft.UI.Text.FontWeights.Normal;
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, string language) => throw new NotSupportedException();
|
||||
}
|
||||
Reference in New Issue
Block a user