Added setting to show/hide action bar in mail list

This commit is contained in:
Aleh Khantsevich
2024-08-29 01:13:51 +02:00
parent 552fca8df7
commit 945c747e3e
6 changed files with 35 additions and 5 deletions

View File

@@ -155,5 +155,10 @@ namespace Wino.Core.Domain.Interfaces
/// Setting: Gets or sets what should happen to server app when the client is terminated.
/// </summary>
ServerBackgroundMode ServerTerminationBehavior { get; set; }
/// <summary>
/// Setting: Whether the mail list action bar is enabled or not.
/// </summary>
bool IsMailListActionBarEnabled { get; set; }
}
}

View File

@@ -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",

View File

@@ -2619,7 +2619,7 @@ namespace Wino.Core.Domain
public static string SettingsSemanticZoom_Title => Resources.GetTranslatedString(@"SettingsSemanticZoom_Title");
/// <summary>
/// Hide/show thepreview text.
/// Hide/show the preview text.
/// </summary>
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");
/// <summary>
/// Remove the link between accounts. This will not delete your accounts.
/// Hide/show action bar at top of message list.
/// </summary>
public static string SettingsMailListActionBar_Description => Resources.GetTranslatedString(@"SettingsMailListActionBar_Description");
/// <summary>
/// Show mail list actions
/// </summary>
public static string SettingsMailListActionBar_Title => Resources.GetTranslatedString(@"SettingsMailListActionBar_Title");
/// <summary>
/// Remove the link between accounts. his will not delete your accounts.
/// </summary>
public static string SettingsUnlinkAccounts_Description => Resources.GetTranslatedString(@"SettingsUnlinkAccounts_Description");

View File

@@ -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);

View File

@@ -284,7 +284,7 @@
Margin="0,5,5,0"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
CornerRadius="8"
Visibility="Collapsed">
Visibility="{x:Bind ViewModel.PreferencesService.IsMailListActionBarEnabled}">
<CommandBar
HorizontalAlignment="Left"
DefaultLabelPosition="Collapsed"

File diff suppressed because one or more lines are too long