Files
Wino-Mail/Wino.Mail.WinUI/Views/Account/AccountDetailsPage.xaml
T

538 lines
84 KiB
XML
Raw Normal View History

2025-11-15 14:52:01 +01:00
<abstract:AccountDetailsPageAbstract
2025-09-29 11:16:14 +02:00
x:Class="Wino.Views.AccountDetailsPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:abstract="using:Wino.Views.Abstract"
2026-03-09 00:28:10 +01:00
xmlns:accounts="using:Wino.Core.Domain.Models.Accounts"
xmlns:calendar="using:Wino.Core.Domain.Entities.Calendar"
2025-09-29 11:16:14 +02:00
xmlns:controls="using:CommunityToolkit.WinUI.Controls"
xmlns:controls1="using:Wino.Controls"
2025-11-15 14:52:01 +01:00
xmlns:coreControls="using:Wino.Mail.WinUI.Controls"
2025-09-29 11:16:14 +02:00
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
2026-03-09 00:28:10 +01:00
xmlns:data="using:Wino.Core.ViewModels.Data"
2025-09-29 11:16:14 +02:00
xmlns:domain="using:Wino.Core.Domain"
xmlns:folders="using:Wino.Core.Domain.Models.Folders"
xmlns:helpers="using:Wino.Helpers"
xmlns:interactivity="using:Microsoft.Xaml.Interactivity"
xmlns:interfaces="using:Wino.Core.Domain.Interfaces"
xmlns:local="using:Wino.Views"
2026-03-07 01:46:07 +01:00
xmlns:mailViewModels="using:Wino.Mail.ViewModels"
2025-09-29 11:16:14 +02:00
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
xmlns:ui="using:CommunityToolkit.WinUI"
x:Name="PageRoot"
2025-09-29 11:16:14 +02:00
mc:Ignorable="d">
<Page.Resources>
<DataTemplate x:Key="FolderStructureMenuFlyoutItemTemplate" x:DataType="folders:IMailItemFolder">
<TreeViewItem
CanDrag="False"
IsExpanded="True"
ItemsSource="{x:Bind ChildFolders}">
<Grid Height="32">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="200" />
</Grid.ColumnDefinitions>
<coreControls:WinoFontIcon FontSize="20" Icon="{x:Bind helpers:XamlHelpers.GetSpecialFolderPathIconGeometry(SpecialFolderType)}" />
<TextBlock
Grid.Column="1"
Margin="12,0"
VerticalAlignment="Center"
Text="{x:Bind FolderName}" />
<Grid Grid.Column="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<CheckBox
MinWidth="0"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Checked="SyncFolderToggled"
IsChecked="{x:Bind IsSynchronizationEnabled}"
2026-03-07 01:46:07 +01:00
Tag="{x:Bind}"
2025-09-29 11:16:14 +02:00
Unchecked="SyncFolderToggled"
Visibility="{x:Bind IsMoveTarget}" />
<CheckBox
Grid.Column="1"
MinWidth="0"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Checked="UnreadBadgeCheckboxToggled"
IsChecked="{x:Bind ShowUnreadCount}"
2026-03-07 01:46:07 +01:00
Tag="{x:Bind}"
2025-09-29 11:16:14 +02:00
Unchecked="UnreadBadgeCheckboxToggled"
Visibility="{x:Bind IsMoveTarget}" />
</Grid>
</Grid>
</TreeViewItem>
</DataTemplate>
</Page.Resources>
<ScrollViewer>
<Grid RowSpacing="12">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
2026-03-08 21:21:34 +01:00
<controls:Segmented
x:Name="TabSelector"
Grid.Row="0"
2026-03-08 21:21:34 +01:00
HorizontalAlignment="Center"
SelectionChanged="OnTabSelectionChanged">
<controls:SegmentedItem Content="{x:Bind domain:Translator.AccountDetailsPage_TabGeneral, Mode=OneTime}">
<controls:SegmentedItem.Icon>
<SymbolIcon Symbol="ContactInfo" />
</controls:SegmentedItem.Icon>
</controls:SegmentedItem>
2026-03-08 21:21:34 +01:00
<controls:SegmentedItem Content="{x:Bind domain:Translator.AccountDetailsPage_TabMail, Mode=OneTime}">
<controls:SegmentedItem.Icon>
<SymbolIcon Symbol="Mail" />
</controls:SegmentedItem.Icon>
</controls:SegmentedItem>
<controls:SegmentedItem Content="{x:Bind domain:Translator.AccountDetailsPage_TabCalendar, Mode=OneTime}">
<controls:SegmentedItem.Icon>
<FontIcon Glyph="&#xE163;" />
</controls:SegmentedItem.Icon>
</controls:SegmentedItem>
</controls:Segmented>
2025-09-29 11:16:14 +02:00
<Grid
x:Name="GeneralSettingsPanel"
Grid.Row="2"
Visibility="Collapsed">
<StackPanel>
<controls:SettingsCard Description="{x:Bind domain:Translator.AccountEditDialog_Message}" Header="{x:Bind domain:Translator.AccountDetailsPage_Title}">
<controls:SettingsCard.HeaderIcon>
<SymbolIcon Symbol="Contact" />
</controls:SettingsCard.HeaderIcon>
<TextBox
Width="250"
PlaceholderText="{x:Bind domain:Translator.AccountSettingsDialog_AccountNamePlaceholder}"
Text="{x:Bind ViewModel.AccountName, Mode=TwoWay}" />
</controls:SettingsCard>
<controls:SettingsCard Description="{x:Bind domain:Translator.SettingsEditAccountDetails_Description}" Header="{x:Bind domain:Translator.AccountSettingsDialog_AccountName}">
<controls:SettingsCard.HeaderIcon>
<SymbolIcon Symbol="Mail" />
</controls:SettingsCard.HeaderIcon>
<TextBox
Width="250"
PlaceholderText="{x:Bind domain:Translator.AccountSettingsDialog_AccountNamePlaceholder}"
Text="{x:Bind ViewModel.SenderName, Mode=TwoWay}" />
</controls:SettingsCard>
2026-04-16 13:45:11 +02:00
<controls:SettingsCard Header="{x:Bind domain:Translator.IMAPSetupDialog_MailAddress}">
<controls:SettingsCard.HeaderIcon>
<SymbolIcon Symbol="Mail" />
</controls:SettingsCard.HeaderIcon>
<TextBox
Width="250"
IsReadOnly="True"
Text="{x:Bind ViewModel.Address, Mode=OneWay}" />
</controls:SettingsCard>
<controls:SettingsCard
HorizontalContentAlignment="Stretch"
VerticalContentAlignment="Stretch"
ContentAlignment="Vertical"
Description="{x:Bind domain:Translator.AccountDetailsPage_ColorPicker_Description}"
Header="{x:Bind domain:Translator.AccountDetailsPage_ColorPicker_Title}">
<controls:SettingsCard.HeaderIcon>
<PathIcon Data="F1 M 6.328125 11.835938 C 6.035156 11.835938 5.768229 11.894531 5.527344 12.011719 C 5.286458 12.128906 5.050456 12.259115 4.819336 12.402344 C 4.588216 12.545573 4.348958 12.675781 4.101562 12.792969 C 3.854167 12.910156 3.580729 12.96875 3.28125 12.96875 C 2.877604 12.96875 2.49349 12.871094 2.128906 12.675781 C 1.764323 12.480469 1.435547 12.255859 1.142578 12.001953 C 0.745443 11.656901 0.455729 11.261394 0.273438 10.81543 C 0.091146 10.369467 0 9.886068 0 9.365234 C 0 8.844401 0.071615 8.325195 0.214844 7.807617 C 0.358073 7.290039 0.533854 6.796875 0.742188 6.328125 C 0.970052 5.820312 1.233724 5.328776 1.533203 4.853516 C 1.832682 4.378256 2.158203 3.925781 2.509766 3.496094 C 2.828776 3.105469 3.167318 2.736004 3.525391 2.387695 C 3.883463 2.039389 4.277344 1.728516 4.707031 1.455078 C 5.442708 0.986328 6.225586 0.628256 7.055664 0.380859 C 7.885742 0.133465 8.736979 0.009766 9.609375 0.009766 C 10.436197 0.009766 11.25 0.117188 12.050781 0.332031 C 12.851562 0.546875 13.616536 0.849609 14.345703 1.240234 C 15.23763 1.728516 16.033527 2.298178 16.733398 2.949219 C 17.433268 3.600262 18.025715 4.322917 18.510742 5.117188 C 18.995768 5.911459 19.365234 6.769206 19.619141 7.69043 C 19.873047 8.611654 20 9.583334 20 10.605469 C 20 11.230469 19.952799 11.850586 19.858398 12.46582 C 19.763996 13.081055 19.62565 13.688151 19.443359 14.287109 C 19.300129 14.74935 19.119465 15.213217 18.901367 15.678711 C 18.683268 16.144205 18.427734 16.59017 18.134766 17.016602 C 17.841797 17.443033 17.516275 17.843424 17.158203 18.217773 C 16.800129 18.592123 16.411133 18.916016 15.991211 19.189453 C 15.571289 19.462891 15.12207 19.677734 14.643555 19.833984 C 14.165039 19.990234 13.662109 20.068359 13.134766 20.068359 C 12.841797 20.068359 12.553711 20.042318 12.270508 19.990234 C 11.987305 19.93815 11.708984 19.863281 11.435547 19.765625 C 10.86263 19.563803 10.371094 19.31315 9.960938 19.013672 C 9.550781 18.714193 9.210611 18.365885 8.94043 17.96875 C 8.670247 17.571615 8.465169 17.12565 8.325195 16.630859 C 8.185221 16.136068 8.095703 15.592448 8.056641 15 C 8.030599 14.641928 8.012695 14.283854 8.00293 13.925781 C 7.993164 13.567709 7.945963 13.212891 7.861328 12.861328 C 7.835286 12.763672 7.805989 12.659506 7.773438 12.548828 C 7.740885 12.438151 7.688802 12.347006 7.617188 12.275391 C 7.545573 12.197266 7.457682 12.128906 7.353516 12.070312 C 7.249349 12.011719 7.138672 11.966146 7.021484 11.933594 C 6.904297 11.901042 6.785481 11.876628 6.665039 11.860352 C 6.544596 11.844076 6.432292 11.835938 6.328125 11.835938 Z M 13.134766 18.818359 C 13.623047 18.818359 14.088541 18.725586 14.53125 18.540039 C 14.973958 18.354492 15.384114 18.108725 15.761719 17.802734 C 16.276041 17.386068 16.722004 16.894531 17.099609 16.328125 C 17.477213 15.761719 17.789713 15.157878 18.037109 14.516602 C 18.284504 13.875326 18.466797 13.214519 18.583984 12.53418 C 18.701172 11.853842 18.759766 11.191406 18.759766 10.546875 C 18.759766 9.641928 18.647461 8.785808 18.422852 7.978516 C 18.198242 7.171225 17.871094 6.420898 17.441406 5.727539 C 17.011719 5.03418 16.487629 4.404297 15.869141 3.837891 C 15.25065 3.271484 14.547525 2.773438 13.759766 2.34375 C 13.128255 1.998699 12.460938 1.728516 11.757812 1.533203 C 11.054688 1.337891 10.338541 1.240234 9.609375 1.240234 C 8.710938 1.240234 7.869466 1.383465 7.084961 1.669922 C 6.300456 1.956381 5.582682 2.351889 4.931641 2.856445 C 4.280599 3.361004 3.697917 3.953451 3.183594 4.633789 C 2.669271 5.314128 2.236328 6.048178 1.884766 6.835938 C 1.702474 7.233074 1.551107 7.64323 1.430664 8.066406 C 1.310221 8.489584 1.25 8.922526 1.25 9.365234 C 1.25 9.703776 1.302083 10.011394 1.40625 10.288086 C 1.510417 10.564779 1.689453 10.817058 1.943359 11.044922 C 2.014974 11.110026 2.104492 11.181641 2.211914 11.259766 C 2.319336 11.337891 2.431641 11.411133 2.548828 11.479492 C 2.666016 11.547852 2.783203 11.606445 2.900391 11.655273 C 3.017578 11.704102 3.125 11.728516 3.222656 11.728516 C 3.404948 11.728516 3.60026 11.668295 3.808594 11.547852 C 4.016927 11.427409 4.
</controls:SettingsCard.HeaderIcon>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<GridView
ItemTemplate="{StaticResource AccountColorTemplate}"
ItemsSource="{x:Bind ViewModel.AvailableColors}"
SelectedItem="{x:Bind ViewModel.SelectedColor, Mode=TwoWay}" />
<Button
Grid.Row="1"
Width="100"
HorizontalAlignment="Right"
Command="{x:Bind ViewModel.ResetColorCommand}"
Content="{x:Bind domain:Translator.Buttons_Reset}" />
</Grid>
</controls:SettingsCard>
<controls:SettingsCard
Description="{x:Bind domain:Translator.SettingsEditAccountDetails_ImapCalDavSettings_Description}"
Header="{x:Bind domain:Translator.SettingsEditAccountDetails_ImapCalDavSettings_Title}"
Visibility="{x:Bind ViewModel.IsImapServer, Mode=OneWay}">
<controls:SettingsCard.HeaderIcon>
<PathIcon Data="F1 M 20 10 C 20 10.768229 19.913736 11.518555 19.741211 12.250977 C 19.568684 12.983398 19.322916 13.680014 19.003906 14.34082 C 18.684895 15.001628 18.295898 15.621745 17.836914 16.201172 C 17.37793 16.7806 16.863605 17.303061 16.293945 17.768555 C 15.724283 18.234049 15.102538 18.634439 14.428711 18.969727 C 13.754882 19.305014 13.043619 19.560547 12.294922 19.736328 C 12.431641 19.423828 12.5 19.095053 12.5 18.75 L 12.5 16.396484 C 12.695312 15.973308 12.864583 15.540365 13.007812 15.097656 C 13.151041 14.654948 13.271484 14.205729 13.369141 13.75 L 12.5 13.75 L 12.5 12.5 L 13.583984 12.5 C 13.636067 12.083334 13.676758 11.668295 13.706055 11.254883 C 13.735352 10.841472 13.75 10.423178 13.75 10 C 13.75 9.576823 13.735352 9.158529 13.706055 8.745117 C 13.676758 8.331706 13.636067 7.916667 13.583984 7.5 L 6.40625 7.5 C 6.354166 7.929688 6.315104 8.346354 6.289062 8.75 L 5.039062 8.75 C 5.052083 8.541667 5.066731 8.333334 5.083008 8.125 C 5.099284 7.916668 5.123698 7.708334 5.15625 7.5 L 1.611328 7.5 C 1.552734 7.708334 1.499023 7.916668 1.450195 8.125 C 1.401367 8.333334 1.363932 8.541667 1.337891 8.75 C 1.103516 8.75 0.882161 8.774414 0.673828 8.823242 C 0.465495 8.87207 0.257161 8.951823 0.048828 9.0625 C 0.126953 8.209637 0.307617 7.392579 0.59082 6.611328 C 0.874023 5.830079 1.241862 5.104168 1.694336 4.433594 C 2.14681 3.763021 2.672526 3.154297 3.271484 2.607422 C 3.870443 2.060547 4.524739 1.595053 5.234375 1.210938 C 5.94401 0.826824 6.700846 0.528973 7.504883 0.317383 C 8.308919 0.105795 9.140625 0 10 0 C 10.917969 0 11.803385 0.118816 12.65625 0.356445 C 13.509114 0.594076 14.305013 0.93099 15.043945 1.367188 C 15.782877 1.803387 16.456705 2.325848 17.06543 2.93457 C 17.674152 3.543295 18.196613 4.217123 18.632812 4.956055 C 19.06901 5.694987 19.405924 6.490886 19.643555 7.34375 C 19.881184 8.196615 20 9.082031 20 10 Z M 13.369141 6.25 C 13.317057 6.009115 13.242188 5.717773 13.144531 5.375977 C 13.046875 5.03418 12.926432 4.679362 12.783203 4.311523 C 12.639973 3.943686 12.473957 3.575848 12.285156 3.208008 C 12.096354 2.84017 11.884766 2.511395 11.650391 2.22168 C 11.416016 1.931967 11.162109 1.697592 10.888672 1.518555 C 10.615234 1.33952 10.31901 1.25 10 1.25 C 9.680989 1.25 9.384766 1.33952 9.111328 1.518555 C 8.837891 1.697592 8.583984 1.931967 8.349609 2.22168 C 8.115234 2.511395 7.903646 2.84017 7.714844 3.208008 C 7.526042 3.575848 7.360026 3.943686 7.216797 4.311523 C 7.073567 4.679362 6.953125 5.03418 6.855469 5.375977 C 6.757812 5.717773 6.682942 6.009115 6.630859 6.25 Z M 5.351562 6.25 C 5.429688 5.859375 5.522461 5.463867 5.629883 5.063477 C 5.737305 4.663086 5.864258 4.269206 6.010742 3.881836 C 6.157227 3.494467 6.326497 3.116863 6.518555 2.749023 C 6.710612 2.381186 6.923828 2.037762 7.158203 1.71875 C 6.598307 1.907553 6.067708 2.151693 5.566406 2.451172 C 5.065104 2.750652 4.597981 3.092449 4.165039 3.476562 C 3.732096 3.860678 3.341471 4.287109 2.993164 4.755859 C 2.644857 5.224609 2.34375 5.722656 2.089844 6.25 Z M 17.900391 6.25 C 17.652994 5.722656 17.353516 5.226237 17.001953 4.760742 C 16.650391 4.295248 16.258137 3.868816 15.825195 3.481445 C 15.392252 3.094076 14.925129 2.752279 14.423828 2.456055 C 13.922525 2.159832 13.395182 1.917318 12.841797 1.728516 C 13.082682 2.047527 13.297525 2.389324 13.486328 2.753906 C 13.675129 3.11849 13.842772 3.496094 13.989258 3.886719 C 14.135741 4.277345 14.262694 4.672853 14.370117 5.073242 C 14.477538 5.473634 14.570312 5.865887 14.648438 6.25 Z M 14.84375 7.5 C 14.902344 7.916667 14.943033 8.331706 14.96582 8.745117 C 14.988605 9.158529 14.999999 9.576823 15 10 C 14.999999 10.423178 14.988605 10.841472 14.96582 11.254883 C 14.943033 11.668295 14.902344 12.083334 14.84375 12.5 L 18.388672 12.5 C 18.629557 11.699219 18.75 10.865886 18.75 10 C 18.75 9.134115 18.629557 8.300781 18.388672 7.5 Z M 10 10 C 10.169271 10 10.330403 10.032553 10.483398 10.097656 C 10.636393 10.162761 10.769856 10.252279 10.883789 10.366211 C 10.997721 10.480144 11.087239 10.613607 11.152344 10.766602 C 11.217447 10.919597 11.2
</controls:SettingsCard.HeaderIcon>
<Button
Width="160"
HorizontalAlignment="Right"
Command="{x:Bind ViewModel.EditImapCalDavSettingsCommand}"
Content="{x:Bind domain:Translator.SettingsEditAccountDetails_ImapCalDavSettings_Action}"
Style="{ThemeResource AccentButtonStyle}" />
</controls:SettingsCard>
<controls:SettingsCard Description="{x:Bind domain:Translator.Buttons_Save}" Header="{x:Bind domain:Translator.SettingsEditAccountDetails_Title}">
<controls:SettingsCard.HeaderIcon>
<SymbolIcon Symbol="Save" />
</controls:SettingsCard.HeaderIcon>
<Button
Width="100"
HorizontalAlignment="Right"
Command="{x:Bind ViewModel.SaveChangesCommand}"
Content="{x:Bind domain:Translator.Buttons_Save}"
Style="{ThemeResource AccentButtonStyle}" />
</controls:SettingsCard>
<controls:SettingsCard Description="{x:Bind domain:Translator.SettingsDeleteAccount_Description}" Header="{x:Bind domain:Translator.SettingsDeleteAccount_Title}">
<controls:SettingsCard.HeaderIcon>
<SymbolIcon Symbol="Delete" />
</controls:SettingsCard.HeaderIcon>
<Button
Width="100"
Background="{ThemeResource DeleteBrush}"
Command="{x:Bind ViewModel.DeleteAccountCommand}"
Content="{x:Bind domain:Translator.Buttons_Delete}" />
</controls:SettingsCard>
</StackPanel>
</Grid>
<!-- Mail Settings Panel -->
<Grid
x:Name="MailSettingsPanel"
2026-03-08 21:21:34 +01:00
Grid.Row="2"
Visibility="Collapsed">
<StackPanel Spacing="4">
<StackPanel.ChildrenTransitions>
<TransitionCollection>
<RepositionThemeTransition IsStaggeringEnabled="False" />
</TransitionCollection>
</StackPanel.ChildrenTransitions>
2025-09-29 11:16:14 +02:00
2026-04-14 00:03:48 +02:00
<muxc:InfoBar
2026-04-18 00:02:54 +02:00
Title="{x:Bind domain:Translator.AccountDetailsPage_InitialSynchronization_Title}"
2026-04-14 00:03:48 +02:00
Margin="0,0,0,8"
2026-04-18 00:02:54 +02:00
IsOpen="True"
2026-04-14 00:03:48 +02:00
Message="{x:Bind ViewModel.InitialSynchronizationSummary, Mode=OneWay}"
Severity="Informational"
Visibility="{x:Bind ViewModel.IsInitialSynchronizationSummaryVisible, Mode=OneWay}" />
<controls:SettingsCard
Command="{x:Bind ViewModel.EditAliasesCommand}"
Description="{x:Bind domain:Translator.SettingsManageAliases_Description}"
Header="{x:Bind domain:Translator.SettingsManageAliases_Title}"
IsClickEnabled="True">
<controls:SettingsCard.HeaderIcon>
<PathIcon Data="F1 M 3.75 5 L 3.75 4.902344 C 3.75 4.225262 3.885091 3.588867 4.155273 2.993164 C 4.425456 2.397461 4.790039 1.878256 5.249023 1.435547 C 5.708008 0.99284 6.238606 0.642904 6.84082 0.385742 C 7.443034 0.128582 8.079427 0 8.75 0 C 9.440104 0 10.089518 0.130209 10.698242 0.390625 C 11.306966 0.651043 11.837564 1.007488 12.290039 1.459961 C 12.742513 1.912436 13.098958 2.443035 13.359375 3.051758 C 13.619791 3.660482 13.75 4.309896 13.75 5 C 13.75 5.690104 13.619791 6.339519 13.359375 6.948242 C 13.098958 7.556967 12.742513 8.087565 12.290039 8.540039 C 11.837564 8.992514 11.306966 9.348959 10.698242 9.609375 C 10.089518 9.869792 9.440104 10 8.75 10 C 8.059896 10 7.410481 9.869792 6.801758 9.609375 C 6.193034 9.348959 5.662435 8.992514 5.209961 8.540039 C 4.757487 8.087565 4.401042 7.556967 4.140625 6.948242 C 3.880208 6.339519 3.75 5.690104 3.75 5 Z M 12.5 5 L 12.5 4.921875 C 12.5 4.414062 12.399088 3.937176 12.197266 3.491211 C 11.995442 3.045248 11.722005 2.65625 11.376953 2.324219 C 11.0319 1.992188 10.633138 1.730145 10.180664 1.538086 C 9.728189 1.346029 9.251302 1.25 8.75 1.25 C 8.229166 1.25 7.740885 1.347656 7.285156 1.542969 C 6.829427 1.738281 6.432292 2.005209 6.09375 2.34375 C 5.755208 2.682293 5.488281 3.079428 5.292969 3.535156 C 5.097656 3.990887 5 4.479167 5 5 C 5 5.520834 5.097656 6.009115 5.292969 6.464844 C 5.488281 6.920573 5.755208 7.317709 6.09375 7.65625 C 6.432292 7.994792 6.829427 8.261719 7.285156 8.457031 C 7.740885 8.652344 8.229166 8.75 8.75 8.75 C 9.270833 8.75 9.759114 8.652344 10.214844 8.457031 C 10.670572 8.261719 11.067708 7.994792 11.40625 7.65625 C 11.744791 7.317709 12.011719 6.920573 12.207031 6.464844 C 12.402344 6.009115 12.5 5.520834 12.5 5 Z M 0 13.681641 C 0 13.349609 0.068359 13.035482 0.205078 12.739258 C 0.341797 12.443034 0.525716 12.184245 0.756836 11.962891 C 0.987956 11.741537 1.254883 11.567383 1.557617 11.44043 C 1.860352 11.313477 2.177734 11.25 2.509766 11.25 L 15 11.25 C 15.455729 11.25 15.87565 11.363933 16.259766 11.591797 C 16.643879 11.819662 16.949869 12.132162 17.177734 12.529297 C 17.067057 12.509766 16.962891 12.5 16.865234 12.5 C 16.676432 12.5 16.495768 12.52767 16.323242 12.583008 C 16.150715 12.638347 15.986328 12.714844 15.830078 12.8125 C 15.7194 12.708334 15.59082 12.630209 15.444336 12.578125 C 15.297852 12.526042 15.149739 12.5 15 12.5 L 2.509766 12.5 C 2.333984 12.5 2.169596 12.532553 2.016602 12.597656 C 1.863607 12.662761 1.730143 12.750651 1.616211 12.861328 C 1.502279 12.972006 1.41276 13.103842 1.347656 13.256836 C 1.282552 13.409831 1.25 13.574219 1.25 13.75 C 1.25 14.394531 1.359049 14.964193 1.577148 15.458984 C 1.795247 15.953776 2.089844 16.385092 2.460938 16.75293 C 2.832031 17.120768 3.261719 17.430014 3.75 17.680664 C 4.238281 17.931314 4.754231 18.134766 5.297852 18.291016 C 5.841471 18.447266 6.396484 18.561197 6.962891 18.632812 C 7.529297 18.704428 8.072916 18.74349 8.59375 18.75 L 9.814453 19.960938 C 9.638672 19.973959 9.461263 19.983725 9.282227 19.990234 C 9.103189 19.996744 8.925781 20 8.75 20 C 8.085938 20 7.408854 19.954428 6.71875 19.863281 C 6.028646 19.772135 5.3597 19.624023 4.711914 19.418945 C 4.064127 19.213867 3.453776 18.948568 2.880859 18.623047 C 2.307943 18.297525 1.808268 17.900391 1.381836 17.431641 C 0.955404 16.962891 0.61849 16.419271 0.371094 15.800781 C 0.123698 15.182292 0 14.475912 0 13.681641 Z M 8.75 16.875 C 8.75 16.705729 8.811849 16.559244 8.935547 16.435547 L 11.435547 13.935547 C 11.559244 13.81185 11.705729 13.75 11.875 13.75 C 12.04427 13.75 12.190754 13.81185 12.314453 13.935547 C 12.43815 14.059245 12.5 14.205729 12.5 14.375 C 12.5 14.544271 12.43815 14.690756 12.314453 14.814453 L 10.888672 16.25 L 17.861328 16.25 L 16.435547 14.814453 C 16.311848 14.690756 16.25 14.544271 16.25 14.375 C 16.25 14.205729 16.311848 14.059245 16.435547 13.935547 C 16.559244 13.81185 16.705729 13.75 16.875 13.75 C 17.04427 13.75 17.190754 13.81185 17.314453 13.935547 L 19.814453 16.435547 C 19.93815 16.559244 20 16.705729 20 16.875 C 20 17.044271 19.93815 17.190756 19.81
</controls:SettingsCard.HeaderIcon>
</controls:SettingsCard>
2026-04-15 01:18:07 +02:00
<controls:SettingsCard
Command="{x:Bind ViewModel.EditCategoriesCommand}"
Description="{x:Bind domain:Translator.SettingsMailCategories_Description}"
Header="{x:Bind domain:Translator.SettingsMailCategories_Title}"
IsClickEnabled="True">
<controls:SettingsCard.HeaderIcon>
<FontIcon FontFamily="{StaticResource SymbolThemeFontFamily}" Glyph="&#xE8EC;" />
</controls:SettingsCard.HeaderIcon>
</controls:SettingsCard>
2026-04-18 00:02:54 +02:00
<controls:SettingsExpander Description="{x:Bind domain:Translator.SettingsFolderOptions_Description}" Header="{x:Bind domain:Translator.SettingsFolderOptions_Title}">
<controls:SettingsExpander.HeaderIcon>
<PathIcon Data="F1 M 3.056641 18.75 C 2.646484 18.75 2.255859 18.666992 1.884766 18.500977 C 1.513672 18.334961 1.189779 18.113607 0.913086 17.836914 C 0.636393 17.560221 0.415039 17.236328 0.249023 16.865234 C 0.083008 16.494141 0 16.103516 0 15.693359 L 0 4.306641 C 0 3.896484 0.083008 3.505859 0.249023 3.134766 C 0.415039 2.763672 0.636393 2.439779 0.913086 2.163086 C 1.189779 1.886395 1.513672 1.665039 1.884766 1.499023 C 2.255859 1.333008 2.646484 1.25 3.056641 1.25 L 6.875 1.25 C 7.324219 1.25 7.711588 1.319988 8.037109 1.459961 C 8.36263 1.599936 8.653971 1.787109 8.911133 2.021484 C 9.168294 2.255859 9.407552 2.522787 9.628906 2.822266 C 9.85026 3.121746 10.078125 3.43099 10.3125 3.75 L 16.943359 3.75 C 17.353516 3.75 17.744141 3.833008 18.115234 3.999023 C 18.486328 4.165039 18.810221 4.386394 19.086914 4.663086 C 19.363605 4.939779 19.584961 5.263672 19.750977 5.634766 C 19.916992 6.005859 20 6.396484 20 6.806641 L 20 9.902344 C 19.817707 9.674479 19.622395 9.456381 19.414062 9.248047 C 19.205729 9.039714 18.984375 8.847656 18.75 8.671875 L 18.75 6.875 C 18.75 6.621095 18.701172 6.380209 18.603516 6.152344 C 18.505859 5.924479 18.370768 5.724284 18.198242 5.551758 C 18.025715 5.379232 17.82552 5.244142 17.597656 5.146484 C 17.369791 5.048829 17.128906 5.000001 16.875 5 L 10.185547 5 C 9.957682 5.14974 9.736328 5.299479 9.521484 5.449219 C 9.306641 5.598959 9.086914 5.732423 8.862305 5.849609 C 8.637695 5.966798 8.40332 6.062826 8.15918 6.137695 C 7.915039 6.212565 7.649739 6.25 7.363281 6.25 L 1.25 6.25 L 1.25 15.625 C 1.25 15.878906 1.298828 16.119791 1.396484 16.347656 C 1.494141 16.575521 1.629232 16.775717 1.801758 16.948242 C 1.974284 17.120768 2.174479 17.255859 2.402344 17.353516 C 2.630208 17.451172 2.871094 17.5 3.125 17.5 L 7.900391 17.5 C 8.011067 17.721354 8.129883 17.936197 8.256836 18.144531 C 8.383789 18.352865 8.522135 18.554688 8.671875 18.75 Z M 7.363281 5 C 7.539062 5.000001 7.701823 4.977215 7.851562 4.931641 C 8.001302 4.886068 8.147786 4.825847 8.291016 4.750977 C 8.434244 4.676107 8.570963 4.5931 8.701172 4.501953 C 8.83138 4.410808 8.964844 4.316406 9.101562 4.21875 C 8.951822 4.016928 8.805338 3.813477 8.662109 3.608398 C 8.51888 3.40332 8.36263 3.219402 8.193359 3.056641 C 8.024088 2.893881 7.833658 2.760418 7.62207 2.65625 C 7.410481 2.552084 7.161458 2.5 6.875 2.5 L 3.125 2.5 C 2.871094 2.5 2.630208 2.548828 2.402344 2.646484 C 2.174479 2.744141 1.974284 2.879232 1.801758 3.051758 C 1.629232 3.224285 1.494141 3.42448 1.396484 3.652344 C 1.298828 3.880209 1.25 4.121094 1.25 4.375 L 1.25 5 Z M 8.75 14.375 C 8.75 13.600261 8.898111 12.871094 9.194336 12.1875 C 9.49056 11.503906 9.892578 10.908203 10.400391 10.400391 C 10.908203 9.892578 11.503906 9.490561 12.1875 9.194336 C 12.871093 8.898112 13.60026 8.75 14.375 8.75 C 14.889322 8.75 15.385741 8.816732 15.864258 8.950195 C 16.342773 9.083659 16.790363 9.272461 17.207031 9.516602 C 17.623697 9.760742 18.004557 10.055339 18.349609 10.400391 C 18.69466 10.745443 18.989258 11.126303 19.233398 11.542969 C 19.477539 11.959636 19.66634 12.407227 19.799805 12.885742 C 19.933268 13.364258 20 13.860678 20 14.375 C 20 15.14974 19.851887 15.878906 19.555664 16.5625 C 19.259439 17.246094 18.857422 17.841797 18.349609 18.349609 C 17.841797 18.857422 17.246094 19.259439 16.5625 19.555664 C 15.878906 19.851889 15.149739 20 14.375 20 C 13.59375 20 12.861328 19.853516 12.177734 19.560547 C 11.494141 19.267578 10.898438 18.867188 10.390625 18.359375 C 9.882812 17.851562 9.482422 17.255859 9.189453 16.572266 C 8.896484 15.888672 8.75 15.15625 8.75 14.375 Z M 16.875 13.75 C 17.04427 13.75 17.190754 13.688151 17.314453 13.564453 C 17.43815 13.440756 17.5 13.294271 17.5 13.125 L 17.5 11.25 C 17.5 11.080729 17.43815 10.934245 17.314453 10.810547 C 17.190754 10.68685 17.04427 10.625 16.875 10.625 C 16.751301 10.625 16.650391 10.647787 16.572266 10.693359 C 16.494141 10.738933 16.430664 10.799154 16.381836 10.874023 C 16.333008 10.948894 16.298828 11.035156 16.279297 11.132812 C 16.259766 11.230469 16.25 11.331381 16.25 11.435547 C
</controls:SettingsExpander.HeaderIcon>
<controls:SettingsExpander.Items>
<controls:SettingsCard
2026-04-18 00:02:54 +02:00
Command="{x:Bind ViewModel.CustomizeFolderListCommand}"
Description="{x:Bind domain:Translator.FolderCustomization_EntryCardDescription}"
Header="{x:Bind domain:Translator.FolderCustomization_EntryCardTitle}"
IsClickEnabled="True">
<controls:SettingsCard.HeaderIcon>
<FontIcon FontFamily="{StaticResource SymbolThemeFontFamily}" Glyph="&#xE8FD;" />
</controls:SettingsCard.HeaderIcon>
</controls:SettingsCard>
<controls:SettingsCard
Command="{x:Bind ViewModel.SetupSpecialFoldersCommand}"
Description="{x:Bind domain:Translator.SettingsConfigureSpecialFolders_Description}"
Header="{x:Bind domain:Translator.SettingsConfigureSpecialFolders_Title}"
2026-04-18 00:02:54 +02:00
IsClickEnabled="True">
<controls:SettingsCard.HeaderIcon>
<PathIcon Data="F1 M 10.019531 1.875 C 10.31901 1.875 10.618489 1.894531 10.917969 1.933594 C 11.230469 1.972656 11.536458 2.02474 11.835938 2.089844 C 11.966146 2.115887 12.070312 2.18099 12.148438 2.285156 C 12.239583 2.376303 12.291666 2.48698 12.304688 2.617188 L 12.460938 3.90625 C 12.473957 4.088542 12.532551 4.251303 12.636719 4.394531 C 12.740885 4.550782 12.871094 4.67448 13.027344 4.765625 C 13.183594 4.856771 13.352864 4.908854 13.535156 4.921875 C 13.717447 4.934896 13.893229 4.902344 14.0625 4.824219 L 15.234375 4.316406 C 15.351562 4.264323 15.47526 4.251303 15.605469 4.277344 C 15.735677 4.303386 15.846354 4.361979 15.9375 4.453125 C 16.354166 4.908854 16.71875 5.403646 17.03125 5.9375 C 17.34375 6.471355 17.591145 7.031251 17.773438 7.617188 C 17.786457 7.65625 17.792969 7.688803 17.792969 7.714844 C 17.792969 7.740886 17.792969 7.773438 17.792969 7.8125 C 17.792969 7.903646 17.773438 7.994792 17.734375 8.085938 C 17.695312 8.177084 17.630207 8.248698 17.539062 8.300781 L 16.503906 9.082031 C 16.360676 9.186198 16.25 9.316406 16.171875 9.472656 C 16.080729 9.641928 16.035156 9.817709 16.035156 10 C 16.035156 10.182292 16.080729 10.358073 16.171875 10.527344 C 16.25 10.683594 16.360676 10.813803 16.503906 10.917969 L 17.539062 11.699219 C 17.630207 11.751303 17.695312 11.822917 17.734375 11.914062 C 17.786457 12.005209 17.8125 12.096354 17.8125 12.1875 C 17.8125 12.226562 17.805988 12.259115 17.792969 12.285156 C 17.792969 12.311198 17.786457 12.34375 17.773438 12.382812 C 17.591145 12.96875 17.34375 13.528646 17.03125 14.0625 C 16.71875 14.596354 16.354166 15.091146 15.9375 15.546875 C 15.846354 15.638021 15.735677 15.696615 15.605469 15.722656 C 15.47526 15.748698 15.351562 15.735678 15.234375 15.683594 L 14.0625 15.175781 C 13.893229 15.097656 13.717447 15.065104 13.535156 15.078125 C 13.352864 15.091146 13.183594 15.143229 13.027344 15.234375 C 12.871094 15.325521 12.740885 15.442709 12.636719 15.585938 C 12.532551 15.742188 12.473957 15.911459 12.460938 16.09375 L 12.304688 17.363281 C 12.291666 17.49349 12.246094 17.610678 12.167969 17.714844 C 12.076822 17.81901 11.966146 17.884115 11.835938 17.910156 C 11.536458 17.97526 11.230469 18.027344 10.917969 18.066406 C 10.618489 18.105469 10.3125 18.125 10 18.125 C 9.6875 18.125 9.38151 18.105469 9.082031 18.066406 C 8.769531 18.027344 8.463541 17.97526 8.164062 17.910156 C 8.033854 17.884115 7.923177 17.81901 7.832031 17.714844 C 7.753906 17.610678 7.708333 17.49349 7.695312 17.363281 L 7.539062 16.09375 C 7.526042 15.911459 7.467448 15.748698 7.363281 15.605469 C 7.259114 15.449219 7.128906 15.325521 6.972656 15.234375 C 6.816406 15.143229 6.647135 15.091146 6.464844 15.078125 C 6.282552 15.065104 6.106771 15.097656 5.9375 15.175781 L 4.765625 15.683594 C 4.648438 15.735678 4.524739 15.748698 4.394531 15.722656 C 4.264323 15.696615 4.153646 15.638021 4.0625 15.546875 C 3.645833 15.091146 3.28125 14.596354 2.96875 14.0625 C 2.65625 13.528646 2.408854 12.96875 2.226562 12.382812 C 2.213542 12.34375 2.207031 12.311198 2.207031 12.285156 C 2.207031 12.259115 2.207031 12.226562 2.207031 12.1875 C 2.207031 12.096354 2.226562 12.005209 2.265625 11.914062 C 2.304688 11.822917 2.369792 11.751303 2.460938 11.699219 L 3.496094 10.917969 C 3.639323 10.813803 3.75 10.683594 3.828125 10.527344 C 3.919271 10.358073 3.964844 10.182292 3.964844 10 C 3.964844 9.817709 3.919271 9.641928 3.828125 9.472656 C 3.75 9.316406 3.639323 9.186198 3.496094 9.082031 L 2.460938 8.320312 C 2.369792 8.255209 2.304688 8.177084 2.265625 8.085938 C 2.226562 7.994792 2.207031 7.903646 2.207031 7.8125 C 2.207031 7.773438 2.207031 7.740886 2.207031 7.714844 C 2.207031 7.688803 2.213542 7.65625 2.226562 7.617188 C 2.408854 7.031251 2.65625 6.471355 2.96875 5.9375 C 3.28125 5.403646 3.645833 4.908854 4.0625 4.453125 C 4.153646 4.361979 4.264323 4.303386 4.394531 4.277344 C 4.524739 4.251303 4.648438 4.264323 4.765625 4.316406 L 5.9375 4.824219 C 6.106771 4.902344 6.282552 4.934896 6.464844 4.921875 C 6.647135 4.908854 6.816406 4.856771 6.972656 4.765625 C 7
</controls:SettingsCard.HeaderIcon>
</controls:SettingsCard>
<controls:SettingsCard
HorizontalContentAlignment="Stretch"
VerticalContentAlignment="Stretch"
ContentAlignment="Vertical">
<ScrollViewer>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="200" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<!-- Headers -->
<Grid Grid.Column="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock
FontWeight="SemiBold"
Text="Synchronize"
TextWrapping="Wrap" />
<TextBlock
Grid.Column="1"
FontWeight="SemiBold"
Text="Unread Badge"
TextWrapping="Wrap" />
</Grid>
<!-- TODO: Items here are draggable. Which is causing tree view to crash. -->
<TreeView
x:Name="FolderTreeView"
Grid.Row="1"
Grid.ColumnSpan="2"
CanDragItems="False"
CanReorderItems="False"
ItemTemplate="{StaticResource FolderStructureMenuFlyoutItemTemplate}"
ItemsSource="{x:Bind ViewModel.CurrentFolders, Mode=OneWay}"
SelectionMode="None" />
</Grid>
</ScrollViewer>
</controls:SettingsCard>
</controls:SettingsExpander.Items>
</controls:SettingsExpander>
<controls:SettingsExpander Description="{x:Bind domain:Translator.SettingsNotificationsAndTaskbar_Description}" Header="{x:Bind domain:Translator.SettingsNotificationsAndTaskbar_Title}">
<controls:SettingsExpander.HeaderIcon>
<PathIcon
HorizontalAlignment="Center"
VerticalAlignment="Center"
Data="F1 M 8.125 16.25 C 7.871094 16.25 7.630208 16.201172 7.402344 16.103516 C 7.174479 16.005859 6.974283 15.870769 6.801758 15.698242 C 6.629231 15.525717 6.494141 15.325521 6.396484 15.097656 C 6.298828 14.869792 6.25 14.628906 6.25 14.375 L 6.25 5.625 C 6.25 5.371094 6.298828 5.130209 6.396484 4.902344 C 6.494141 4.67448 6.629231 4.474285 6.801758 4.301758 C 6.974283 4.129232 7.174479 3.994141 7.402344 3.896484 C 7.630208 3.798828 7.871094 3.75 8.125 3.75 L 18.125 3.75 C 18.378906 3.75 18.619791 3.798828 18.847656 3.896484 C 19.07552 3.994141 19.275715 4.129232 19.448242 4.301758 C 19.620768 4.474285 19.755859 4.67448 19.853516 4.902344 C 19.951172 5.130209 20 5.371094 20 5.625 L 20 14.375 C 20 14.628906 19.951172 14.869792 19.853516 15.097656 C 19.755859 15.325521 19.620768 15.525717 19.448242 15.698242 C 19.275715 15.870769 19.07552 16.005859 18.847656 16.103516 C 18.619791 16.201172 18.378906 16.25 18.125 16.25 Z M 18.125 15 C 18.29427 15 18.440754 14.938151 18.564453 14.814453 C 18.68815 14.690756 18.75 14.544271 18.75 14.375 L 18.75 5.625 C 18.75 5.455729 18.68815 5.309245 18.564453 5.185547 C 18.440754 5.06185 18.29427 5.000001 18.125 5 L 8.125 5 C 7.955729 5.000001 7.809245 5.06185 7.685547 5.185547 C 7.561849 5.309245 7.5 5.455729 7.5 5.625 L 7.5 14.375 C 7.5 14.544271 7.561849 14.690756 7.685547 14.814453 C 7.809245 14.938151 7.955729 15 8.125 15 Z M 0.625 7.5 C 0.455729 7.5 0.309245 7.438151 0.185547 7.314453 C 0.061849 7.190756 0 7.044271 0 6.875 C 0 6.705729 0.061849 6.559245 0.185547 6.435547 C 0.309245 6.31185 0.455729 6.25 0.625 6.25 L 4.375 6.25 C 4.544271 6.25 4.690755 6.31185 4.814453 6.435547 C 4.938151 6.559245 5 6.705729 5 6.875 C 5 7.044271 4.938151 7.190756 4.814453 7.314453 C 4.690755 7.438151 4.544271 7.5 4.375 7.5 Z M 9.375 7.5 C 9.205729 7.5 9.059244 7.438151 8.935547 7.314453 C 8.811849 7.190756 8.75 7.044271 8.75 6.875 C 8.75 6.705729 8.811849 6.559245 8.935547 6.435547 C 9.059244 6.31185 9.205729 6.25 9.375 6.25 L 16.875 6.25 C 17.04427 6.25 17.190754 6.31185 17.314453 6.435547 C 17.43815 6.559245 17.5 6.705729 17.5 6.875 C 17.5 7.044271 17.43815 7.190756 17.314453 7.314453 C 17.190754 7.438151 17.04427 7.5 16.875 7.5 Z M 1.875 10 C 1.705729 10 1.559245 9.938151 1.435547 9.814453 C 1.311849 9.690756 1.25 9.544271 1.25 9.375 C 1.25 9.205729 1.311849 9.059245 1.435547 8.935547 C 1.559245 8.81185 1.705729 8.75 1.875 8.75 L 4.375 8.75 C 4.544271 8.75 4.690755 8.81185 4.814453 8.935547 C 4.938151 9.059245 5 9.205729 5 9.375 C 5 9.544271 4.938151 9.690756 4.814453 9.814453 C 4.690755 9.938151 4.544271 10 4.375 10 Z M 9.375 10 C 9.205729 10 9.059244 9.938151 8.935547 9.814453 C 8.811849 9.690756 8.75 9.544271 8.75 9.375 C 8.75 9.205729 8.811849 9.059245 8.935547 8.935547 C 9.059244 8.81185 9.205729 8.75 9.375 8.75 L 10.625 8.75 C 10.794271 8.75 10.940755 8.81185 11.064453 8.935547 C 11.18815 9.059245 11.25 9.205729 11.25 9.375 C 11.25 9.544271 11.18815 9.690756 11.064453 9.814453 C 10.940755 9.938151 10.794271 10 10.625 10 Z M 13.75 13.75 C 13.574219 13.75 13.40983 13.717448 13.256836 13.652344 C 13.103841 13.58724 12.972005 13.49935 12.861328 13.388672 C 12.75065 13.277995 12.66276 13.146159 12.597656 12.993164 C 12.532552 12.84017 12.5 12.675781 12.5 12.5 L 12.5 10 C 12.5 9.824219 12.532552 9.661459 12.597656 9.511719 C 12.66276 9.361979 12.752278 9.230144 12.866211 9.116211 C 12.980143 9.002279 13.111979 8.912761 13.261719 8.847656 C 13.411458 8.782553 13.574219 8.75 13.75 8.75 L 16.25 8.75 C 16.41927 8.75 16.580402 8.782553 16.733398 8.847656 C 16.886393 8.912761 17.019855 9.002279 17.133789 9.116211 C 17.247721 9.230144 17.337238 9.363607 17.402344 9.516602 C 17.467447 9.669597 17.5 9.830729 17.5 10 L 17.5 12.5 C 17.5 12.675781 17.467447 12.838542 17.402344 12.988281 C 17.337238 13.138021 17.247721 13.269857 17.133789 13.383789 C 17.019855 13.497722 16.88802 13.58724 16.738281 13.652344 C 16.588541 13.717448 16.425781 13.75 16.25 13.75 Z M 13.75 10 L 13.75 12.5 L 16.25 12.5 L 16.25 10 Z M 3.125 12.5 C 2.955729 12.5 2.809245 12.438151 2.685547 12.314453 C 2
</controls:SettingsExpander.HeaderIcon>
<controls:SettingsExpander.Items>
<controls:SettingsCard Description="{x:Bind domain:Translator.SettingsNotifications_Description}" Header="{x:Bind domain:Translator.SettingsNotifications_Title}">
<controls:SettingsCard.HeaderIcon>
<PathIcon Data="F1 M 0 0 L 20 0 L 20 16.25 L 13.75 16.25 L 10 20 L 6.25 16.25 L 0 16.25 Z M 16.25 7.5 L 3.75 7.5 L 3.75 8.75 L 16.25 8.75 Z M 16.25 3.75 L 3.75 3.75 L 3.75 5 L 16.25 5 Z M 11.25 11.25 L 3.75 11.25 L 3.75 12.5 L 11.25 12.5 Z " />
</controls:SettingsCard.HeaderIcon>
<ToggleSwitch IsOn="{x:Bind ViewModel.AreNotificationsEnabled, Mode=TwoWay}" />
</controls:SettingsCard>
<controls:SettingsCard Description="{x:Bind domain:Translator.SettingsTaskbarBadge_Description}" Header="{x:Bind domain:Translator.SettingsTaskbarBadge_Title}">
<controls:SettingsCard.HeaderIcon>
<PathIcon Data="F1 M 3.330078 10 C 3.330078 9.388021 3.409831 8.797201 3.569336 8.227539 C 3.728841 7.657879 3.95345 7.125652 4.243164 6.630859 C 4.532877 6.136068 4.879557 5.68685 5.283203 5.283203 C 5.686849 4.879559 6.136067 4.532879 6.630859 4.243164 C 7.125651 3.953451 7.657877 3.728842 8.227539 3.569336 C 8.7972 3.409832 9.388021 3.330078 10 3.330078 C 10.611979 3.330078 11.202799 3.409832 11.772461 3.569336 C 12.342121 3.728842 12.874348 3.953451 13.369141 4.243164 C 13.863932 4.532879 14.31315 4.879559 14.716797 5.283203 C 15.120441 5.68685 15.467121 6.136068 15.756836 6.630859 C 16.046549 7.125652 16.271158 7.657879 16.430664 8.227539 C 16.590168 8.797201 16.669922 9.388021 16.669922 10 C 16.669922 10.611979 16.590168 11.2028 16.430664 11.772461 C 16.271158 12.342123 16.046549 12.87435 15.756836 13.369141 C 15.467121 13.863933 15.120441 14.313151 14.716797 14.716797 C 14.31315 15.120443 13.863932 15.467123 13.369141 15.756836 C 12.874348 16.046551 12.342121 16.27116 11.772461 16.430664 C 11.202799 16.59017 10.611979 16.669922 10 16.669922 C 9.388021 16.669922 8.7972 16.59017 8.227539 16.430664 C 7.657877 16.27116 7.125651 16.046551 6.630859 15.756836 C 6.136067 15.467123 5.686849 15.120443 5.283203 14.716797 C 4.879557 14.313151 4.532877 13.863933 4.243164 13.369141 C 3.95345 12.87435 3.728841 12.342123 3.569336 11.772461 C 3.409831 11.2028 3.330078 10.611979 3.330078 10 Z " />
</controls:SettingsCard.HeaderIcon>
<ToggleSwitch IsOn="{x:Bind ViewModel.IsTaskbarBadgeEnabled, Mode=TwoWay}" />
</controls:SettingsCard>
</controls:SettingsExpander.Items>
</controls:SettingsExpander>
<!-- TODO -->
<!--<controls:SettingsCard
Header="Special Folders"
IsClickEnabled="True"
Command="{x:Bind ViewModel.SpecialFoldersCommand}"
Description="Setup functional folders for Wino to work with like Spam, Trash, Archive etc.">
<controls:SettingsCard.HeaderIcon>
<PathIcon Data="F1 M 3.056641 18.75 C 2.646484 18.75 2.255859 18.666992 1.884766 18.500977 C 1.513672 18.334961 1.189779 18.113607 0.913086 17.836914 C 0.636393 17.560221 0.415039 17.236328 0.249023 16.865234 C 0.083008 16.494141 0 16.103516 0 15.693359 L 0 4.306641 C 0 3.896484 0.083008 3.505859 0.249023 3.134766 C 0.415039 2.763672 0.636393 2.439779 0.913086 2.163086 C 1.189779 1.886395 1.513672 1.665039 1.884766 1.499023 C 2.255859 1.333008 2.646484 1.25 3.056641 1.25 L 6.875 1.25 C 7.324219 1.25 7.709961 1.319988 8.032227 1.459961 C 8.354492 1.599936 8.645833 1.787109 8.90625 2.021484 C 9.166666 2.255859 9.407552 2.522787 9.628906 2.822266 C 9.85026 3.121746 10.078125 3.43099 10.3125 3.75 L 15.673828 3.75 C 16.077473 3.75 16.464844 3.831381 16.835938 3.994141 C 17.207031 4.156902 17.532551 4.376629 17.8125 4.65332 C 18.092447 4.930014 18.317057 5.250651 18.486328 5.615234 C 18.655598 5.979818 18.743488 6.363933 18.75 6.767578 C 19.055988 7.008464 19.293619 7.301433 19.462891 7.646484 C 19.63216 7.991537 19.716797 8.359375 19.716797 8.75 C 19.716797 8.808594 19.716797 8.865561 19.716797 8.920898 C 19.716797 8.976237 19.710285 9.033203 19.697266 9.091797 L 18.730469 16.054688 C 18.678385 16.425781 18.561197 16.775717 18.378906 17.104492 C 18.196613 17.433268 17.96875 17.719727 17.695312 17.963867 C 17.421875 18.208008 17.112629 18.400064 16.767578 18.540039 C 16.422525 18.680014 16.061197 18.75 15.683594 18.75 Z M 17.392578 6.259766 C 17.327473 6.070964 17.236328 5.900065 17.119141 5.74707 C 17.001953 5.594076 16.865234 5.46224 16.708984 5.351562 C 16.552734 5.240886 16.383463 5.154623 16.201172 5.092773 C 16.018879 5.030926 15.826822 5.000001 15.625 5 L 9.6875 5 L 8.378906 3.251953 C 8.203125 3.017578 7.981771 2.83366 7.714844 2.700195 C 7.447917 2.566732 7.167969 2.5 6.875 2.5 L 3.125 2.5 C 2.871094 2.5 2.630208 2.548828 2.402344 2.646484 C 2.174479 2.744141 1.974284 2.879232 1.801758 3.051758 C 1.629232 3.224285 1.494141 3.42448 1.396484 3.652344 C 1.298828 3.880209 1.25 4.121094 1.25 4.375 L 1.25 15.625 C 1.25 15.664062 1.251628 15.701498 1.254883 15.737305 C 1.258138 15.773112 1.259766 15.810547 1.259766 15.849609 L 2.832031 8.242188 C 2.890625 7.95573 2.996419 7.690431 3.149414 7.446289 C 3.302409 7.202149 3.487956 6.992188 3.706055 6.816406 C 3.924154 6.640626 4.168294 6.502279 4.438477 6.401367 C 4.708659 6.300456 4.990234 6.25 5.283203 6.25 L 17.226562 6.25 C 17.259113 6.25 17.286783 6.25 17.30957 6.25 C 17.332355 6.25 17.360025 6.253256 17.392578 6.259766 Z M 15.634766 17.5 C 15.869141 17.5 16.092121 17.459311 16.303711 17.37793 C 16.515299 17.296549 16.704102 17.182617 16.870117 17.036133 C 17.036133 16.889648 17.172852 16.71875 17.280273 16.523438 C 17.387695 16.328125 17.457682 16.113281 17.490234 15.878906 L 18.457031 8.925781 C 18.463541 8.893229 18.466797 8.863933 18.466797 8.837891 C 18.466797 8.81185 18.466797 8.782553 18.466797 8.75 C 18.466797 8.580729 18.434244 8.419597 18.369141 8.266602 C 18.304035 8.113607 18.216145 7.980144 18.105469 7.866211 C 17.994791 7.752279 17.864582 7.662762 17.714844 7.597656 C 17.565104 7.532553 17.402344 7.5 17.226562 7.5 L 5.283203 7.5 C 5.133463 7.5 4.991862 7.524414 4.858398 7.573242 C 4.724935 7.62207 4.602864 7.69043 4.492188 7.77832 C 4.38151 7.866211 4.287109 7.972006 4.208984 8.095703 C 4.130859 8.219401 4.078776 8.352865 4.052734 8.496094 L 2.246094 17.275391 C 2.526042 17.425131 2.81901 17.5 3.125 17.5 Z " />
</controls:SettingsCard.HeaderIcon>
</controls:SettingsCard>-->
<controls:SettingsCard
Command="{x:Bind ViewModel.EditSignatureCommand}"
Description="{x:Bind domain:Translator.SettingsSignature_Description}"
Header="{x:Bind domain:Translator.SettingsSignature_Title}"
IsClickEnabled="True">
2025-09-29 11:16:14 +02:00
<controls:SettingsCard.HeaderIcon>
<PathIcon Data="F1 M 17.060547 2.832031 C 17.151691 2.884115 17.226562 2.958984 17.285156 3.056641 C 17.34375 3.154297 17.373047 3.258465 17.373047 3.369141 C 17.373047 3.421225 17.366535 3.470053 17.353516 3.515625 C 17.340494 3.561199 17.324219 3.606771 17.304688 3.652344 L 10.400391 17.470703 C 10.341797 17.5944 10.25065 17.685547 10.126953 17.744141 L 8.4375 18.59375 C 8.229166 18.697916 8.004557 18.75 7.763672 18.75 C 7.73112 18.75 7.700195 18.75 7.670898 18.75 C 7.641602 18.75 7.610677 18.746744 7.578125 18.740234 L 7.119141 19.658203 C 7.067057 19.762369 6.99056 19.845377 6.889648 19.907227 C 6.788736 19.969076 6.679687 20 6.5625 20 C 6.393229 20 6.246745 19.93815 6.123047 19.814453 C 5.999349 19.690756 5.9375 19.544271 5.9375 19.375 C 5.9375 19.296875 5.960286 19.199219 6.005859 19.082031 C 6.051432 18.964844 6.105143 18.842773 6.166992 18.71582 C 6.228841 18.588867 6.292317 18.470053 6.357422 18.359375 C 6.422526 18.248697 6.471354 18.157553 6.503906 18.085938 C 6.334635 17.825521 6.25 17.542318 6.25 17.236328 L 6.25 15.625 C 6.25 15.520834 6.272786 15.426433 6.318359 15.341797 L 11.943359 4.091797 L 11.308594 3.779297 L 8.994141 8.408203 C 8.942057 8.51237 8.86556 8.595378 8.764648 8.657227 C 8.663736 8.719076 8.554688 8.75 8.4375 8.75 C 8.268229 8.75 8.121744 8.688151 7.998047 8.564453 C 7.874349 8.440756 7.8125 8.294271 7.8125 8.125 C 7.8125 8.040365 7.835286 7.945964 7.880859 7.841797 L 10.214844 3.173828 C 10.31901 2.965496 10.458984 2.801107 10.634766 2.680664 C 10.810547 2.560223 11.015625 2.5 11.25 2.5 C 11.477864 2.5 11.694336 2.55534 11.899414 2.666016 C 12.104492 2.776693 12.304688 2.880859 12.5 2.978516 L 13.193359 1.591797 C 13.245441 1.481121 13.321939 1.396484 13.422852 1.337891 C 13.523763 1.279297 13.632812 1.25 13.75 1.25 C 13.834635 1.25 13.90625 1.263021 13.964844 1.289062 C 14.042969 1.132812 14.119466 0.978191 14.194336 0.825195 C 14.269205 0.672201 14.353841 0.533855 14.448242 0.410156 C 14.542643 0.286459 14.658202 0.187176 14.794922 0.112305 C 14.93164 0.037436 15.104166 0 15.3125 0 C 15.520833 0 15.7194 0.048828 15.908203 0.146484 L 16.826172 0.605469 C 17.034504 0.709637 17.198893 0.847982 17.319336 1.020508 C 17.439777 1.193035 17.5 1.39974 17.5 1.640625 C 17.5 1.86198 17.449543 2.068686 17.348633 2.260742 C 17.247721 2.452801 17.151691 2.64323 17.060547 2.832031 Z M 15.087891 1.845703 L 15.9375 2.265625 L 16.220703 1.699219 L 15.371094 1.279297 Z M 15.908203 3.652344 L 14.033203 2.714844 L 7.5 15.771484 L 7.5 17.236328 C 7.5 17.307943 7.526041 17.369791 7.578125 17.421875 C 7.630208 17.473959 7.692057 17.5 7.763672 17.5 C 7.789713 17.5 7.843424 17.483725 7.924805 17.451172 C 8.006185 17.418619 8.100586 17.376303 8.208008 17.324219 C 8.31543 17.272135 8.429361 17.21517 8.549805 17.15332 C 8.670247 17.091471 8.785807 17.03125 8.896484 16.972656 C 9.007161 16.914062 9.104817 16.861979 9.189453 16.816406 C 9.274088 16.770834 9.335938 16.738281 9.375 16.71875 Z M 17.5 7.5 C 17.845051 7.5 18.168945 7.565104 18.47168 7.695312 C 18.774414 7.825521 19.039713 8.004558 19.267578 8.232422 C 19.495441 8.460287 19.674479 8.725586 19.804688 9.02832 C 19.934895 9.331055 20 9.654948 20 10 C 20 10.345053 19.934895 10.668945 19.804688 10.97168 C 19.674479 11.274414 19.495441 11.539714 19.267578 11.767578 C 19.039713 11.995443 18.774414 12.174479 18.47168 12.304688 C 18.168945 12.434896 17.845051 12.5 17.5 12.5 L 14.6875 12.5 L 15.3125 11.25 L 17.5 11.25 C 17.675781 11.25 17.838541 11.217448 17.988281 11.152344 C 18.13802 11.08724 18.269855 10.997722 18.383789 10.883789 C 18.497721 10.769857 18.587238 10.638021 18.652344 10.488281 C 18.717447 10.338542 18.75 10.175781 18.75 10 C 18.75 9.824219 18.717447 9.661459 18.652344 9.511719 C 18.587238 9.361979 18.497721 9.230144 18.383789 9.116211 C 18.269855 9.002279 18.13802 8.912761 17.988281 8.847656 C 17.838541 8.782553 17.675781 8.75 17.5 8.75 C 17.330729 8.75 17.184244 8.688151 17.060547 8.564453 C 16.936848 8.440756 16.875 8.294271 16.875 8.125 C 16.875 7.95573 16.936848 7.809246 17.060547 7.685547 C 17.184244 7.56185 17.3307
2025-09-29 11:16:14 +02:00
</controls:SettingsCard.HeaderIcon>
<ToggleSwitch IsOn="{x:Bind ViewModel.IsSignatureEnabled, Mode=TwoWay}" />
2025-09-29 11:16:14 +02:00
</controls:SettingsCard>
<controls:SettingsCard
Description="{x:Bind domain:Translator.SettingsFocusedInbox_Description}"
Header="{x:Bind domain:Translator.SettingsFocusedInbox_Title}"
Visibility="{x:Bind ViewModel.IsFocusedInboxSupportedForAccount, Mode=OneWay}">
2025-09-29 11:16:14 +02:00
<controls:SettingsCard.HeaderIcon>
<PathIcon Data="F1 M 1.875 4.6875 C 1.72526 4.335938 1.515299 4.025065 1.245117 3.754883 C 0.974935 3.484701 0.664062 3.27474 0.3125 3.125 C 0.664062 2.975262 0.974935 2.765301 1.245117 2.495117 C 1.515299 2.224936 1.72526 1.914062 1.875 1.5625 C 2.02474 1.914062 2.2347 2.224936 2.504883 2.495117 C 2.775065 2.765301 3.085938 2.975262 3.4375 3.125 C 3.085938 3.27474 2.775065 3.484701 2.504883 3.754883 C 2.2347 4.025065 2.02474 4.335938 1.875 4.6875 Z M 18.125 5.3125 C 18.274738 5.664062 18.484699 5.974936 18.754883 6.245117 C 19.025064 6.5153 19.335938 6.725261 19.6875 6.875 C 19.335938 7.02474 19.025064 7.234701 18.754883 7.504883 C 18.484699 7.775065 18.274738 8.085938 18.125 8.4375 C 17.97526 8.085938 17.765299 7.775065 17.495117 7.504883 C 17.224934 7.234701 16.914062 7.02474 16.5625 6.875 C 16.914062 6.725261 17.224934 6.5153 17.495117 6.245117 C 17.765299 5.974936 17.97526 5.664062 18.125 5.3125 Z M 14.375 6.25 C 14.06901 5.540365 13.649088 4.91862 13.115234 4.384766 C 12.58138 3.850912 11.959635 3.43099 11.25 3.125 C 11.959635 2.819012 12.58138 2.39909 13.115234 1.865234 C 13.649088 1.331381 14.06901 0.709637 14.375 0 C 14.680989 0.709637 15.100911 1.331381 15.634766 1.865234 C 16.168619 2.39909 16.790363 2.819012 17.5 3.125 C 16.790363 3.43099 16.168619 3.850912 15.634766 4.384766 C 15.100911 4.91862 14.680989 5.540365 14.375 6.25 Z M 14.375 1.894531 C 14.010416 2.356771 13.60026 2.766928 13.144531 3.125 C 13.60026 3.489584 14.010416 3.89974 14.375 4.355469 C 14.733072 3.89974 15.143229 3.489584 15.605469 3.125 C 15.143229 2.766928 14.733072 2.356771 14.375 1.894531 Z M 7.294922 7.666016 C 6.988932 7.666017 6.700846 7.60254 6.430664 7.475586 C 6.160481 7.348634 5.924479 7.177735 5.722656 6.962891 C 5.520833 6.748048 5.362956 6.500652 5.249023 6.220703 C 5.135091 5.940756 5.078125 5.651042 5.078125 5.351562 C 5.078125 4.967448 5.157877 4.607748 5.317383 4.272461 C 5.476888 3.937176 5.690104 3.644207 5.957031 3.393555 C 6.223958 3.142904 6.531575 2.944336 6.879883 2.797852 C 7.22819 2.651367 7.591146 2.578125 7.96875 2.578125 C 8.515625 2.578125 9.002278 2.693686 9.428711 2.924805 C 9.855143 3.155926 10.214844 3.460287 10.507812 3.837891 C 10.800781 4.215495 11.023763 4.645183 11.176758 5.126953 C 11.329752 5.608725 11.40625 6.100262 11.40625 6.601562 C 11.40625 7.285156 11.295572 7.924805 11.074219 8.520508 C 10.852864 9.116211 10.548502 9.658203 10.161133 10.146484 C 9.773763 10.634766 9.316406 11.066081 8.789062 11.44043 C 8.261719 11.814779 7.695312 12.128906 7.089844 12.382812 C 7.03125 12.408854 6.95638 12.421875 6.865234 12.421875 C 6.715495 12.421875 6.588542 12.368164 6.484375 12.260742 C 6.380208 12.15332 6.328125 12.02474 6.328125 11.875 C 6.328125 11.640625 6.438802 11.471354 6.660156 11.367188 C 7.154948 11.132812 7.612305 10.880534 8.032227 10.610352 C 8.452148 10.34017 8.819986 10.030925 9.135742 9.682617 C 9.451497 9.334311 9.708658 8.937175 9.907227 8.491211 C 10.105794 8.045248 10.234375 7.532553 10.292969 6.953125 C 10.299479 6.888021 10.304361 6.824545 10.307617 6.762695 C 10.310872 6.700848 10.3125 6.637371 10.3125 6.572266 C 10.3125 6.233725 10.263672 5.891928 10.166016 5.546875 C 10.068359 5.201824 9.921875 4.889324 9.726562 4.609375 C 9.53125 4.329428 9.287109 4.10319 8.994141 3.930664 C 8.701172 3.758139 8.359375 3.671875 7.96875 3.671875 C 7.747396 3.671875 7.529297 3.71582 7.314453 3.803711 C 7.099609 3.891602 6.907552 4.010417 6.738281 4.160156 C 6.56901 4.309896 6.432292 4.487306 6.328125 4.692383 C 6.223958 4.897462 6.171875 5.117188 6.171875 5.351562 C 6.171875 5.501303 6.201172 5.649414 6.259766 5.795898 C 6.318359 5.942383 6.398112 6.072592 6.499023 6.186523 C 6.599935 6.300456 6.720377 6.393229 6.860352 6.464844 C 7.000325 6.536459 7.148438 6.572266 7.304688 6.572266 C 7.460938 6.572266 7.584635 6.547852 7.675781 6.499023 C 7.766927 6.450195 7.841797 6.386719 7.900391 6.308594 C 7.958984 6.230469 8.006185 6.149089 8.041992 6.064453 C 8.077799 5.979818 8.116861 5.898438 8.15918 5.820312 C 8.201497 5.742188 8.256836 5.678712 8.325195 5.629883 C 8.393555 5.
2025-09-29 11:16:14 +02:00
</controls:SettingsCard.HeaderIcon>
<ToggleSwitch IsOn="{x:Bind ViewModel.IsFocusedInboxEnabled, Mode=TwoWay}" />
2025-09-29 11:16:14 +02:00
</controls:SettingsCard>
<controls:SettingsCard
Description="{x:Bind domain:Translator.SettingsAccountManagementAppendMessage_Description}"
Header="{x:Bind domain:Translator.SettingsAccountManagementAppendMessage_Title}"
Visibility="{x:Bind ViewModel.IsAppendMessageSettingVisible, Mode=OneWay}">
<controls:SettingsCard.HeaderIcon>
<PathIcon
HorizontalAlignment="Center"
VerticalAlignment="Center"
Data="F1 M 0 5.625 C 0 4.850261 0.148112 4.121094 0.444336 3.4375 C 0.74056 2.753906 1.142578 2.158203 1.650391 1.650391 C 2.158203 1.142578 2.753906 0.740561 3.4375 0.444336 C 4.121094 0.148113 4.85026 0 5.625 0 C 6.139323 0 6.635742 0.066732 7.114258 0.200195 C 7.592773 0.33366 8.040364 0.522461 8.457031 0.766602 C 8.873697 1.010742 9.254557 1.30534 9.599609 1.650391 C 9.944661 1.995443 10.239258 2.376303 10.483398 2.792969 C 10.727539 3.209637 10.916341 3.657227 11.049805 4.135742 C 11.183268 4.614259 11.25 5.110678 11.25 5.625 C 11.25 6.39974 11.101888 7.128907 10.805664 7.8125 C 10.509439 8.496094 10.107422 9.091797 9.599609 9.599609 C 9.091797 10.107422 8.496094 10.50944 7.8125 10.805664 C 7.128906 11.101889 6.399739 11.25 5.625 11.25 C 4.84375 11.25 4.111328 11.103516 3.427734 10.810547 C 2.744141 10.517578 2.148438 10.117188 1.640625 9.609375 C 1.132812 9.101562 0.732422 8.505859 0.439453 7.822266 C 0.146484 7.138672 0 6.40625 0 5.625 Z M 10.566406 15 C 10.214844 15 9.874674 14.936523 9.545898 14.80957 C 9.217122 14.682617 8.917643 14.510092 8.647461 14.291992 C 8.377278 14.073894 8.147786 13.815104 7.958984 13.515625 C 7.770182 13.216146 7.639974 12.893881 7.568359 12.548828 C 7.972005 12.431641 8.369141 12.278646 8.759766 12.089844 C 8.785807 12.324219 8.852539 12.542318 8.959961 12.744141 C 9.067383 12.945964 9.205729 13.121745 9.375 13.271484 C 9.544271 13.421225 9.736328 13.538412 9.951172 13.623047 C 10.166016 13.707683 10.390625 13.75 10.625 13.75 L 15.625 13.75 C 15.878906 13.75 16.119791 13.701172 16.347656 13.603516 C 16.57552 13.505859 16.775715 13.370769 16.948242 13.198242 C 17.120768 13.025717 17.255859 12.825521 17.353516 12.597656 C 17.451172 12.369792 17.5 12.128906 17.5 11.875 L 17.5 4.375 C 17.5 4.121094 17.451172 3.880209 17.353516 3.652344 C 17.255859 3.42448 17.120768 3.224285 16.948242 3.051758 C 16.775715 2.879232 16.57552 2.744141 16.347656 2.646484 C 16.119791 2.548828 15.878906 2.5 15.625 2.5 L 12.099609 2.5 C 11.988932 2.278646 11.870117 2.063803 11.743164 1.855469 C 11.616211 1.647137 11.477864 1.445312 11.328125 1.25 L 15.693359 1.25 C 16.103516 1.25 16.494141 1.333008 16.865234 1.499023 C 17.236328 1.665039 17.560221 1.886395 17.836914 2.163086 C 18.113605 2.439779 18.334961 2.763672 18.500977 3.134766 C 18.666992 3.505859 18.75 3.896484 18.75 4.306641 L 18.75 11.943359 C 18.75 12.353516 18.666992 12.744141 18.500977 13.115234 C 18.334961 13.486328 18.113605 13.810222 17.836914 14.086914 C 17.560221 14.363607 17.236328 14.584961 16.865234 14.750977 C 16.494141 14.916992 16.103516 15 15.693359 15 Z M 5.625 8.828125 C 5.820312 8.828125 5.986328 8.759766 6.123047 8.623047 L 8.623047 6.123047 C 8.759766 5.986328 8.828125 5.820312 8.828125 5.625 C 8.828125 5.429688 8.759766 5.263672 8.623047 5.126953 L 6.123047 2.626953 C 5.986328 2.490234 5.820312 2.421875 5.625 2.421875 C 5.429688 2.421875 5.263672 2.490234 5.126953 2.626953 C 4.990234 2.763672 4.921875 2.929688 4.921875 3.125 C 4.921875 3.320312 4.990234 3.486328 5.126953 3.623047 L 6.503906 5 L 3.125 5 C 2.955729 5.000001 2.809245 5.06185 2.685547 5.185547 C 2.561849 5.309245 2.5 5.455729 2.5 5.625 C 2.5 5.794271 2.561849 5.940756 2.685547 6.064453 C 2.809245 6.188151 2.955729 6.25 3.125 6.25 L 6.503906 6.25 L 5.126953 7.626953 C 4.990234 7.763672 4.921875 7.929688 4.921875 8.125 C 4.921875 8.320312 4.990234 8.486328 5.126953 8.623047 C 5.263672 8.759766 5.429688 8.828125 5.625 8.828125 Z M 4.306641 18.75 C 3.896484 18.75 3.505859 18.666992 3.134766 18.500977 C 2.763672 18.334961 2.439779 18.113607 2.163086 17.836914 C 1.886393 17.560221 1.665039 17.236328 1.499023 16.865234 C 1.333008 16.494141 1.25 16.103516 1.25 15.693359 L 1.25 11.328125 C 1.445312 11.477865 1.647135 11.616211 1.855469 11.743164 C 2.063802 11.870117 2.278646 11.988933 2.5 12.099609 L 2.5 15.625 C 2.5 15.878906 2.548828 16.119791 2.646484 16.347656 C 2.744141 16.575521 2.879232 16.775717 3.051758 16.948242 C 3.224284 17.120768 3.424479 17.255859 3.652344 17.353516 C 3.880208 17.451172 4.121094 17.5 4.375 17.5 L 9.375 17.5 C 9.57682
</controls:SettingsCard.HeaderIcon>
<ToggleSwitch IsOn="{x:Bind ViewModel.IsAppendMessageSettinEnabled, Mode=TwoWay}" />
</controls:SettingsCard>
</StackPanel>
</Grid>
<!-- Calendar Settings Panel -->
<Grid
x:Name="CalendarSettingsPanel"
2026-03-08 21:21:34 +01:00
Grid.Row="2"
Visibility="Collapsed">
<StackPanel MaxWidth="900" Spacing="12">
2026-03-07 01:46:07 +01:00
<controls:SettingsCard Description="{x:Bind domain:Translator.CalendarAccountSettings_PrimaryCalendarDescription, Mode=OneTime}" Header="{x:Bind domain:Translator.CalendarAccountSettings_PrimaryCalendar, Mode=OneTime}">
<controls:SettingsCard.HeaderIcon>
<FontIcon Glyph="&#xE735;" />
</controls:SettingsCard.HeaderIcon>
<ComboBox ItemsSource="{x:Bind ViewModel.AccountCalendars, Mode=OneWay}" SelectedItem="{x:Bind ViewModel.SelectedPrimaryCalendar, Mode=TwoWay}">
<ComboBox.ItemTemplate>
<DataTemplate x:DataType="calendar:AccountCalendar">
<TextBlock Text="{x:Bind Name}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
</controls:SettingsCard>
<!-- Calendars List -->
2026-03-07 01:46:07 +01:00
<ItemsControl ItemsSource="{x:Bind ViewModel.AccountCalendarSettingsItems, Mode=OneWay}">
<ItemsControl.ItemTemplate>
2026-03-07 01:46:07 +01:00
<DataTemplate x:DataType="mailViewModels:AccountCalendarSettingsItemViewModel">
<controls:SettingsExpander
Margin="0,0,0,8"
Description="{x:Bind TimeZone, Mode=OneWay}"
Header="{x:Bind Name, Mode=OneWay}"
2026-03-07 01:46:07 +01:00
IsExpanded="False">
<controls:SettingsExpander.HeaderIcon>
<SymbolIcon Foreground="{x:Bind helpers:XamlHelpers.GetSolidColorBrushFromHex(BackgroundColorHex), Mode=OneWay}" Symbol="Calendar" />
</controls:SettingsExpander.HeaderIcon>
<controls:SettingsExpander.Items>
<controls:SettingsCard Description="{x:Bind domain:Translator.CalendarAccountSettings_AccountColorDescription, Mode=OneTime}" Header="{x:Bind domain:Translator.CalendarAccountSettings_AccountColor, Mode=OneTime}">
<controls:SettingsCard.HeaderIcon>
<FontIcon Glyph="&#xE790;" />
</controls:SettingsCard.HeaderIcon>
<Button
MinWidth="40"
MinHeight="40"
Padding="4"
Tag="{x:Bind}">
<Button.Flyout>
<Flyout Placement="BottomEdgeAlignedLeft">
<GridView
Width="220"
IsItemClickEnabled="True"
ItemClick="CalendarColorItemClick"
ItemTemplate="{StaticResource AccountColorTemplate}"
ItemsSource="{x:Bind AvailableColors, Mode=OneWay}"
SelectedItem="{x:Bind SelectedColor, Mode=TwoWay}"
SelectionMode="Single"
Tag="{x:Bind}" />
</Flyout>
</Button.Flyout>
<Border
Width="24"
Height="24"
Background="{x:Bind helpers:XamlHelpers.GetSolidColorBrushFromHex(BackgroundColorHex), Mode=OneWay}"
CornerRadius="4" />
</Button>
2026-03-07 01:46:07 +01:00
</controls:SettingsCard>
<controls:SettingsCard Description="{x:Bind domain:Translator.CalendarAccountSettings_SyncEnabledDescription, Mode=OneTime}" Header="{x:Bind domain:Translator.CalendarAccountSettings_SyncEnabled, Mode=OneTime}">
<controls:SettingsCard.HeaderIcon>
<FontIcon Glyph="&#xE895;" />
</controls:SettingsCard.HeaderIcon>
<ToggleSwitch
IsOn="{x:Bind IsSynchronizationEnabled, Mode=OneWay}"
Tag="{x:Bind}"
Toggled="CalendarSynchronizationToggled" />
</controls:SettingsCard>
<controls:SettingsCard Description="{x:Bind domain:Translator.CalendarAccountSettings_DefaultShowAsDescription, Mode=OneTime}" Header="{x:Bind domain:Translator.CalendarAccountSettings_DefaultShowAs, Mode=OneTime}">
<controls:SettingsCard.HeaderIcon>
<FontIcon Glyph="&#xE163;" />
</controls:SettingsCard.HeaderIcon>
<ComboBox
ItemsSource="{x:Bind ShowAsOptions, Mode=OneWay}"
SelectedItem="{x:Bind SelectedShowAsOption, Mode=OneWay}"
SelectionChanged="CalendarShowAsSelectionChanged"
Tag="{x:Bind}">
<ComboBox.ItemTemplate>
<DataTemplate x:DataType="mailViewModels:AccountCalendarShowAsOption">
<TextBlock Text="{x:Bind DisplayText}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
</controls:SettingsCard>
</controls:SettingsExpander.Items>
</controls:SettingsExpander>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</StackPanel>
</Grid>
</Grid>
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="TabStates">
<VisualState x:Name="GeneralTab">
<VisualState.StateTriggers>
2026-03-08 21:21:34 +01:00
<StateTrigger IsActive="{x:Bind helpers:XamlHelpers.AreEqual(ViewModel.SelectedTabIndex, 0), Mode=OneWay}" />
</VisualState.StateTriggers>
<VisualState.Setters>
<Setter Target="GeneralSettingsPanel.Visibility" Value="Visible" />
<Setter Target="MailSettingsPanel.Visibility" Value="Collapsed" />
<Setter Target="CalendarSettingsPanel.Visibility" Value="Collapsed" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="MailTab">
<VisualState.StateTriggers>
<StateTrigger IsActive="{x:Bind helpers:XamlHelpers.AreEqual(ViewModel.SelectedTabIndex, 1), Mode=OneWay}" />
</VisualState.StateTriggers>
<VisualState.Setters>
<Setter Target="GeneralSettingsPanel.Visibility" Value="Collapsed" />
<Setter Target="MailSettingsPanel.Visibility" Value="Visible" />
<Setter Target="CalendarSettingsPanel.Visibility" Value="Collapsed" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="CalendarTab">
<VisualState.StateTriggers>
<StateTrigger IsActive="{x:Bind helpers:XamlHelpers.AreEqual(ViewModel.SelectedTabIndex, 2), Mode=OneWay}" />
</VisualState.StateTriggers>
<VisualState.Setters>
<Setter Target="GeneralSettingsPanel.Visibility" Value="Collapsed" />
<Setter Target="MailSettingsPanel.Visibility" Value="Collapsed" />
<Setter Target="CalendarSettingsPanel.Visibility" Value="Visible" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
2025-09-29 11:16:14 +02:00
</ScrollViewer>
</abstract:AccountDetailsPageAbstract>