diff --git a/Wino.Mail/App.xaml b/Wino.Mail/App.xaml index 0ed8224f..33e6fcbc 100644 --- a/Wino.Mail/App.xaml +++ b/Wino.Mail/App.xaml @@ -209,6 +209,12 @@ + + + + + + 0 diff --git a/Wino.Mail/AppShell.xaml b/Wino.Mail/AppShell.xaml index 1cc75798..f870c256 100644 --- a/Wino.Mail/AppShell.xaml +++ b/Wino.Mail/AppShell.xaml @@ -2,26 +2,29 @@ x:Class="Wino.Views.AppShell" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - x:Name="Root" xmlns:abstract="using:Wino.Views.Abstract" xmlns:advanced="using:Wino.Controls.Advanced" xmlns:animatedvisuals="using:Microsoft.UI.Xaml.Controls.AnimatedVisuals" + xmlns:animations="using:CommunityToolkit.WinUI.Animations" xmlns:controls="using:Wino.Controls" xmlns:controls1="using:CommunityToolkit.WinUI.Controls" - xmlns:domain="using:Wino.Core.Domain" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:domain="using:Wino.Core.Domain" + xmlns:enums="using:Wino.Core.Domain.Enums" xmlns:helpers="using:Wino.Helpers" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - xmlns:enums="using:Wino.Core.Domain.Enums" xmlns:menu="using:Wino.Core.MenuItems" xmlns:muxc="using:Microsoft.UI.Xaml.Controls" - xmlns:animations="using:CommunityToolkit.WinUI.Animations" xmlns:selectors="using:Wino.Selectors" + x:Name="Root" muxc:BackdropMaterial.ApplyToRootOrPageBackground="{ThemeResource UseMica}" mc:Ignorable="d"> + + + @@ -110,15 +113,15 @@ + SelectsOnInvoked="False" + Style="{StaticResource SingleAccountNavigationViewItemTemplate}"> @@ -159,8 +162,8 @@ @@ -239,8 +242,8 @@ + DataContext="{x:Bind}" + SelectsOnInvoked="False"> @@ -258,16 +261,16 @@ MinHeight="30" AllowDrop="True" ContextRequested="MenuItemContextRequested" + DataContext="{x:Bind}" DragEnter="ItemDragEnterOnFolder" DragLeave="ItemDragLeaveFromFolder" Drop="ItemDroppedOnFolder" - DataContext="{x:Bind}" FontSize="50" FontWeight="{x:Bind helpers:XamlHelpers.GetFontWeightByChildSelectedState(IsSelected), Mode=OneWay}" IsExpanded="{x:Bind IsExpanded, Mode=TwoWay}" IsSelected="{x:Bind IsSelected, Mode=TwoWay}" - SelectsOnInvoked="{x:Bind IsMoveTarget, Mode=OneWay}" - MenuItemsSource="{x:Bind SubMenuItems, Mode=OneWay}"> + MenuItemsSource="{x:Bind SubMenuItems, Mode=OneWay}" + SelectsOnInvoked="{x:Bind IsMoveTarget, Mode=OneWay}"> @@ -329,8 +332,8 @@ IsActiveAccount="{x:Bind IsSelected, Mode=OneWay}" IsChildSelected="{x:Bind IsChildSelected, Mode=TwoWay}" IsExpanded="{x:Bind IsExpanded, Mode=TwoWay}" - Style="{StaticResource SingleAccountNavigationViewItemTemplate}" - SelectsOnInvoked="False"> + SelectsOnInvoked="False" + Style="{StaticResource SingleAccountNavigationViewItemTemplate}"> @@ -469,15 +472,15 @@ + IsClosable="False" + IsOpen="False" /> + PreferredPlacement="Bottom" + Target="{x:Bind ShellInfoBar}" /> diff --git a/Wino.Mail/AppThemes/Acrylic.xaml b/Wino.Mail/AppThemes/Acrylic.xaml index 5c833a97..fb84bf43 100644 --- a/Wino.Mail/AppThemes/Acrylic.xaml +++ b/Wino.Mail/AppThemes/Acrylic.xaml @@ -1,43 +1,37 @@  + xmlns:xaml="using:Windows.UI.Xaml"> Acrylic False Transparent - 0,0,4,0 - 6,6,6,6 - - white - #ecf0f1 + TintColor="#FCFCFC" + TintOpacity="0.75" /> - Transparent #2C2C2C + TintColor="#2C2C2C" + TintOpacity="0.30" /> diff --git a/Wino.Mail/AppThemes/Clouds.xaml b/Wino.Mail/AppThemes/Clouds.xaml index 93d3d314..6b443b7e 100644 --- a/Wino.Mail/AppThemes/Clouds.xaml +++ b/Wino.Mail/AppThemes/Clouds.xaml @@ -1,7 +1,7 @@  + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:xaml="using:Windows.UI.Xaml"> Clouds ms-appx:///BackgroundImages/Clouds.jpg @@ -9,19 +9,13 @@ Transparent - 4,0,4,0 - 6,6,6,6 - - #A3FFFFFF - #FFFFFF + #b2dffc - - #A3262626 - #5413191F + #b2dffc diff --git a/Wino.Mail/AppThemes/Custom.xaml b/Wino.Mail/AppThemes/Custom.xaml index 0714844b..71bbf1a3 100644 --- a/Wino.Mail/AppThemes/Custom.xaml +++ b/Wino.Mail/AppThemes/Custom.xaml @@ -1,7 +1,7 @@  + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:xaml="using:Windows.UI.Xaml"> Custom ms-appdata:///local/CustomWallpaper.jpg @@ -9,11 +9,8 @@ - - 0,0,0,0 - 0,6,6,0 + ImageSource="{StaticResource ThemeBackgroundImage}" + Stretch="UniformToFill" /> 0,0,0,0 @@ -27,9 +24,6 @@ #D9FFFFFF - - - diff --git a/Wino.Mail/AppThemes/Forest.xaml b/Wino.Mail/AppThemes/Forest.xaml index 88afd2fe..b2654834 100644 --- a/Wino.Mail/AppThemes/Forest.xaml +++ b/Wino.Mail/AppThemes/Forest.xaml @@ -1,7 +1,7 @@  + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:xaml="using:Windows.UI.Xaml"> Forest ms-appx:///BackgroundImages/Forest.jpg @@ -9,18 +9,12 @@ Transparent - 4,0,4,0 - 6,6,6,6 - - #2900F00A #A800D608 - - #A3262626 #59001C01 diff --git a/Wino.Mail/AppThemes/Garden.xaml b/Wino.Mail/AppThemes/Garden.xaml index 4f904bd1..ad852e61 100644 --- a/Wino.Mail/AppThemes/Garden.xaml +++ b/Wino.Mail/AppThemes/Garden.xaml @@ -1,7 +1,7 @@  + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:xaml="using:Windows.UI.Xaml"> Garden ms-appx:///BackgroundImages/Garden.jpg @@ -9,19 +9,13 @@ Transparent - 4,0,4,0 - 6,6,6,6 - - #A3FFFFFF - #FFFFFF + #dcfad8 - - #A3262626 - #5413191F + #dcfad8 diff --git a/Wino.Mail/AppThemes/Mica.xaml b/Wino.Mail/AppThemes/Mica.xaml index baa97183..302451b4 100644 --- a/Wino.Mail/AppThemes/Mica.xaml +++ b/Wino.Mail/AppThemes/Mica.xaml @@ -8,20 +8,14 @@ Transparent Transparent - 0,0,4,0 - 6,6,6,6 - - white - #ecf0f1 - Transparent #1f1f1f diff --git a/Wino.Mail/AppThemes/Nighty.xaml b/Wino.Mail/AppThemes/Nighty.xaml index 3644c954..721f7421 100644 --- a/Wino.Mail/AppThemes/Nighty.xaml +++ b/Wino.Mail/AppThemes/Nighty.xaml @@ -1,7 +1,7 @@  + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:xaml="using:Windows.UI.Xaml"> Nighty ms-appx:///BackgroundImages/Nighty.jpg @@ -9,18 +9,14 @@ Transparent - 4,0,4,0 - 6,6,6,6 - #A3FFFFFF #fdcb6e - #A3262626 #5413191F diff --git a/Wino.Mail/AppThemes/Snowflake.xaml b/Wino.Mail/AppThemes/Snowflake.xaml index 54a0b247..fd3ee92a 100644 --- a/Wino.Mail/AppThemes/Snowflake.xaml +++ b/Wino.Mail/AppThemes/Snowflake.xaml @@ -1,7 +1,7 @@  + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:xaml="using:Windows.UI.Xaml"> Snowflake ms-appx:///BackgroundImages/Snowflake.jpg @@ -9,19 +9,15 @@ Transparent - 4,0,4,0 - 6,6,6,6 - #A3FFFFFF - #FFFFFF + #b0c6dd - #A3262626 - #5413191F + #b0c6dd diff --git a/Wino.Mail/Styles/Colors.xaml b/Wino.Mail/Styles/Colors.xaml index f33c0dba..0da0285c 100644 --- a/Wino.Mail/Styles/Colors.xaml +++ b/Wino.Mail/Styles/Colors.xaml @@ -1,4 +1,7 @@ - + #e74c3c #e74c3c @@ -10,10 +13,12 @@ #fdcb6e #636e72 + #fdcb6e #2d3436 + diff --git a/Wino.Mail/Views/ComposePage.xaml b/Wino.Mail/Views/ComposePage.xaml index 7faf05df..6724d7ac 100644 --- a/Wino.Mail/Views/ComposePage.xaml +++ b/Wino.Mail/Views/ComposePage.xaml @@ -3,17 +3,17 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:abstract="using:Wino.Views.Abstract" - xmlns:d="http://schemas.microsoft.com/expression/blend/2008" - xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls="using:Wino.Controls" - xmlns:helpers="using:Wino.Helpers" - xmlns:muxc="using:Microsoft.UI.Xaml.Controls" - xmlns:mailkit="using:MimeKit" - xmlns:entities="using:Wino.Core.Domain.Entities" xmlns:controls1="using:CommunityToolkit.WinUI.Controls" + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:data="using:Wino.Mail.ViewModels.Data" - xmlns:reader="using:Wino.Core.Domain.Models.Reader" xmlns:domain="using:Wino.Core.Domain" + xmlns:entities="using:Wino.Core.Domain.Entities" + xmlns:helpers="using:Wino.Helpers" + xmlns:mailkit="using:MimeKit" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:muxc="using:Microsoft.UI.Xaml.Controls" + xmlns:reader="using:Wino.Core.Domain.Models.Reader" x:Name="root" d:Background="White" Loaded="ComposerLoaded" @@ -48,7 +48,7 @@ FromName="{x:Bind Name}" IsKnown="False" /> - + @@ -58,9 +58,9 @@ + ColumnSpacing="3"> @@ -85,8 +85,8 @@ + Foreground="{StaticResource DeleteBrush}" + Symbol="Cancel" /> - - Transparent - - + RowSpacing="7"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + Transparent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + BorderThickness="0" + ItemsSource="{x:Bind ViewModel.ToItems, Mode=OneTime}" + LostFocus="AddressBoxLostFocus" + PlaceholderText="{x:Bind domain:Translator.ComposerToPlaceholder}" + SuggestedItemTemplate="{StaticResource SuggestionBoxTemplate}" + Tag="ToBox" + TokenDelimiter=";" + TokenItemAdding="TokenItemAdding" + TokenItemTemplate="{StaticResource TokenBoxTemplate}" /> + - + + - - + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + FontSize="20" + FontWeight="SemiBold" + Opacity="0.5" + Text="{x:Bind domain:Translator.ComposerAttachmentsDropZone_Message}" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + diff --git a/Wino.Mail/Views/MailListPage.xaml b/Wino.Mail/Views/MailListPage.xaml index 1c5e2507..badaf85e 100644 --- a/Wino.Mail/Views/MailListPage.xaml +++ b/Wino.Mail/Views/MailListPage.xaml @@ -7,6 +7,7 @@ xmlns:controls="using:Wino.Controls" xmlns:controls1="using:CommunityToolkit.WinUI.Controls" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:domain="using:Wino.Core.Domain" xmlns:enums="using:Wino.Core.Domain.Enums" xmlns:helpers="using:Wino.Helpers" xmlns:i="using:Microsoft.Xaml.Interactivity" @@ -16,10 +17,9 @@ xmlns:menuflyouts="using:Wino.MenuFlyouts" xmlns:muxc="using:Microsoft.UI.Xaml.Controls" xmlns:selectors="using:Wino.Selectors" - xmlns:domain="using:Wino.Core.Domain" xmlns:ui="using:Microsoft.Toolkit.Uwp.UI" - xmlns:wino="using:Wino" xmlns:viewModelData="using:Wino.Mail.ViewModels.Data" + xmlns:wino="using:Wino" x:Name="root" Loaded="MailListPageLoaded" mc:Ignorable="d"> @@ -66,8 +66,8 @@ CornerRadius="6"> @@ -224,8 +224,6 @@ Tag="{x:Bind}"> @@ -357,8 +357,8 @@ - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - + + - diff --git a/Wino.Mail/Views/MailListPage.xaml.cs b/Wino.Mail/Views/MailListPage.xaml.cs index 33cea63a..1ba6fb81 100644 --- a/Wino.Mail/Views/MailListPage.xaml.cs +++ b/Wino.Mail/Views/MailListPage.xaml.cs @@ -153,18 +153,24 @@ namespace Wino.Views private void UpdateAdaptiveness() { - ReaderGrid.Visibility = !(StatePersistanceService.IsReadingMail && StatePersistanceService.IsReaderNarrowed) ? Visibility.Visible : Visibility.Collapsed; + var readerGridVisibility = !(StatePersistanceService.IsReadingMail && StatePersistanceService.IsReaderNarrowed) ? Visibility.Visible : Visibility.Collapsed; + ReaderGridContainer.Visibility = readerGridVisibility; + ReaderGrid.Visibility = readerGridVisibility; RenderingFrame.Visibility = StatePersistanceService.IsReadingMail ? Visibility.Visible : (StatePersistanceService.IsReaderNarrowed ? Visibility.Collapsed : Visibility.Visible); if (RenderingFrame.Visibility == Visibility.Collapsed) { Grid.SetColumn(ReaderGrid, 0); Grid.SetColumnSpan(ReaderGrid, 2); + Grid.SetColumn(ReaderGridContainer, 0); + Grid.SetColumnSpan(ReaderGridContainer, 2); } else { Grid.SetColumn(ReaderGrid, 0); Grid.SetColumnSpan(ReaderGrid, 1); + Grid.SetColumn(ReaderGridContainer, 0); + Grid.SetColumnSpan(ReaderGridContainer, 1); } if (ReaderGrid.Visibility == Visibility.Collapsed) @@ -536,7 +542,7 @@ namespace Wino.Views private async void SearchBar_TextChanged(AutoSuggestBox sender, AutoSuggestBoxTextChangedEventArgs args) { - if(args.Reason == AutoSuggestionBoxTextChangeReason.UserInput && string.IsNullOrWhiteSpace(sender.Text)) + if (args.Reason == AutoSuggestionBoxTextChangeReason.UserInput && string.IsNullOrWhiteSpace(sender.Text)) { await ViewModel.PerformSearchAsync(); } diff --git a/Wino.Mail/Views/MailRenderingPage.xaml b/Wino.Mail/Views/MailRenderingPage.xaml index b91faf81..159697cd 100644 --- a/Wino.Mail/Views/MailRenderingPage.xaml +++ b/Wino.Mail/Views/MailRenderingPage.xaml @@ -1,25 +1,25 @@  @@ -31,36 +31,36 @@ + Content="{x:Bind DisplayName}" /> + SetFlag="{StaticResource CommandBarItemSetFlagTemplate}" + Unarchive="{StaticResource CommandBarItemUnarchiveTemplate}" + Zoom="{StaticResource CommandBarItemZoomTemplate}" /> - + @@ -70,26 +70,26 @@ + ColumnSpacing="3"> + CommandParameter="{x:Bind}" + Text="{x:Bind domain:Translator.Buttons_Open}"> + CommandParameter="{x:Bind}" + Text="{x:Bind domain:Translator.Buttons_Save}"> @@ -108,9 +108,10 @@ ContentTemplateSelector="{StaticResource FileTypeIconSelector}" /> - + @@ -118,10 +119,10 @@ + Text="{x:Bind FileName}" + TextTrimming="CharacterEllipsis" + TextWrapping="Wrap" /> + Visibility="{x:Bind IsBusy, Mode=OneWay}" /> @@ -150,226 +151,256 @@ + Padding="7,0" + RowSpacing="7"> - - - - - - - - - - + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + - - - - - - + Text="{x:Bind domain:Translator.ComposerTo}" + Visibility="{x:Bind helpers:XamlHelpers.CountToVisibilityConverter(ViewModel.ToItems.Count), Mode=OneWay}" /> + + + + + + + - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + - + + + + + + + + + + + + +