diff --git a/Wino.Core.Domain/Interfaces/IPreferencesService.cs b/Wino.Core.Domain/Interfaces/IPreferencesService.cs
index 8d4f4464..6fc0d80a 100644
--- a/Wino.Core.Domain/Interfaces/IPreferencesService.cs
+++ b/Wino.Core.Domain/Interfaces/IPreferencesService.cs
@@ -62,6 +62,11 @@ public interface IPreferencesService : INotifyPropertyChanged
///
bool IsStoreUpdateNotificationsEnabled { get; set; }
+ ///
+ /// Setting: Whether the Wino account profile button in the shell title bar should be hidden.
+ ///
+ bool IsWinoAccountButtonHidden { get; set; }
+
#endregion
#region Mail
@@ -246,4 +251,3 @@ public interface IPreferencesService : INotifyPropertyChanged
#endregion
}
-
diff --git a/Wino.Core.Domain/Translations/en_US/resources.json b/Wino.Core.Domain/Translations/en_US/resources.json
index 97dfd7e4..aa9843e4 100644
--- a/Wino.Core.Domain/Translations/en_US/resources.json
+++ b/Wino.Core.Domain/Translations/en_US/resources.json
@@ -718,6 +718,8 @@
"SettingsAppPreferences_StartupBehavior_FatalError": "Fatal error occurred while changing the startup mode for Wino Mail.",
"SettingsAppPreferences_StartupBehavior_Title": "Start minimized on Windows startup",
"SettingsAppPreferences_Title": "App Preferences",
+ "SettingsAppPreferences_HideWinoAccountButton_Title": "Hide Wino account button in title bar",
+ "SettingsAppPreferences_HideWinoAccountButton_Description": "Hide the title bar profile button that opens the Wino account flyout.",
"SettingsAppPreferences_StoreUpdateNotifications_Title": "Store update notifications",
"SettingsAppPreferences_StoreUpdateNotifications_Description": "Show notifications and footer actions when a Microsoft Store update is available.",
"SettingsAutoSelectNextItem_Description": "Select the next item after you delete or move a mail.",
diff --git a/Wino.Mail.WinUI/Services/PreferencesService.cs b/Wino.Mail.WinUI/Services/PreferencesService.cs
index 401c7f64..0a4e18fd 100644
--- a/Wino.Mail.WinUI/Services/PreferencesService.cs
+++ b/Wino.Mail.WinUI/Services/PreferencesService.cs
@@ -313,6 +313,13 @@ public class PreferencesService(IConfigurationService configurationService) : Ob
get => _configurationService.Get(nameof(IsStoreUpdateNotificationsEnabled), true);
set => SetPropertyAndSave(nameof(IsStoreUpdateNotificationsEnabled), value);
}
+
+ public bool IsWinoAccountButtonHidden
+ {
+ get => _configurationService.Get(nameof(IsWinoAccountButtonHidden), false);
+ set => SetPropertyAndSave(nameof(IsWinoAccountButtonHidden), value);
+ }
+
public WinoApplicationMode DefaultApplicationMode
{
get
diff --git a/Wino.Mail.WinUI/ShellWindow.xaml b/Wino.Mail.WinUI/ShellWindow.xaml
index 181d4342..49cf1839 100644
--- a/Wino.Mail.WinUI/ShellWindow.xaml
+++ b/Wino.Mail.WinUI/ShellWindow.xaml
@@ -6,6 +6,7 @@
xmlns:coreControls="using:Wino.Mail.WinUI.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:domain="using:Wino.Core.Domain"
+ xmlns:helpers="using:Wino.Helpers"
xmlns:local="using:Wino.Mail.WinUI"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:notifyicon="using:H.NotifyIcon"
@@ -89,7 +90,8 @@