From 02e99066ca3a03a7c520fd37f9a267fbeb8f7513 Mon Sep 17 00:00:00 2001 From: Tiktack Date: Tue, 10 Sep 2024 17:20:14 +0200 Subject: [PATCH] Hotfix: Change FontIcon to PathIcon/SymbolIcon for Win10 users. (#358) * Replaced Segoe Icons with Path/Symbol * Add tooltips --- .../Translations/en_US/resources.json | 2 ++ Wino.Core.Domain/Translator.Designer.cs | 10 ++++++++ Wino.Mail/Views/ComposePage.xaml | 11 ++++----- Wino.Mail/Views/ComposePage.xaml.cs | 2 +- Wino.Mail/Views/MailListPage.xaml | 24 ++++++++++++------- 5 files changed, 33 insertions(+), 16 deletions(-) diff --git a/Wino.Core.Domain/Translations/en_US/resources.json b/Wino.Core.Domain/Translations/en_US/resources.json index 807d8b08..43c44b18 100644 --- a/Wino.Core.Domain/Translations/en_US/resources.json +++ b/Wino.Core.Domain/Translations/en_US/resources.json @@ -54,6 +54,8 @@ "Buttons_Yes": "Yes", "Buttons_Reset": "Reset", "Buttons_Send": "Send", + "Buttons_Sync": "Synchronize", + "Buttons_Multiselect": "Select Multiple", "Center": "Center", "ComingSoon": "Coming soon...", "ComposerFrom": "From: ", diff --git a/Wino.Core.Domain/Translator.Designer.cs b/Wino.Core.Domain/Translator.Designer.cs index ca031f72..480c4ddb 100644 --- a/Wino.Core.Domain/Translator.Designer.cs +++ b/Wino.Core.Domain/Translator.Designer.cs @@ -293,6 +293,16 @@ namespace Wino.Core.Domain /// public static string Buttons_Send => Resources.GetTranslatedString(@"Buttons_Send"); + /// + /// Synchronize + /// + public static string Buttons_Sync => Resources.GetTranslatedString(@"Buttons_Sync"); + + /// + /// Select Multiple + /// + public static string Buttons_Multiselect => Resources.GetTranslatedString(@"Buttons_Multiselect"); + /// /// Center /// diff --git a/Wino.Mail/Views/ComposePage.xaml b/Wino.Mail/Views/ComposePage.xaml index 9fb6ac6c..88c57b22 100644 --- a/Wino.Mail/Views/ComposePage.xaml +++ b/Wino.Mail/Views/ComposePage.xaml @@ -363,10 +363,9 @@ - + + + @@ -383,13 +382,13 @@ High - + diff --git a/Wino.Mail/Views/ComposePage.xaml.cs b/Wino.Mail/Views/ComposePage.xaml.cs index 35926327..8b14b507 100644 --- a/Wino.Mail/Views/ComposePage.xaml.cs +++ b/Wino.Mail/Views/ComposePage.xaml.cs @@ -624,7 +624,7 @@ namespace Wino.Views var selectedImportance = (MessageImportance)senderButton.Tag; ViewModel.SelectedMessageImportance = selectedImportance; - (ImportanceSplitButton.Content as FontIcon).Glyph = (senderButton.Content as FontIcon).Glyph; + ((ImportanceSplitButton.Content as Viewbox).Child as SymbolIcon).Symbol = (senderButton.Content as SymbolIcon).Symbol; } } diff --git a/Wino.Mail/Views/MailListPage.xaml b/Wino.Mail/Views/MailListPage.xaml index 1d87b243..484b839d 100644 --- a/Wino.Mail/Views/MailListPage.xaml +++ b/Wino.Mail/Views/MailListPage.xaml @@ -325,12 +325,15 @@ Background="Transparent" BorderThickness="0" Command="{x:Bind ViewModel.SyncFolderCommand}" - IsEnabled="{x:Bind ViewModel.CanSynchronize, Mode=OneWay}"> + IsEnabled="{x:Bind ViewModel.CanSynchronize, Mode=OneWay}" + ToolTipService.ToolTip="{x:Bind domain:Translator.Buttons_Sync}"> - + + + - + + +