diff --git a/Wino.Core.Domain/Interfaces/IPreferencesService.cs b/Wino.Core.Domain/Interfaces/IPreferencesService.cs index 505b309c..c5c377ea 100644 --- a/Wino.Core.Domain/Interfaces/IPreferencesService.cs +++ b/Wino.Core.Domain/Interfaces/IPreferencesService.cs @@ -155,5 +155,10 @@ namespace Wino.Core.Domain.Interfaces /// Setting: Gets or sets what should happen to server app when the client is terminated. /// ServerBackgroundMode ServerTerminationBehavior { get; set; } + + /// + /// Setting: Whether the mail list action bar is enabled or not. + /// + bool IsMailListActionBarEnabled { get; set; } } } diff --git a/Wino.Core.Domain/Translations/en_US/resources.json b/Wino.Core.Domain/Translations/en_US/resources.json index c0739152..807d8b08 100644 --- a/Wino.Core.Domain/Translations/en_US/resources.json +++ b/Wino.Core.Domain/Translations/en_US/resources.json @@ -519,7 +519,7 @@ "SettingsRenameMergeAccount_Title": "Rename", "SettingsSemanticZoom_Description": "This will allow you to click on the headers in messages list and go to specific date", "SettingsSemanticZoom_Title": "Semantic Zoom for Date Headers", - "SettingsShowPreviewText_Description": "Hide/show thepreview text.", + "SettingsShowPreviewText_Description": "Hide/show the preview text.", "SettingsShowPreviewText_Title": "Show Preview Text", "SettingsShowSenderPictures_Description": "Hide/show the thumbnail sender pictures.", "SettingsShowSenderPictures_Title": "Show Sender Avatars", @@ -533,7 +533,9 @@ "SettingsStore_Title": "Rate in Store", "SettingsThreads_Description": "Organize messages into conversation threads.", "SettingsThreads_Title": "Conversation Threading", - "SettingsUnlinkAccounts_Description": "Remove the link between accounts. This will not delete your accounts.", + "SettingsMailListActionBar_Description": "Hide/show action bar at top of message list.", + "SettingsMailListActionBar_Title": "Show mail list actions", + "SettingsUnlinkAccounts_Description": "Remove the link between accounts. his will not delete your accounts.", "SettingsUnlinkAccounts_Title": "Unlink Accounts", "SortingOption_Date": "by date", "SortingOption_Name": "by name", diff --git a/Wino.Core.Domain/Translator.Designer.cs b/Wino.Core.Domain/Translator.Designer.cs index 4f086782..ca031f72 100644 --- a/Wino.Core.Domain/Translator.Designer.cs +++ b/Wino.Core.Domain/Translator.Designer.cs @@ -2619,7 +2619,7 @@ namespace Wino.Core.Domain public static string SettingsSemanticZoom_Title => Resources.GetTranslatedString(@"SettingsSemanticZoom_Title"); /// - /// Hide/show thepreview text. + /// Hide/show the preview text. /// public static string SettingsShowPreviewText_Description => Resources.GetTranslatedString(@"SettingsShowPreviewText_Description"); @@ -2689,7 +2689,17 @@ namespace Wino.Core.Domain public static string SettingsThreads_Title => Resources.GetTranslatedString(@"SettingsThreads_Title"); /// - /// Remove the link between accounts. This will not delete your accounts. + /// Hide/show action bar at top of message list. + /// + public static string SettingsMailListActionBar_Description => Resources.GetTranslatedString(@"SettingsMailListActionBar_Description"); + + /// + /// Show mail list actions + /// + public static string SettingsMailListActionBar_Title => Resources.GetTranslatedString(@"SettingsMailListActionBar_Title"); + + /// + /// Remove the link between accounts. his will not delete your accounts. /// public static string SettingsUnlinkAccounts_Description => Resources.GetTranslatedString(@"SettingsUnlinkAccounts_Description"); diff --git a/Wino.Core.UWP/Services/PreferencesService.cs b/Wino.Core.UWP/Services/PreferencesService.cs index 7d77aef5..d7826f0e 100644 --- a/Wino.Core.UWP/Services/PreferencesService.cs +++ b/Wino.Core.UWP/Services/PreferencesService.cs @@ -64,6 +64,12 @@ namespace Wino.Core.UWP.Services set => SetPropertyAndSave(nameof(IsThreadingEnabled), value); } + public bool IsMailListActionBarEnabled + { + get => _configurationService.Get(nameof(IsMailListActionBarEnabled), false); + set => SetPropertyAndSave(nameof(IsMailListActionBarEnabled), value); + } + public bool IsShowSenderPicturesEnabled { get => _configurationService.Get(nameof(IsShowSenderPicturesEnabled), true); diff --git a/Wino.Mail/Views/MailListPage.xaml b/Wino.Mail/Views/MailListPage.xaml index 3ce35de8..43315861 100644 --- a/Wino.Mail/Views/MailListPage.xaml +++ b/Wino.Mail/Views/MailListPage.xaml @@ -284,7 +284,7 @@ Margin="0,5,5,0" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" CornerRadius="8" - Visibility="Collapsed"> + Visibility="{x:Bind ViewModel.PreferencesService.IsMailListActionBarEnabled}"> + + + + + + +