Merge branch 'Tiktack-features/UI-refresh'
This commit is contained in:
@@ -209,6 +209,12 @@
|
|||||||
<Style TargetType="ScrollViewer">
|
<Style TargetType="ScrollViewer">
|
||||||
<Setter Property="VerticalScrollBarVisibility" Value="Auto" />
|
<Setter Property="VerticalScrollBarVisibility" Value="Auto" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
|
<!-- Remove border/backgroud of command bar -->
|
||||||
|
<SolidColorBrush x:Key="CommandBarBackground" Color="Transparent" />
|
||||||
|
<SolidColorBrush x:Key="CommandBarBackgroundOpen" Color="Transparent" />
|
||||||
|
<SolidColorBrush x:Key="CommandBarBorderBrushOpen" Color="Transparent" />
|
||||||
|
<Thickness x:Key="CommandBarBorderThicknessOpen">0</Thickness>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
|
|
||||||
<!-- Last item must always be the default theme. -->
|
<!-- Last item must always be the default theme. -->
|
||||||
|
|||||||
@@ -2,26 +2,29 @@
|
|||||||
x:Class="Wino.Views.AppShell"
|
x:Class="Wino.Views.AppShell"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
x:Name="Root"
|
|
||||||
xmlns:abstract="using:Wino.Views.Abstract"
|
xmlns:abstract="using:Wino.Views.Abstract"
|
||||||
xmlns:advanced="using:Wino.Controls.Advanced"
|
xmlns:advanced="using:Wino.Controls.Advanced"
|
||||||
xmlns:animatedvisuals="using:Microsoft.UI.Xaml.Controls.AnimatedVisuals"
|
xmlns:animatedvisuals="using:Microsoft.UI.Xaml.Controls.AnimatedVisuals"
|
||||||
|
xmlns:animations="using:CommunityToolkit.WinUI.Animations"
|
||||||
xmlns:controls="using:Wino.Controls"
|
xmlns:controls="using:Wino.Controls"
|
||||||
xmlns:controls1="using:CommunityToolkit.WinUI.Controls"
|
xmlns:controls1="using:CommunityToolkit.WinUI.Controls"
|
||||||
xmlns:domain="using:Wino.Core.Domain"
|
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
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:helpers="using:Wino.Helpers"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:enums="using:Wino.Core.Domain.Enums"
|
|
||||||
xmlns:menu="using:Wino.Core.MenuItems"
|
xmlns:menu="using:Wino.Core.MenuItems"
|
||||||
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
|
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
|
||||||
xmlns:animations="using:CommunityToolkit.WinUI.Animations"
|
|
||||||
xmlns:selectors="using:Wino.Selectors"
|
xmlns:selectors="using:Wino.Selectors"
|
||||||
|
x:Name="Root"
|
||||||
muxc:BackdropMaterial.ApplyToRootOrPageBackground="{ThemeResource UseMica}"
|
muxc:BackdropMaterial.ApplyToRootOrPageBackground="{ThemeResource UseMica}"
|
||||||
mc:Ignorable="d">
|
mc:Ignorable="d">
|
||||||
|
|
||||||
<Page.Resources>
|
<Page.Resources>
|
||||||
|
|
||||||
|
<!-- Removes default styles for content of navigation view -->
|
||||||
|
<SolidColorBrush x:Key="NavigationViewContentBackground" Color="Transparent" />
|
||||||
|
<SolidColorBrush x:Key="NavigationViewContentGridBorderBrush" Color="Transparent" />
|
||||||
|
|
||||||
<DataTemplate x:Key="SeperatorTemplate">
|
<DataTemplate x:Key="SeperatorTemplate">
|
||||||
<muxc:NavigationViewItemSeparator Margin="-20,0" />
|
<muxc:NavigationViewItemSeparator Margin="-20,0" />
|
||||||
@@ -110,15 +113,15 @@
|
|||||||
<!-- Clickable New Style Account Template -->
|
<!-- Clickable New Style Account Template -->
|
||||||
<DataTemplate x:Key="ClickableAccountMenuTemplate" x:DataType="menu:AccountMenuItem">
|
<DataTemplate x:Key="ClickableAccountMenuTemplate" x:DataType="menu:AccountMenuItem">
|
||||||
<controls:AccountNavigationItem
|
<controls:AccountNavigationItem
|
||||||
Style="{StaticResource SingleAccountNavigationViewItemTemplate}"
|
|
||||||
x:Name="AccountItem"
|
x:Name="AccountItem"
|
||||||
IsActiveAccount="{x:Bind IsSelected, Mode=OneWay}"
|
|
||||||
HorizontalContentAlignment="Stretch"
|
HorizontalContentAlignment="Stretch"
|
||||||
VerticalContentAlignment="Stretch"
|
VerticalContentAlignment="Stretch"
|
||||||
|
DataContext="{x:Bind}"
|
||||||
|
IsActiveAccount="{x:Bind IsSelected, Mode=OneWay}"
|
||||||
IsChildSelected="{x:Bind IsChildSelected, Mode=TwoWay}"
|
IsChildSelected="{x:Bind IsChildSelected, Mode=TwoWay}"
|
||||||
IsExpanded="{x:Bind IsExpanded, Mode=TwoWay}"
|
IsExpanded="{x:Bind IsExpanded, Mode=TwoWay}"
|
||||||
DataContext="{x:Bind}"
|
SelectsOnInvoked="False"
|
||||||
SelectsOnInvoked="False">
|
Style="{StaticResource SingleAccountNavigationViewItemTemplate}">
|
||||||
<controls:WinoNavigationViewItem.ContentTransitions>
|
<controls:WinoNavigationViewItem.ContentTransitions>
|
||||||
<TransitionCollection>
|
<TransitionCollection>
|
||||||
<EdgeUIThemeTransition Edge="Top" />
|
<EdgeUIThemeTransition Edge="Top" />
|
||||||
@@ -159,8 +162,8 @@
|
|||||||
|
|
||||||
<TextBlock
|
<TextBlock
|
||||||
FontSize="13"
|
FontSize="13"
|
||||||
MaxLines="1"
|
|
||||||
FontWeight="{x:Bind helpers:XamlHelpers.GetFontWeightByChildSelectedState(IsSelected), Mode=OneWay}"
|
FontWeight="{x:Bind helpers:XamlHelpers.GetFontWeightByChildSelectedState(IsSelected), Mode=OneWay}"
|
||||||
|
MaxLines="1"
|
||||||
Style="{StaticResource CaptionTextBlockStyle}"
|
Style="{StaticResource CaptionTextBlockStyle}"
|
||||||
Text="{x:Bind Parameter.Address, Mode=OneWay}"
|
Text="{x:Bind Parameter.Address, Mode=OneWay}"
|
||||||
TextTrimming="CharacterEllipsis" />
|
TextTrimming="CharacterEllipsis" />
|
||||||
@@ -239,8 +242,8 @@
|
|||||||
<DataTemplate x:Key="CreateNewMailTemplate" x:DataType="menu:NewMailMenuItem">
|
<DataTemplate x:Key="CreateNewMailTemplate" x:DataType="menu:NewMailMenuItem">
|
||||||
<controls:WinoNavigationViewItem
|
<controls:WinoNavigationViewItem
|
||||||
Height="50"
|
Height="50"
|
||||||
SelectsOnInvoked="False"
|
DataContext="{x:Bind}"
|
||||||
DataContext="{x:Bind}">
|
SelectsOnInvoked="False">
|
||||||
<muxc:NavigationViewItem.Icon>
|
<muxc:NavigationViewItem.Icon>
|
||||||
<controls:WinoFontIcon Icon="NewMail" />
|
<controls:WinoFontIcon Icon="NewMail" />
|
||||||
</muxc:NavigationViewItem.Icon>
|
</muxc:NavigationViewItem.Icon>
|
||||||
@@ -258,16 +261,16 @@
|
|||||||
MinHeight="30"
|
MinHeight="30"
|
||||||
AllowDrop="True"
|
AllowDrop="True"
|
||||||
ContextRequested="MenuItemContextRequested"
|
ContextRequested="MenuItemContextRequested"
|
||||||
|
DataContext="{x:Bind}"
|
||||||
DragEnter="ItemDragEnterOnFolder"
|
DragEnter="ItemDragEnterOnFolder"
|
||||||
DragLeave="ItemDragLeaveFromFolder"
|
DragLeave="ItemDragLeaveFromFolder"
|
||||||
Drop="ItemDroppedOnFolder"
|
Drop="ItemDroppedOnFolder"
|
||||||
DataContext="{x:Bind}"
|
|
||||||
FontSize="50"
|
FontSize="50"
|
||||||
FontWeight="{x:Bind helpers:XamlHelpers.GetFontWeightByChildSelectedState(IsSelected), Mode=OneWay}"
|
FontWeight="{x:Bind helpers:XamlHelpers.GetFontWeightByChildSelectedState(IsSelected), Mode=OneWay}"
|
||||||
IsExpanded="{x:Bind IsExpanded, Mode=TwoWay}"
|
IsExpanded="{x:Bind IsExpanded, Mode=TwoWay}"
|
||||||
IsSelected="{x:Bind IsSelected, 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}">
|
||||||
<animations:Implicit.Animations>
|
<animations:Implicit.Animations>
|
||||||
<animations:ScaleAnimation Duration="0:0:0.5" />
|
<animations:ScaleAnimation Duration="0:0:0.5" />
|
||||||
</animations:Implicit.Animations>
|
</animations:Implicit.Animations>
|
||||||
@@ -329,8 +332,8 @@
|
|||||||
IsActiveAccount="{x:Bind IsSelected, Mode=OneWay}"
|
IsActiveAccount="{x:Bind IsSelected, Mode=OneWay}"
|
||||||
IsChildSelected="{x:Bind IsChildSelected, Mode=TwoWay}"
|
IsChildSelected="{x:Bind IsChildSelected, Mode=TwoWay}"
|
||||||
IsExpanded="{x:Bind IsExpanded, Mode=TwoWay}"
|
IsExpanded="{x:Bind IsExpanded, Mode=TwoWay}"
|
||||||
Style="{StaticResource SingleAccountNavigationViewItemTemplate}"
|
SelectsOnInvoked="False"
|
||||||
SelectsOnInvoked="False">
|
Style="{StaticResource SingleAccountNavigationViewItemTemplate}">
|
||||||
<muxc:NavigationViewItem.InfoBadge>
|
<muxc:NavigationViewItem.InfoBadge>
|
||||||
<muxc:InfoBadge
|
<muxc:InfoBadge
|
||||||
x:Name="FolderInfoBadge"
|
x:Name="FolderInfoBadge"
|
||||||
@@ -376,9 +379,9 @@
|
|||||||
MinHeight="30"
|
MinHeight="30"
|
||||||
AllowDrop="True"
|
AllowDrop="True"
|
||||||
ContextRequested="MenuItemContextRequested"
|
ContextRequested="MenuItemContextRequested"
|
||||||
|
DataContext="{x:Bind}"
|
||||||
DragEnter="ItemDragEnterOnFolder"
|
DragEnter="ItemDragEnterOnFolder"
|
||||||
DragLeave="ItemDragLeaveFromFolder"
|
DragLeave="ItemDragLeaveFromFolder"
|
||||||
DataContext="{x:Bind}"
|
|
||||||
Drop="ItemDroppedOnFolder"
|
Drop="ItemDroppedOnFolder"
|
||||||
FontSize="50"
|
FontSize="50"
|
||||||
FontWeight="{x:Bind helpers:XamlHelpers.GetFontWeightByChildSelectedState(IsSelected), Mode=OneWay}"
|
FontWeight="{x:Bind helpers:XamlHelpers.GetFontWeightByChildSelectedState(IsSelected), Mode=OneWay}"
|
||||||
@@ -421,10 +424,10 @@
|
|||||||
<DataTemplate x:Key="MergedAccountMoreFolderItemTemplate" x:DataType="menu:MergedAccountMoreFolderMenuItem">
|
<DataTemplate x:Key="MergedAccountMoreFolderItemTemplate" x:DataType="menu:MergedAccountMoreFolderMenuItem">
|
||||||
<controls:WinoNavigationViewItem
|
<controls:WinoNavigationViewItem
|
||||||
MinHeight="30"
|
MinHeight="30"
|
||||||
|
Content="{x:Bind domain:Translator.More}"
|
||||||
FontWeight="{x:Bind helpers:XamlHelpers.GetFontWeightByChildSelectedState(IsSelected), Mode=OneWay}"
|
FontWeight="{x:Bind helpers:XamlHelpers.GetFontWeightByChildSelectedState(IsSelected), Mode=OneWay}"
|
||||||
IsExpanded="{x:Bind IsExpanded, Mode=TwoWay}"
|
IsExpanded="{x:Bind IsExpanded, Mode=TwoWay}"
|
||||||
IsSelected="{x:Bind IsSelected, Mode=TwoWay}"
|
IsSelected="{x:Bind IsSelected, Mode=TwoWay}"
|
||||||
Content="{x:Bind domain:Translator.More}"
|
|
||||||
MenuItemsSource="{x:Bind SubMenuItems, Mode=OneWay}"
|
MenuItemsSource="{x:Bind SubMenuItems, Mode=OneWay}"
|
||||||
SelectsOnInvoked="True">
|
SelectsOnInvoked="True">
|
||||||
<animations:Implicit.Animations>
|
<animations:Implicit.Animations>
|
||||||
@@ -469,15 +472,15 @@
|
|||||||
|
|
||||||
<selectors:NavigationMenuTemplateSelector
|
<selectors:NavigationMenuTemplateSelector
|
||||||
x:Key="NavigationMenuTemplateSelector"
|
x:Key="NavigationMenuTemplateSelector"
|
||||||
MergedAccountMoreExpansionItemTemplate="{StaticResource MergedAccountMoreFolderItemTemplate}"
|
|
||||||
ClickableAccountMenuTemplate="{StaticResource ClickableAccountMenuTemplate}"
|
|
||||||
AccountManagementTemplate="{StaticResource ManageAccountsTemplate}"
|
AccountManagementTemplate="{StaticResource ManageAccountsTemplate}"
|
||||||
NestedAccountMenuTemplate="{StaticResource NestedAccountMenuTemplate}"
|
ClickableAccountMenuTemplate="{StaticResource ClickableAccountMenuTemplate}"
|
||||||
FixAuthenticationIssueTemplate="{StaticResource FixAuthenticationIssueTemplate}"
|
FixAuthenticationIssueTemplate="{StaticResource FixAuthenticationIssueTemplate}"
|
||||||
FixMissingFolderConfigTemplate="{StaticResource FixMissingFolderConfig}"
|
FixMissingFolderConfigTemplate="{StaticResource FixMissingFolderConfig}"
|
||||||
FolderMenuTemplate="{StaticResource FolderMenuTemplate}"
|
FolderMenuTemplate="{StaticResource FolderMenuTemplate}"
|
||||||
MergedAccountFolderTemplate="{StaticResource MergedAccountFolderMenuItemTemplate}"
|
MergedAccountFolderTemplate="{StaticResource MergedAccountFolderMenuItemTemplate}"
|
||||||
|
MergedAccountMoreExpansionItemTemplate="{StaticResource MergedAccountMoreFolderItemTemplate}"
|
||||||
MergedAccountTemplate="{StaticResource MergedAccountTemplate}"
|
MergedAccountTemplate="{StaticResource MergedAccountTemplate}"
|
||||||
|
NestedAccountMenuTemplate="{StaticResource NestedAccountMenuTemplate}"
|
||||||
NewMailTemplate="{StaticResource CreateNewMailTemplate}"
|
NewMailTemplate="{StaticResource CreateNewMailTemplate}"
|
||||||
RatingItemTemplate="{StaticResource RatingItemTemplate}"
|
RatingItemTemplate="{StaticResource RatingItemTemplate}"
|
||||||
SeperatorTemplate="{StaticResource SeperatorTemplate}"
|
SeperatorTemplate="{StaticResource SeperatorTemplate}"
|
||||||
@@ -507,7 +510,6 @@
|
|||||||
IsHitTestVisible="False" />
|
IsHitTestVisible="False" />
|
||||||
|
|
||||||
<muxc:NavigationView
|
<muxc:NavigationView
|
||||||
IsTabStop="True"
|
|
||||||
x:Name="navigationView"
|
x:Name="navigationView"
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
Grid.ColumnSpan="3"
|
Grid.ColumnSpan="3"
|
||||||
@@ -519,6 +521,7 @@
|
|||||||
IsPaneOpen="{x:Bind ViewModel.PreferencesService.IsNavigationPaneOpened, Mode=TwoWay}"
|
IsPaneOpen="{x:Bind ViewModel.PreferencesService.IsNavigationPaneOpened, Mode=TwoWay}"
|
||||||
IsPaneToggleButtonVisible="False"
|
IsPaneToggleButtonVisible="False"
|
||||||
IsSettingsVisible="False"
|
IsSettingsVisible="False"
|
||||||
|
IsTabStop="True"
|
||||||
IsTitleBarAutoPaddingEnabled="False"
|
IsTitleBarAutoPaddingEnabled="False"
|
||||||
ItemInvoked="NavigationViewItemInvoked"
|
ItemInvoked="NavigationViewItemInvoked"
|
||||||
MenuItemTemplateSelector="{StaticResource NavigationMenuTemplateSelector}"
|
MenuItemTemplateSelector="{StaticResource NavigationMenuTemplateSelector}"
|
||||||
@@ -579,19 +582,19 @@
|
|||||||
x:Name="ShellInfoBar"
|
x:Name="ShellInfoBar"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
MaxWidth="700"
|
MaxWidth="700"
|
||||||
IsOpen="False"
|
|
||||||
Margin="0,60,25,0"
|
Margin="0,60,25,0"
|
||||||
HorizontalAlignment="Right"
|
HorizontalAlignment="Right"
|
||||||
VerticalAlignment="Top"
|
VerticalAlignment="Top"
|
||||||
IsClosable="False" />
|
IsClosable="False"
|
||||||
|
IsOpen="False" />
|
||||||
|
|
||||||
<!-- Teaching Tip -->
|
<!-- Teaching Tip -->
|
||||||
<muxc:TeachingTip
|
<muxc:TeachingTip
|
||||||
x:Name="ShellTip"
|
x:Name="ShellTip"
|
||||||
Target="{x:Bind ShellInfoBar}"
|
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
IsOpen="False"
|
IsOpen="False"
|
||||||
PreferredPlacement="Bottom" />
|
PreferredPlacement="Bottom"
|
||||||
|
Target="{x:Bind ShellInfoBar}" />
|
||||||
</Grid>
|
</Grid>
|
||||||
</muxc:NavigationView>
|
</muxc:NavigationView>
|
||||||
|
|
||||||
|
|||||||
@@ -1,43 +1,37 @@
|
|||||||
<ResourceDictionary
|
<ResourceDictionary
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:local="using:Microsoft.UI.Xaml.Media"
|
xmlns:local="using:Microsoft.UI.Xaml.Media"
|
||||||
xmlns:xaml="using:Windows.UI.Xaml"
|
xmlns:xaml="using:Windows.UI.Xaml">
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
||||||
|
|
||||||
<x:String x:Key="ThemeName">Acrylic</x:String>
|
<x:String x:Key="ThemeName">Acrylic</x:String>
|
||||||
<x:Boolean x:Key="UseMica">False</x:Boolean>
|
<x:Boolean x:Key="UseMica">False</x:Boolean>
|
||||||
|
|
||||||
<SolidColorBrush x:Key="AppBarBackgroundColor">Transparent</SolidColorBrush>
|
<SolidColorBrush x:Key="AppBarBackgroundColor">Transparent</SolidColorBrush>
|
||||||
<Thickness x:Key="RendererGridMargin">0,0,4,0</Thickness>
|
|
||||||
<xaml:CornerRadius x:Key="MailListGridCornerRadius">6,6,6,6</xaml:CornerRadius>
|
|
||||||
|
|
||||||
<!-- Acrylic Template -->
|
<!-- Acrylic Template -->
|
||||||
<ResourceDictionary.ThemeDictionaries>
|
<ResourceDictionary.ThemeDictionaries>
|
||||||
<ResourceDictionary x:Name="Light">
|
<ResourceDictionary x:Name="Light">
|
||||||
<!-- Reading Pane Background -->
|
|
||||||
<SolidColorBrush x:Key="ReadingPaneBackgroundColorBrush">white</SolidColorBrush>
|
|
||||||
|
|
||||||
<!-- Reading Page Date/Name Group Header Background -->
|
<!-- Reading Page Date/Name Group Header Background -->
|
||||||
<SolidColorBrush x:Key="MailListHeaderBackgroundColor">#ecf0f1</SolidColorBrush>
|
<SolidColorBrush x:Key="MailListHeaderBackgroundColor">#ecf0f1</SolidColorBrush>
|
||||||
|
|
||||||
<local:AcrylicBrush
|
<local:AcrylicBrush
|
||||||
x:Key="WinoApplicationBackgroundColor"
|
x:Key="WinoApplicationBackgroundColor"
|
||||||
TintColor="#FCFCFC"
|
BackgroundSource="HostBackdrop"
|
||||||
TintOpacity="0.75"
|
|
||||||
FallbackColor="#F9F9F9"
|
FallbackColor="#F9F9F9"
|
||||||
BackgroundSource="HostBackdrop" />
|
TintColor="#FCFCFC"
|
||||||
|
TintOpacity="0.75" />
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
|
|
||||||
<ResourceDictionary x:Name="Dark">
|
<ResourceDictionary x:Name="Dark">
|
||||||
<SolidColorBrush x:Key="ReadingPaneBackgroundColorBrush">Transparent</SolidColorBrush>
|
|
||||||
<SolidColorBrush x:Key="MailListHeaderBackgroundColor">#2C2C2C</SolidColorBrush>
|
<SolidColorBrush x:Key="MailListHeaderBackgroundColor">#2C2C2C</SolidColorBrush>
|
||||||
|
|
||||||
<local:AcrylicBrush
|
<local:AcrylicBrush
|
||||||
x:Key="WinoApplicationBackgroundColor"
|
x:Key="WinoApplicationBackgroundColor"
|
||||||
TintColor="#2C2C2C"
|
BackgroundSource="HostBackdrop"
|
||||||
TintOpacity="0.30"
|
|
||||||
FallbackColor="#2C2C2C"
|
FallbackColor="#2C2C2C"
|
||||||
BackgroundSource="HostBackdrop" />
|
TintColor="#2C2C2C"
|
||||||
|
TintOpacity="0.30" />
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
</ResourceDictionary.ThemeDictionaries>
|
</ResourceDictionary.ThemeDictionaries>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<ResourceDictionary
|
<ResourceDictionary
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:xaml="using:Windows.UI.Xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
xmlns:xaml="using:Windows.UI.Xaml">
|
||||||
|
|
||||||
<x:String x:Key="ThemeName">Clouds</x:String>
|
<x:String x:Key="ThemeName">Clouds</x:String>
|
||||||
<x:String x:Key="ThemeBackgroundImage">ms-appx:///BackgroundImages/Clouds.jpg</x:String>
|
<x:String x:Key="ThemeBackgroundImage">ms-appx:///BackgroundImages/Clouds.jpg</x:String>
|
||||||
@@ -9,19 +9,13 @@
|
|||||||
|
|
||||||
<ImageBrush x:Key="WinoApplicationBackgroundColor" ImageSource="{StaticResource ThemeBackgroundImage}" />
|
<ImageBrush x:Key="WinoApplicationBackgroundColor" ImageSource="{StaticResource ThemeBackgroundImage}" />
|
||||||
<SolidColorBrush x:Key="AppBarBackgroundColor">Transparent</SolidColorBrush>
|
<SolidColorBrush x:Key="AppBarBackgroundColor">Transparent</SolidColorBrush>
|
||||||
<Thickness x:Key="RendererGridMargin">4,0,4,0</Thickness>
|
|
||||||
<xaml:CornerRadius x:Key="MailListGridCornerRadius">6,6,6,6</xaml:CornerRadius>
|
|
||||||
|
|
||||||
<ResourceDictionary.ThemeDictionaries>
|
<ResourceDictionary.ThemeDictionaries>
|
||||||
<ResourceDictionary x:Name="Light">
|
<ResourceDictionary x:Name="Light">
|
||||||
<!-- Brushes -->
|
<SolidColorBrush x:Key="MailListHeaderBackgroundColor">#b2dffc</SolidColorBrush>
|
||||||
<SolidColorBrush x:Key="ReadingPaneBackgroundColorBrush">#A3FFFFFF</SolidColorBrush>
|
|
||||||
<SolidColorBrush x:Key="MailListHeaderBackgroundColor">#FFFFFF</SolidColorBrush>
|
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
<ResourceDictionary x:Name="Dark">
|
<ResourceDictionary x:Name="Dark">
|
||||||
<!-- Brushes -->
|
<SolidColorBrush x:Key="MailListHeaderBackgroundColor">#b2dffc</SolidColorBrush>
|
||||||
<SolidColorBrush x:Key="ReadingPaneBackgroundColorBrush">#A3262626</SolidColorBrush>
|
|
||||||
<SolidColorBrush x:Key="MailListHeaderBackgroundColor">#5413191F</SolidColorBrush>
|
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
</ResourceDictionary.ThemeDictionaries>
|
</ResourceDictionary.ThemeDictionaries>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<ResourceDictionary
|
<ResourceDictionary
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:xaml="using:Windows.UI.Xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
xmlns:xaml="using:Windows.UI.Xaml">
|
||||||
|
|
||||||
<x:String x:Key="ThemeName">Custom</x:String>
|
<x:String x:Key="ThemeName">Custom</x:String>
|
||||||
<x:String x:Key="ThemeBackgroundImage">ms-appdata:///local/CustomWallpaper.jpg</x:String>
|
<x:String x:Key="ThemeBackgroundImage">ms-appdata:///local/CustomWallpaper.jpg</x:String>
|
||||||
@@ -9,11 +9,8 @@
|
|||||||
|
|
||||||
<ImageBrush
|
<ImageBrush
|
||||||
x:Key="WinoApplicationBackgroundColor"
|
x:Key="WinoApplicationBackgroundColor"
|
||||||
Stretch="UniformToFill"
|
ImageSource="{StaticResource ThemeBackgroundImage}"
|
||||||
ImageSource="{StaticResource ThemeBackgroundImage}" />
|
Stretch="UniformToFill" />
|
||||||
|
|
||||||
<Thickness x:Key="RendererGridMargin">0,0,0,0</Thickness>
|
|
||||||
<xaml:CornerRadius x:Key="MailListGridCornerRadius">0,6,6,0</xaml:CornerRadius>
|
|
||||||
|
|
||||||
<!-- Navigation View Settings -->
|
<!-- Navigation View Settings -->
|
||||||
<xaml:CornerRadius x:Key="NavigationViewContentGridCornerRadius">0,0,0,0</xaml:CornerRadius>
|
<xaml:CornerRadius x:Key="NavigationViewContentGridCornerRadius">0,0,0,0</xaml:CornerRadius>
|
||||||
@@ -27,9 +24,6 @@
|
|||||||
|
|
||||||
<Color x:Key="MainCustomThemeColor">#D9FFFFFF</Color>
|
<Color x:Key="MainCustomThemeColor">#D9FFFFFF</Color>
|
||||||
|
|
||||||
<!-- Reading Pane Background -->
|
|
||||||
<SolidColorBrush x:Key="ReadingPaneBackgroundColorBrush" Color="{StaticResource MainCustomThemeColor}" />
|
|
||||||
|
|
||||||
<SolidColorBrush x:Key="AppBarBackgroundColor" Color="{StaticResource MainCustomThemeColor}" />
|
<SolidColorBrush x:Key="AppBarBackgroundColor" Color="{StaticResource MainCustomThemeColor}" />
|
||||||
<SolidColorBrush x:Key="NavigationViewContentBackground" Color="Transparent" />
|
<SolidColorBrush x:Key="NavigationViewContentBackground" Color="Transparent" />
|
||||||
<SolidColorBrush x:Key="NavigationViewExpandedPaneBackground" Color="{StaticResource MainCustomThemeColor}" />
|
<SolidColorBrush x:Key="NavigationViewExpandedPaneBackground" Color="{StaticResource MainCustomThemeColor}" />
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<ResourceDictionary
|
<ResourceDictionary
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:xaml="using:Windows.UI.Xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
xmlns:xaml="using:Windows.UI.Xaml">
|
||||||
|
|
||||||
<x:String x:Key="ThemeName">Forest</x:String>
|
<x:String x:Key="ThemeName">Forest</x:String>
|
||||||
<x:String x:Key="ThemeBackgroundImage">ms-appx:///BackgroundImages/Forest.jpg</x:String>
|
<x:String x:Key="ThemeBackgroundImage">ms-appx:///BackgroundImages/Forest.jpg</x:String>
|
||||||
@@ -9,18 +9,12 @@
|
|||||||
|
|
||||||
<ImageBrush x:Key="WinoApplicationBackgroundColor" ImageSource="{StaticResource ThemeBackgroundImage}" />
|
<ImageBrush x:Key="WinoApplicationBackgroundColor" ImageSource="{StaticResource ThemeBackgroundImage}" />
|
||||||
<SolidColorBrush x:Key="AppBarBackgroundColor">Transparent</SolidColorBrush>
|
<SolidColorBrush x:Key="AppBarBackgroundColor">Transparent</SolidColorBrush>
|
||||||
<Thickness x:Key="RendererGridMargin">4,0,4,0</Thickness>
|
|
||||||
<xaml:CornerRadius x:Key="MailListGridCornerRadius">6,6,6,6</xaml:CornerRadius>
|
|
||||||
|
|
||||||
<ResourceDictionary.ThemeDictionaries>
|
<ResourceDictionary.ThemeDictionaries>
|
||||||
<ResourceDictionary x:Name="Light">
|
<ResourceDictionary x:Name="Light">
|
||||||
<!-- Brushes -->
|
|
||||||
<SolidColorBrush x:Key="ReadingPaneBackgroundColorBrush">#2900F00A</SolidColorBrush>
|
|
||||||
<SolidColorBrush x:Key="MailListHeaderBackgroundColor">#A800D608</SolidColorBrush>
|
<SolidColorBrush x:Key="MailListHeaderBackgroundColor">#A800D608</SolidColorBrush>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
<ResourceDictionary x:Name="Dark">
|
<ResourceDictionary x:Name="Dark">
|
||||||
<!-- Brushes -->
|
|
||||||
<SolidColorBrush x:Key="ReadingPaneBackgroundColorBrush">#A3262626</SolidColorBrush>
|
|
||||||
<SolidColorBrush x:Key="MailListHeaderBackgroundColor">#59001C01</SolidColorBrush>
|
<SolidColorBrush x:Key="MailListHeaderBackgroundColor">#59001C01</SolidColorBrush>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
</ResourceDictionary.ThemeDictionaries>
|
</ResourceDictionary.ThemeDictionaries>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<ResourceDictionary
|
<ResourceDictionary
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:xaml="using:Windows.UI.Xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
xmlns:xaml="using:Windows.UI.Xaml">
|
||||||
|
|
||||||
<x:String x:Key="ThemeName">Garden</x:String>
|
<x:String x:Key="ThemeName">Garden</x:String>
|
||||||
<x:String x:Key="ThemeBackgroundImage">ms-appx:///BackgroundImages/Garden.jpg</x:String>
|
<x:String x:Key="ThemeBackgroundImage">ms-appx:///BackgroundImages/Garden.jpg</x:String>
|
||||||
@@ -9,19 +9,13 @@
|
|||||||
|
|
||||||
<ImageBrush x:Key="WinoApplicationBackgroundColor" ImageSource="{StaticResource ThemeBackgroundImage}" />
|
<ImageBrush x:Key="WinoApplicationBackgroundColor" ImageSource="{StaticResource ThemeBackgroundImage}" />
|
||||||
<SolidColorBrush x:Key="AppBarBackgroundColor">Transparent</SolidColorBrush>
|
<SolidColorBrush x:Key="AppBarBackgroundColor">Transparent</SolidColorBrush>
|
||||||
<Thickness x:Key="RendererGridMargin">4,0,4,0</Thickness>
|
|
||||||
<xaml:CornerRadius x:Key="MailListGridCornerRadius">6,6,6,6</xaml:CornerRadius>
|
|
||||||
|
|
||||||
<ResourceDictionary.ThemeDictionaries>
|
<ResourceDictionary.ThemeDictionaries>
|
||||||
<ResourceDictionary x:Name="Light">
|
<ResourceDictionary x:Name="Light">
|
||||||
<!-- Brushes -->
|
<SolidColorBrush x:Key="MailListHeaderBackgroundColor">#dcfad8</SolidColorBrush>
|
||||||
<SolidColorBrush x:Key="ReadingPaneBackgroundColorBrush">#A3FFFFFF</SolidColorBrush>
|
|
||||||
<SolidColorBrush x:Key="MailListHeaderBackgroundColor">#FFFFFF</SolidColorBrush>
|
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
<ResourceDictionary x:Name="Dark">
|
<ResourceDictionary x:Name="Dark">
|
||||||
<!-- Brushes -->
|
<SolidColorBrush x:Key="MailListHeaderBackgroundColor">#dcfad8</SolidColorBrush>
|
||||||
<SolidColorBrush x:Key="ReadingPaneBackgroundColorBrush">#A3262626</SolidColorBrush>
|
|
||||||
<SolidColorBrush x:Key="MailListHeaderBackgroundColor">#5413191F</SolidColorBrush>
|
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
</ResourceDictionary.ThemeDictionaries>
|
</ResourceDictionary.ThemeDictionaries>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
|
|||||||
@@ -8,20 +8,14 @@
|
|||||||
|
|
||||||
<SolidColorBrush x:Key="WinoApplicationBackgroundColor">Transparent</SolidColorBrush>
|
<SolidColorBrush x:Key="WinoApplicationBackgroundColor">Transparent</SolidColorBrush>
|
||||||
<SolidColorBrush x:Key="AppBarBackgroundColor">Transparent</SolidColorBrush>
|
<SolidColorBrush x:Key="AppBarBackgroundColor">Transparent</SolidColorBrush>
|
||||||
<Thickness x:Key="RendererGridMargin">0,0,4,0</Thickness>
|
|
||||||
<xaml:CornerRadius x:Key="MailListGridCornerRadius">6,6,6,6</xaml:CornerRadius>
|
|
||||||
|
|
||||||
<!-- Mica Template -->
|
<!-- Mica Template -->
|
||||||
<ResourceDictionary.ThemeDictionaries>
|
<ResourceDictionary.ThemeDictionaries>
|
||||||
<ResourceDictionary x:Name="Light">
|
<ResourceDictionary x:Name="Light">
|
||||||
<!-- Reading Pane Background -->
|
|
||||||
<SolidColorBrush x:Key="ReadingPaneBackgroundColorBrush">white</SolidColorBrush>
|
|
||||||
|
|
||||||
<!-- Reading Page Date/Name Group Header Background -->
|
<!-- Reading Page Date/Name Group Header Background -->
|
||||||
<SolidColorBrush x:Key="MailListHeaderBackgroundColor">#ecf0f1</SolidColorBrush>
|
<SolidColorBrush x:Key="MailListHeaderBackgroundColor">#ecf0f1</SolidColorBrush>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
<ResourceDictionary x:Name="Dark">
|
<ResourceDictionary x:Name="Dark">
|
||||||
<SolidColorBrush x:Key="ReadingPaneBackgroundColorBrush">Transparent</SolidColorBrush>
|
|
||||||
<SolidColorBrush x:Key="MailListHeaderBackgroundColor">#1f1f1f</SolidColorBrush>
|
<SolidColorBrush x:Key="MailListHeaderBackgroundColor">#1f1f1f</SolidColorBrush>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
</ResourceDictionary.ThemeDictionaries>
|
</ResourceDictionary.ThemeDictionaries>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<ResourceDictionary
|
<ResourceDictionary
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:xaml="using:Windows.UI.Xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
xmlns:xaml="using:Windows.UI.Xaml">
|
||||||
|
|
||||||
<x:String x:Key="ThemeName">Nighty</x:String>
|
<x:String x:Key="ThemeName">Nighty</x:String>
|
||||||
<x:String x:Key="ThemeBackgroundImage">ms-appx:///BackgroundImages/Nighty.jpg</x:String>
|
<x:String x:Key="ThemeBackgroundImage">ms-appx:///BackgroundImages/Nighty.jpg</x:String>
|
||||||
@@ -9,18 +9,14 @@
|
|||||||
|
|
||||||
<ImageBrush x:Key="WinoApplicationBackgroundColor" ImageSource="{StaticResource ThemeBackgroundImage}" />
|
<ImageBrush x:Key="WinoApplicationBackgroundColor" ImageSource="{StaticResource ThemeBackgroundImage}" />
|
||||||
<SolidColorBrush x:Key="AppBarBackgroundColor">Transparent</SolidColorBrush>
|
<SolidColorBrush x:Key="AppBarBackgroundColor">Transparent</SolidColorBrush>
|
||||||
<Thickness x:Key="RendererGridMargin">4,0,4,0</Thickness>
|
|
||||||
<xaml:CornerRadius x:Key="MailListGridCornerRadius">6,6,6,6</xaml:CornerRadius>
|
|
||||||
|
|
||||||
<ResourceDictionary.ThemeDictionaries>
|
<ResourceDictionary.ThemeDictionaries>
|
||||||
<ResourceDictionary x:Name="Light">
|
<ResourceDictionary x:Name="Light">
|
||||||
<!-- Brushes -->
|
<!-- Brushes -->
|
||||||
<SolidColorBrush x:Key="ReadingPaneBackgroundColorBrush">#A3FFFFFF</SolidColorBrush>
|
|
||||||
<SolidColorBrush x:Key="MailListHeaderBackgroundColor">#fdcb6e</SolidColorBrush>
|
<SolidColorBrush x:Key="MailListHeaderBackgroundColor">#fdcb6e</SolidColorBrush>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
<ResourceDictionary x:Name="Dark">
|
<ResourceDictionary x:Name="Dark">
|
||||||
<!-- Brushes -->
|
<!-- Brushes -->
|
||||||
<SolidColorBrush x:Key="ReadingPaneBackgroundColorBrush">#A3262626</SolidColorBrush>
|
|
||||||
<SolidColorBrush x:Key="MailListHeaderBackgroundColor">#5413191F</SolidColorBrush>
|
<SolidColorBrush x:Key="MailListHeaderBackgroundColor">#5413191F</SolidColorBrush>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
</ResourceDictionary.ThemeDictionaries>
|
</ResourceDictionary.ThemeDictionaries>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<ResourceDictionary
|
<ResourceDictionary
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:xaml="using:Windows.UI.Xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
xmlns:xaml="using:Windows.UI.Xaml">
|
||||||
|
|
||||||
<x:String x:Key="ThemeName">Snowflake</x:String>
|
<x:String x:Key="ThemeName">Snowflake</x:String>
|
||||||
<x:String x:Key="ThemeBackgroundImage">ms-appx:///BackgroundImages/Snowflake.jpg</x:String>
|
<x:String x:Key="ThemeBackgroundImage">ms-appx:///BackgroundImages/Snowflake.jpg</x:String>
|
||||||
@@ -9,19 +9,15 @@
|
|||||||
|
|
||||||
<ImageBrush x:Key="WinoApplicationBackgroundColor" ImageSource="{StaticResource ThemeBackgroundImage}" />
|
<ImageBrush x:Key="WinoApplicationBackgroundColor" ImageSource="{StaticResource ThemeBackgroundImage}" />
|
||||||
<SolidColorBrush x:Key="AppBarBackgroundColor">Transparent</SolidColorBrush>
|
<SolidColorBrush x:Key="AppBarBackgroundColor">Transparent</SolidColorBrush>
|
||||||
<Thickness x:Key="RendererGridMargin">4,0,4,0</Thickness>
|
|
||||||
<xaml:CornerRadius x:Key="MailListGridCornerRadius">6,6,6,6</xaml:CornerRadius>
|
|
||||||
|
|
||||||
<ResourceDictionary.ThemeDictionaries>
|
<ResourceDictionary.ThemeDictionaries>
|
||||||
<ResourceDictionary x:Name="Light">
|
<ResourceDictionary x:Name="Light">
|
||||||
<!-- Brushes -->
|
<!-- Brushes -->
|
||||||
<SolidColorBrush x:Key="ReadingPaneBackgroundColorBrush">#A3FFFFFF</SolidColorBrush>
|
<SolidColorBrush x:Key="MailListHeaderBackgroundColor">#b0c6dd</SolidColorBrush>
|
||||||
<SolidColorBrush x:Key="MailListHeaderBackgroundColor">#FFFFFF</SolidColorBrush>
|
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
<ResourceDictionary x:Name="Dark">
|
<ResourceDictionary x:Name="Dark">
|
||||||
<!-- Brushes -->
|
<!-- Brushes -->
|
||||||
<SolidColorBrush x:Key="ReadingPaneBackgroundColorBrush">#A3262626</SolidColorBrush>
|
<SolidColorBrush x:Key="MailListHeaderBackgroundColor">#b0c6dd</SolidColorBrush>
|
||||||
<SolidColorBrush x:Key="MailListHeaderBackgroundColor">#5413191F</SolidColorBrush>
|
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
</ResourceDictionary.ThemeDictionaries>
|
</ResourceDictionary.ThemeDictionaries>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
<ResourceDictionary
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:local="using:Microsoft.UI.Xaml.Media">
|
||||||
|
|
||||||
<SolidColorBrush x:Key="FlaggedBrush">#e74c3c</SolidColorBrush>
|
<SolidColorBrush x:Key="FlaggedBrush">#e74c3c</SolidColorBrush>
|
||||||
<SolidColorBrush x:Key="DeleteBrush">#e74c3c</SolidColorBrush>
|
<SolidColorBrush x:Key="DeleteBrush">#e74c3c</SolidColorBrush>
|
||||||
@@ -10,10 +13,12 @@
|
|||||||
<ResourceDictionary x:Name="Light">
|
<ResourceDictionary x:Name="Light">
|
||||||
<SolidColorBrush x:Key="AttachmentBrush">#fdcb6e</SolidColorBrush>
|
<SolidColorBrush x:Key="AttachmentBrush">#fdcb6e</SolidColorBrush>
|
||||||
<SolidColorBrush x:Key="SettingsPaneBorderBrush">#636e72</SolidColorBrush>
|
<SolidColorBrush x:Key="SettingsPaneBorderBrush">#636e72</SolidColorBrush>
|
||||||
|
<SolidColorBrush x:Key="WinoContentZoneBackgroud" Color="White" />
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
<ResourceDictionary x:Name="Dark">
|
<ResourceDictionary x:Name="Dark">
|
||||||
<SolidColorBrush x:Key="AttachmentBrush">#fdcb6e</SolidColorBrush>
|
<SolidColorBrush x:Key="AttachmentBrush">#fdcb6e</SolidColorBrush>
|
||||||
<SolidColorBrush x:Key="SettingsPaneBorderBrush">#2d3436</SolidColorBrush>
|
<SolidColorBrush x:Key="SettingsPaneBorderBrush">#2d3436</SolidColorBrush>
|
||||||
|
<StaticResource x:Key="WinoContentZoneBackgroud" ResourceKey="LayerFillColorDefaultBrush" />
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
</ResourceDictionary.ThemeDictionaries>
|
</ResourceDictionary.ThemeDictionaries>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -7,6 +7,7 @@
|
|||||||
xmlns:controls="using:Wino.Controls"
|
xmlns:controls="using:Wino.Controls"
|
||||||
xmlns:controls1="using:CommunityToolkit.WinUI.Controls"
|
xmlns:controls1="using:CommunityToolkit.WinUI.Controls"
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:domain="using:Wino.Core.Domain"
|
||||||
xmlns:enums="using:Wino.Core.Domain.Enums"
|
xmlns:enums="using:Wino.Core.Domain.Enums"
|
||||||
xmlns:helpers="using:Wino.Helpers"
|
xmlns:helpers="using:Wino.Helpers"
|
||||||
xmlns:i="using:Microsoft.Xaml.Interactivity"
|
xmlns:i="using:Microsoft.Xaml.Interactivity"
|
||||||
@@ -16,10 +17,9 @@
|
|||||||
xmlns:menuflyouts="using:Wino.MenuFlyouts"
|
xmlns:menuflyouts="using:Wino.MenuFlyouts"
|
||||||
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
|
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
|
||||||
xmlns:selectors="using:Wino.Selectors"
|
xmlns:selectors="using:Wino.Selectors"
|
||||||
xmlns:domain="using:Wino.Core.Domain"
|
|
||||||
xmlns:ui="using:Microsoft.Toolkit.Uwp.UI"
|
xmlns:ui="using:Microsoft.Toolkit.Uwp.UI"
|
||||||
xmlns:wino="using:Wino"
|
|
||||||
xmlns:viewModelData="using:Wino.Mail.ViewModels.Data"
|
xmlns:viewModelData="using:Wino.Mail.ViewModels.Data"
|
||||||
|
xmlns:wino="using:Wino"
|
||||||
x:Name="root"
|
x:Name="root"
|
||||||
Loaded="MailListPageLoaded"
|
Loaded="MailListPageLoaded"
|
||||||
mc:Ignorable="d">
|
mc:Ignorable="d">
|
||||||
@@ -66,8 +66,8 @@
|
|||||||
CornerRadius="6">
|
CornerRadius="6">
|
||||||
<TextBlock
|
<TextBlock
|
||||||
Padding="12"
|
Padding="12"
|
||||||
AllowFocusOnInteraction="False"
|
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
|
AllowFocusOnInteraction="False"
|
||||||
FontSize="13"
|
FontSize="13"
|
||||||
FontWeight="SemiBold"
|
FontWeight="SemiBold"
|
||||||
Text="{x:Bind helpers:XamlHelpers.GetMailGroupDateString(Key)}" />
|
Text="{x:Bind helpers:XamlHelpers.GetMailGroupDateString(Key)}" />
|
||||||
@@ -224,8 +224,6 @@
|
|||||||
Tag="{x:Bind}">
|
Tag="{x:Bind}">
|
||||||
<controls:MailItemDisplayInformationControl
|
<controls:MailItemDisplayInformationControl
|
||||||
x:DefaultBindMode="OneWay"
|
x:DefaultBindMode="OneWay"
|
||||||
MailItem="{Binding}"
|
|
||||||
HoverActionExecutedCommand="{Binding ElementName=root, Path=ViewModel.ExecuteHoverActionCommand}"
|
|
||||||
CenterHoverAction="{Binding ElementName=root, Path=ViewModel.PreferencesService.CenterHoverAction, Mode=OneWay}"
|
CenterHoverAction="{Binding ElementName=root, Path=ViewModel.PreferencesService.CenterHoverAction, Mode=OneWay}"
|
||||||
ContextRequested="MailItemContextRequested"
|
ContextRequested="MailItemContextRequested"
|
||||||
DisplayMode="{Binding ElementName=root, Path=ViewModel.PreferencesService.MailItemDisplayMode, Mode=OneWay}"
|
DisplayMode="{Binding ElementName=root, Path=ViewModel.PreferencesService.MailItemDisplayMode, Mode=OneWay}"
|
||||||
@@ -237,15 +235,17 @@
|
|||||||
FromAddress="{x:Bind FromAddress}"
|
FromAddress="{x:Bind FromAddress}"
|
||||||
FromName="{x:Bind FromName}"
|
FromName="{x:Bind FromName}"
|
||||||
HasAttachments="{x:Bind HasAttachments}"
|
HasAttachments="{x:Bind HasAttachments}"
|
||||||
|
HoverActionExecutedCommand="{Binding ElementName=root, Path=ViewModel.ExecuteHoverActionCommand}"
|
||||||
IsAvatarVisible="{Binding ElementName=root, Path=ViewModel.PreferencesService.IsShowSenderPicturesEnabled, Mode=OneWay}"
|
IsAvatarVisible="{Binding ElementName=root, Path=ViewModel.PreferencesService.IsShowSenderPicturesEnabled, Mode=OneWay}"
|
||||||
IsCustomFocused="{x:Bind IsCustomFocused, Mode=OneWay}"
|
IsCustomFocused="{x:Bind IsCustomFocused, Mode=OneWay}"
|
||||||
IsDraft="{x:Bind IsDraft, Mode=OneWay}"
|
IsDraft="{x:Bind IsDraft, Mode=OneWay}"
|
||||||
IsFlagged="{x:Bind IsFlagged, Mode=OneWay}"
|
IsFlagged="{x:Bind IsFlagged, Mode=OneWay}"
|
||||||
|
IsHoverActionsEnabled="{Binding ElementName=root, Path=ViewModel.PreferencesService.IsHoverActionsEnabled, Mode=OneWay}"
|
||||||
IsRead="{x:Bind IsRead, Mode=OneWay}"
|
IsRead="{x:Bind IsRead, Mode=OneWay}"
|
||||||
LeftHoverAction="{Binding ElementName=root, Path=ViewModel.PreferencesService.LeftHoverAction, Mode=OneWay}"
|
LeftHoverAction="{Binding ElementName=root, Path=ViewModel.PreferencesService.LeftHoverAction, Mode=OneWay}"
|
||||||
|
MailItem="{Binding}"
|
||||||
Prefer24HourTimeFormat="{Binding ElementName=root, Path=ViewModel.PreferencesService.Prefer24HourTimeFormat, Mode=OneWay}"
|
Prefer24HourTimeFormat="{Binding ElementName=root, Path=ViewModel.PreferencesService.Prefer24HourTimeFormat, Mode=OneWay}"
|
||||||
ReceivedDate="{x:Bind CreationDate}"
|
ReceivedDate="{x:Bind CreationDate}"
|
||||||
IsHoverActionsEnabled="{Binding ElementName=root, Path=ViewModel.PreferencesService.IsHoverActionsEnabled, Mode=OneWay}"
|
|
||||||
RightHoverAction="{Binding ElementName=root, Path=ViewModel.PreferencesService.RightHoverAction, Mode=OneWay}"
|
RightHoverAction="{Binding ElementName=root, Path=ViewModel.PreferencesService.RightHoverAction, Mode=OneWay}"
|
||||||
ShowPreviewText="{Binding ElementName=root, Path=ViewModel.PreferencesService.IsShowPreviewEnabled, Mode=OneWay}"
|
ShowPreviewText="{Binding ElementName=root, Path=ViewModel.PreferencesService.IsShowPreviewEnabled, Mode=OneWay}"
|
||||||
Snippet="{x:Bind PreviewText}"
|
Snippet="{x:Bind PreviewText}"
|
||||||
@@ -261,13 +261,10 @@
|
|||||||
Tag="{x:Bind}">
|
Tag="{x:Bind}">
|
||||||
<controls:MailItemDisplayInformationControl
|
<controls:MailItemDisplayInformationControl
|
||||||
x:DefaultBindMode="OneWay"
|
x:DefaultBindMode="OneWay"
|
||||||
MailItem="{Binding}"
|
|
||||||
HoverActionExecutedCommand="{Binding ElementName=root, Path=ViewModel.ExecuteHoverActionCommand}"
|
|
||||||
CenterHoverAction="{Binding ElementName=root, Path=ViewModel.PreferencesService.CenterHoverAction, Mode=OneWay}"
|
CenterHoverAction="{Binding ElementName=root, Path=ViewModel.PreferencesService.CenterHoverAction, Mode=OneWay}"
|
||||||
ContextRequested="MailItemContextRequested"
|
ContextRequested="MailItemContextRequested"
|
||||||
DisplayMode="{Binding ElementName=root, Path=ViewModel.PreferencesService.MailItemDisplayMode, Mode=OneWay}"
|
DisplayMode="{Binding ElementName=root, Path=ViewModel.PreferencesService.MailItemDisplayMode, Mode=OneWay}"
|
||||||
FocusVisualMargin="8"
|
FocusVisualMargin="8"
|
||||||
IsHoverActionsEnabled="{Binding ElementName=root, Path=ViewModel.PreferencesService.IsHoverActionsEnabled, Mode=OneWay}"
|
|
||||||
FocusVisualPrimaryBrush="{StaticResource SystemControlRevealFocusVisualBrush}"
|
FocusVisualPrimaryBrush="{StaticResource SystemControlRevealFocusVisualBrush}"
|
||||||
FocusVisualPrimaryThickness="2"
|
FocusVisualPrimaryThickness="2"
|
||||||
FocusVisualSecondaryBrush="{StaticResource SystemControlFocusVisualSecondaryBrush}"
|
FocusVisualSecondaryBrush="{StaticResource SystemControlFocusVisualSecondaryBrush}"
|
||||||
@@ -275,13 +272,16 @@
|
|||||||
FromAddress="{x:Bind FromAddress}"
|
FromAddress="{x:Bind FromAddress}"
|
||||||
FromName="{x:Bind FromName}"
|
FromName="{x:Bind FromName}"
|
||||||
HasAttachments="{x:Bind HasAttachments}"
|
HasAttachments="{x:Bind HasAttachments}"
|
||||||
|
HoverActionExecutedCommand="{Binding ElementName=root, Path=ViewModel.ExecuteHoverActionCommand}"
|
||||||
IsAvatarVisible="{Binding ElementName=root, Path=ViewModel.PreferencesService.IsShowSenderPicturesEnabled, Mode=OneWay}"
|
IsAvatarVisible="{Binding ElementName=root, Path=ViewModel.PreferencesService.IsShowSenderPicturesEnabled, Mode=OneWay}"
|
||||||
Prefer24HourTimeFormat="{Binding ElementName=root, Path=ViewModel.PreferencesService.Prefer24HourTimeFormat, Mode=OneWay}"
|
|
||||||
IsCustomFocused="{x:Bind IsCustomFocused, Mode=OneWay}"
|
IsCustomFocused="{x:Bind IsCustomFocused, Mode=OneWay}"
|
||||||
IsDraft="{x:Bind IsDraft, Mode=OneWay}"
|
IsDraft="{x:Bind IsDraft, Mode=OneWay}"
|
||||||
IsFlagged="{x:Bind IsFlagged, Mode=OneWay}"
|
IsFlagged="{x:Bind IsFlagged, Mode=OneWay}"
|
||||||
|
IsHoverActionsEnabled="{Binding ElementName=root, Path=ViewModel.PreferencesService.IsHoverActionsEnabled, Mode=OneWay}"
|
||||||
IsRead="{x:Bind IsRead, Mode=OneWay}"
|
IsRead="{x:Bind IsRead, Mode=OneWay}"
|
||||||
LeftHoverAction="{Binding ElementName=root, Path=ViewModel.PreferencesService.LeftHoverAction, Mode=OneWay}"
|
LeftHoverAction="{Binding ElementName=root, Path=ViewModel.PreferencesService.LeftHoverAction, Mode=OneWay}"
|
||||||
|
MailItem="{Binding}"
|
||||||
|
Prefer24HourTimeFormat="{Binding ElementName=root, Path=ViewModel.PreferencesService.Prefer24HourTimeFormat, Mode=OneWay}"
|
||||||
ReceivedDate="{x:Bind CreationDate}"
|
ReceivedDate="{x:Bind CreationDate}"
|
||||||
RightHoverAction="{Binding ElementName=root, Path=ViewModel.PreferencesService.RightHoverAction, Mode=OneWay}"
|
RightHoverAction="{Binding ElementName=root, Path=ViewModel.PreferencesService.RightHoverAction, Mode=OneWay}"
|
||||||
ShowPreviewText="{Binding ElementName=root, Path=ViewModel.PreferencesService.IsShowPreviewEnabled, Mode=OneWay}"
|
ShowPreviewText="{Binding ElementName=root, Path=ViewModel.PreferencesService.IsShowPreviewEnabled, Mode=OneWay}"
|
||||||
@@ -306,14 +306,8 @@
|
|||||||
x:DefaultBindMode="OneWay"
|
x:DefaultBindMode="OneWay"
|
||||||
Background="Transparent"
|
Background="Transparent"
|
||||||
BorderThickness="0"
|
BorderThickness="0"
|
||||||
MailItem="{Binding}"
|
|
||||||
Prefer24HourTimeFormat="{Binding ElementName=root, Path=ViewModel.PreferencesService.Prefer24HourTimeFormat, Mode=OneWay}"
|
|
||||||
CanDrag="True"
|
CanDrag="True"
|
||||||
IsHoverActionsEnabled="{Binding ElementName=root, Path=ViewModel.PreferencesService.IsHoverActionsEnabled, Mode=OneWay}"
|
|
||||||
HoverActionExecutedCommand="{Binding ElementName=root, Path=ViewModel.ExecuteHoverActionCommand}"
|
|
||||||
LeftHoverAction="{Binding ElementName=root, Path=ViewModel.PreferencesService.LeftHoverAction, Mode=OneWay}"
|
|
||||||
CenterHoverAction="{Binding ElementName=root, Path=ViewModel.PreferencesService.CenterHoverAction, Mode=OneWay}"
|
CenterHoverAction="{Binding ElementName=root, Path=ViewModel.PreferencesService.CenterHoverAction, Mode=OneWay}"
|
||||||
RightHoverAction="{Binding ElementName=root, Path=ViewModel.PreferencesService.RightHoverAction, Mode=OneWay}"
|
|
||||||
ConnectedExpander="{Binding ElementName=ThreadExpander}"
|
ConnectedExpander="{Binding ElementName=ThreadExpander}"
|
||||||
ContextRequested="MailItemContextRequested"
|
ContextRequested="MailItemContextRequested"
|
||||||
DisplayMode="{Binding ElementName=root, Path=ViewModel.PreferencesService.MailItemDisplayMode, Mode=OneWay}"
|
DisplayMode="{Binding ElementName=root, Path=ViewModel.PreferencesService.MailItemDisplayMode, Mode=OneWay}"
|
||||||
@@ -321,13 +315,19 @@
|
|||||||
DropCompleted="ThreadHeaderDragFinished"
|
DropCompleted="ThreadHeaderDragFinished"
|
||||||
FromAddress="{x:Bind FromAddress}"
|
FromAddress="{x:Bind FromAddress}"
|
||||||
FromName="{x:Bind FromName}"
|
FromName="{x:Bind FromName}"
|
||||||
IsHitTestVisible="True"
|
|
||||||
HasAttachments="{x:Bind HasAttachments}"
|
HasAttachments="{x:Bind HasAttachments}"
|
||||||
|
HoverActionExecutedCommand="{Binding ElementName=root, Path=ViewModel.ExecuteHoverActionCommand}"
|
||||||
IsAvatarVisible="{Binding ElementName=root, Path=ViewModel.PreferencesService.IsShowSenderPicturesEnabled, Mode=OneWay}"
|
IsAvatarVisible="{Binding ElementName=root, Path=ViewModel.PreferencesService.IsShowSenderPicturesEnabled, Mode=OneWay}"
|
||||||
IsDraft="{x:Bind IsDraft}"
|
IsDraft="{x:Bind IsDraft}"
|
||||||
IsFlagged="{x:Bind IsFlagged}"
|
IsFlagged="{x:Bind IsFlagged}"
|
||||||
|
IsHitTestVisible="True"
|
||||||
|
IsHoverActionsEnabled="{Binding ElementName=root, Path=ViewModel.PreferencesService.IsHoverActionsEnabled, Mode=OneWay}"
|
||||||
IsRead="{x:Bind IsRead}"
|
IsRead="{x:Bind IsRead}"
|
||||||
|
LeftHoverAction="{Binding ElementName=root, Path=ViewModel.PreferencesService.LeftHoverAction, Mode=OneWay}"
|
||||||
|
MailItem="{Binding}"
|
||||||
|
Prefer24HourTimeFormat="{Binding ElementName=root, Path=ViewModel.PreferencesService.Prefer24HourTimeFormat, Mode=OneWay}"
|
||||||
ReceivedDate="{x:Bind CreationDate}"
|
ReceivedDate="{x:Bind CreationDate}"
|
||||||
|
RightHoverAction="{Binding ElementName=root, Path=ViewModel.PreferencesService.RightHoverAction, Mode=OneWay}"
|
||||||
ShowPreviewText="{Binding ElementName=root, Path=ViewModel.PreferencesService.IsShowPreviewEnabled, Mode=OneWay}"
|
ShowPreviewText="{Binding ElementName=root, Path=ViewModel.PreferencesService.IsShowPreviewEnabled, Mode=OneWay}"
|
||||||
Snippet="{x:Bind PreviewText}"
|
Snippet="{x:Bind PreviewText}"
|
||||||
Subject="{x:Bind Subject}" />
|
Subject="{x:Bind Subject}" />
|
||||||
@@ -357,8 +357,8 @@
|
|||||||
|
|
||||||
<Style
|
<Style
|
||||||
x:Key="TopCommandBarButtonStyle"
|
x:Key="TopCommandBarButtonStyle"
|
||||||
TargetType="Button"
|
BasedOn="{StaticResource DefaultButtonStyle}"
|
||||||
BasedOn="{StaticResource DefaultButtonStyle}">
|
TargetType="Button">
|
||||||
<Setter Property="Background" Value="Transparent" />
|
<Setter Property="Background" Value="Transparent" />
|
||||||
<Setter Property="BorderThickness" Value="0" />
|
<Setter Property="BorderThickness" Value="0" />
|
||||||
<Setter Property="VerticalAlignment" Value="Center" />
|
<Setter Property="VerticalAlignment" Value="Center" />
|
||||||
@@ -368,8 +368,8 @@
|
|||||||
|
|
||||||
<Style
|
<Style
|
||||||
x:Key="TopCommandBarToggleButtonStyle"
|
x:Key="TopCommandBarToggleButtonStyle"
|
||||||
TargetType="ToggleButton"
|
BasedOn="{StaticResource DefaultToggleButtonStyle}"
|
||||||
BasedOn="{StaticResource DefaultToggleButtonStyle}">
|
TargetType="ToggleButton">
|
||||||
<Setter Property="Background" Value="Transparent" />
|
<Setter Property="Background" Value="Transparent" />
|
||||||
<Setter Property="BorderThickness" Value="0" />
|
<Setter Property="BorderThickness" Value="0" />
|
||||||
<Setter Property="VerticalAlignment" Value="Center" />
|
<Setter Property="VerticalAlignment" Value="Center" />
|
||||||
@@ -382,23 +382,22 @@
|
|||||||
<Grid>
|
<Grid>
|
||||||
<!-- Hidden focus receiver... -->
|
<!-- Hidden focus receiver... -->
|
||||||
<TextBox
|
<TextBox
|
||||||
Visibility="Collapsed"
|
|
||||||
Opacity="0"
|
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
VerticalAlignment="Bottom"
|
VerticalAlignment="Bottom"
|
||||||
HorizontalAlignment="Right" />
|
Opacity="0"
|
||||||
|
Visibility="Collapsed" />
|
||||||
|
|
||||||
<AutoSuggestBox
|
<AutoSuggestBox
|
||||||
x:Name="SearchBar"
|
x:Name="SearchBar"
|
||||||
Margin="0,0,8,0"
|
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
BorderBrush="Transparent"
|
BorderBrush="Transparent"
|
||||||
GotFocus="SearchBoxFocused"
|
GotFocus="SearchBoxFocused"
|
||||||
LostFocus="SearchBarUnfocused"
|
LostFocus="SearchBarUnfocused"
|
||||||
PlaceholderText="{x:Bind domain:Translator.SearchBarPlaceholder}"
|
PlaceholderText="{x:Bind domain:Translator.SearchBarPlaceholder}"
|
||||||
QueryIcon="Find"
|
QueryIcon="Find"
|
||||||
TextChanged="SearchBar_TextChanged"
|
Text="{x:Bind ViewModel.SearchQuery, Mode=TwoWay}"
|
||||||
Text="{x:Bind ViewModel.SearchQuery, Mode=TwoWay}">
|
TextChanged="SearchBar_TextChanged">
|
||||||
<i:Interaction.Behaviors>
|
<i:Interaction.Behaviors>
|
||||||
<ic:EventTriggerBehavior EventName="QuerySubmitted">
|
<ic:EventTriggerBehavior EventName="QuerySubmitted">
|
||||||
<ic:InvokeCommandAction Command="{x:Bind ViewModel.PerformSearchCommand}" />
|
<ic:InvokeCommandAction Command="{x:Bind ViewModel.PerformSearchCommand}" />
|
||||||
@@ -406,10 +405,9 @@
|
|||||||
</i:Interaction.Behaviors>
|
</i:Interaction.Behaviors>
|
||||||
</AutoSuggestBox>
|
</AutoSuggestBox>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
</wino:BasePage.ShellContent>
|
</wino:BasePage.ShellContent>
|
||||||
|
|
||||||
<Grid x:Name="RootGrid">
|
<Grid x:Name="RootGrid" Padding="0,0,0,7">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition
|
<ColumnDefinition
|
||||||
x:Name="ReaderColumn"
|
x:Name="ReaderColumn"
|
||||||
@@ -419,392 +417,395 @@
|
|||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
<!-- Mail Items -->
|
<!-- Mail Items -->
|
||||||
<Grid
|
<Border
|
||||||
x:Name="ReaderGrid"
|
x:Name="ReaderGridContainer"
|
||||||
Margin="-1,0,0,0"
|
Grid.Column="0"
|
||||||
Padding="4,0,0,0"
|
Padding="5,0,0,0"
|
||||||
HorizontalAlignment="Stretch"
|
Background="{ThemeResource WinoContentZoneBackgroud}"
|
||||||
Background="{ThemeResource ReadingPaneBackgroundColorBrush}"
|
BorderBrush="{StaticResource CardStrokeColorDefaultBrush}"
|
||||||
CornerRadius="{ThemeResource MailListGridCornerRadius}">
|
BorderThickness="1"
|
||||||
<Grid.RowDefinitions>
|
CornerRadius="7">
|
||||||
<RowDefinition Height="Auto" />
|
<Grid x:Name="ReaderGrid">
|
||||||
<RowDefinition Height="Auto" />
|
|
||||||
<RowDefinition Height="*" />
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
|
|
||||||
<!-- Top Area -->
|
|
||||||
<Grid
|
|
||||||
Padding="6"
|
|
||||||
CornerRadius="8"
|
|
||||||
RowSpacing="4">
|
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto" />
|
||||||
<RowDefinition Height="Auto" />
|
<RowDefinition Height="Auto" />
|
||||||
<RowDefinition Height="*" />
|
<RowDefinition Height="*" />
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<!-- Top Commands -->
|
<!-- Top Area -->
|
||||||
<Grid
|
<Grid
|
||||||
Grid.Row="0"
|
Padding="6"
|
||||||
Padding="2,0"
|
CornerRadius="8"
|
||||||
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
|
RowSpacing="4">
|
||||||
CornerRadius="8">
|
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="48" />
|
<RowDefinition Height="Auto" />
|
||||||
<RowDefinition Height="2" />
|
<RowDefinition Height="*" />
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<!-- Commands -->
|
<!-- Top Commands -->
|
||||||
<Grid>
|
<Grid
|
||||||
<Grid.ColumnDefinitions>
|
Grid.Row="0"
|
||||||
<ColumnDefinition Width="*" />
|
Padding="2,0"
|
||||||
<ColumnDefinition Width="*" />
|
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
|
||||||
<ColumnDefinition Width="Auto" />
|
CornerRadius="8">
|
||||||
<ColumnDefinition Width="*" />
|
<Grid.RowDefinitions>
|
||||||
<ColumnDefinition Width="*" />
|
<RowDefinition Height="48" />
|
||||||
<ColumnDefinition Width="*" />
|
<RowDefinition Height="2" />
|
||||||
<ColumnDefinition Width="*" />
|
</Grid.RowDefinitions>
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
|
|
||||||
<Button
|
<!-- Commands -->
|
||||||
Style="{StaticResource TopCommandBarButtonStyle}"
|
<Grid>
|
||||||
Command="{x:Bind ViewModel.SyncFolderCommand}"
|
<Grid.ColumnDefinitions>
|
||||||
IsEnabled="{x:Bind ViewModel.CanSynchronize, Mode=OneWay}">
|
<ColumnDefinition Width="*" />
|
||||||
<Button.Content>
|
<ColumnDefinition Width="*" />
|
||||||
<controls:WinoFontIcon Icon="Sync" FontSize="16" />
|
<ColumnDefinition Width="Auto" />
|
||||||
</Button.Content>
|
<ColumnDefinition Width="*" />
|
||||||
</Button>
|
<ColumnDefinition Width="*" />
|
||||||
|
<ColumnDefinition Width="*" />
|
||||||
|
<ColumnDefinition Width="*" />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
<ToggleButton
|
<Button
|
||||||
x:Name="SelectionModeToggle"
|
Command="{x:Bind ViewModel.SyncFolderCommand}"
|
||||||
Grid.Column="1"
|
IsEnabled="{x:Bind ViewModel.CanSynchronize, Mode=OneWay}"
|
||||||
Style="{StaticResource TopCommandBarToggleButtonStyle}"
|
Style="{StaticResource TopCommandBarButtonStyle}">
|
||||||
Checked="SelectionModeToggleChecked"
|
<Button.Content>
|
||||||
Unchecked="SelectionModeToggleUnchecked">
|
<controls:WinoFontIcon FontSize="16" Icon="Sync" />
|
||||||
<ToggleButton.Content>
|
</Button.Content>
|
||||||
<controls:WinoFontIcon FontSize="18" Icon="MultiSelect" />
|
</Button>
|
||||||
</ToggleButton.Content>
|
|
||||||
</ToggleButton>
|
|
||||||
|
|
||||||
<AppBarSeparator Grid.Column="2" Margin="2,0" />
|
<ToggleButton
|
||||||
|
x:Name="SelectionModeToggle"
|
||||||
|
Grid.Column="1"
|
||||||
|
Checked="SelectionModeToggleChecked"
|
||||||
|
Style="{StaticResource TopCommandBarToggleButtonStyle}"
|
||||||
|
Unchecked="SelectionModeToggleUnchecked">
|
||||||
|
<ToggleButton.Content>
|
||||||
|
<controls:WinoFontIcon FontSize="18" Icon="MultiSelect" />
|
||||||
|
</ToggleButton.Content>
|
||||||
|
</ToggleButton>
|
||||||
|
|
||||||
<Button
|
<AppBarSeparator Grid.Column="2" Margin="2,0" />
|
||||||
x:Name="ArchiveAppBarButton"
|
|
||||||
Grid.Column="3"
|
|
||||||
x:Load="{x:Bind helpers:XamlHelpers.ReverseBoolConverter(ViewModel.IsArchiveSpecialFolder), Mode=OneWay}"
|
|
||||||
Style="{StaticResource TopCommandBarButtonStyle}"
|
|
||||||
Command="{x:Bind ViewModel.MailOperationCommand}"
|
|
||||||
IsEnabled="{x:Bind ViewModel.HasSelectedItems, Mode=OneWay}"
|
|
||||||
ToolTipService.ToolTip="{x:Bind domain:Translator.MailOperation_Archive}">
|
|
||||||
<Button.Content>
|
|
||||||
<controls:WinoFontIcon FontSize="18" Icon="Archive" />
|
|
||||||
</Button.Content>
|
|
||||||
<Button.CommandParameter>
|
|
||||||
<enums:MailOperation>Archive</enums:MailOperation>
|
|
||||||
</Button.CommandParameter>
|
|
||||||
</Button>
|
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
x:Name="UnarchiveAppBarButton"
|
x:Name="ArchiveAppBarButton"
|
||||||
Grid.Column="3"
|
Grid.Column="3"
|
||||||
x:Load="{x:Bind ViewModel.IsArchiveSpecialFolder, Mode=OneWay}"
|
x:Load="{x:Bind helpers:XamlHelpers.ReverseBoolConverter(ViewModel.IsArchiveSpecialFolder), Mode=OneWay}"
|
||||||
Style="{StaticResource TopCommandBarButtonStyle}"
|
Command="{x:Bind ViewModel.MailOperationCommand}"
|
||||||
Command="{x:Bind ViewModel.MailOperationCommand}"
|
IsEnabled="{x:Bind ViewModel.HasSelectedItems, Mode=OneWay}"
|
||||||
IsEnabled="{x:Bind ViewModel.HasSelectedItems, Mode=OneWay}"
|
Style="{StaticResource TopCommandBarButtonStyle}"
|
||||||
ToolTipService.ToolTip="{x:Bind domain:Translator.MailOperation_Unarchive}">
|
ToolTipService.ToolTip="{x:Bind domain:Translator.MailOperation_Archive}">
|
||||||
<Button.Content>
|
<Button.Content>
|
||||||
<controls:WinoFontIcon FontSize="18" Icon="UnArchive" />
|
<controls:WinoFontIcon FontSize="18" Icon="Archive" />
|
||||||
</Button.Content>
|
</Button.Content>
|
||||||
<Button.CommandParameter>
|
<Button.CommandParameter>
|
||||||
<enums:MailOperation>UnArchive</enums:MailOperation>
|
<enums:MailOperation>Archive</enums:MailOperation>
|
||||||
</Button.CommandParameter>
|
</Button.CommandParameter>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
Grid.Column="4"
|
x:Name="UnarchiveAppBarButton"
|
||||||
Style="{StaticResource TopCommandBarButtonStyle}"
|
Grid.Column="3"
|
||||||
Command="{x:Bind ViewModel.MailOperationCommand}"
|
x:Load="{x:Bind ViewModel.IsArchiveSpecialFolder, Mode=OneWay}"
|
||||||
IsEnabled="{x:Bind ViewModel.HasSelectedItems, Mode=OneWay}"
|
Command="{x:Bind ViewModel.MailOperationCommand}"
|
||||||
ToolTipService.ToolTip="{x:Bind domain:Translator.MailOperation_Delete}">
|
IsEnabled="{x:Bind ViewModel.HasSelectedItems, Mode=OneWay}"
|
||||||
<Button.CommandParameter>
|
Style="{StaticResource TopCommandBarButtonStyle}"
|
||||||
<enums:MailOperation>SoftDelete</enums:MailOperation>
|
ToolTipService.ToolTip="{x:Bind domain:Translator.MailOperation_Unarchive}">
|
||||||
</Button.CommandParameter>
|
<Button.Content>
|
||||||
<Button.Content>
|
<controls:WinoFontIcon FontSize="18" Icon="UnArchive" />
|
||||||
<controls:WinoFontIcon FontSize="18" Icon="Delete" />
|
</Button.Content>
|
||||||
</Button.Content>
|
<Button.CommandParameter>
|
||||||
</Button>
|
<enums:MailOperation>UnArchive</enums:MailOperation>
|
||||||
|
</Button.CommandParameter>
|
||||||
|
</Button>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
x:Name="MoveButtonAppBarButton"
|
Grid.Column="4"
|
||||||
Grid.Column="5"
|
Command="{x:Bind ViewModel.MailOperationCommand}"
|
||||||
Command="{x:Bind ViewModel.MailOperationCommand}"
|
IsEnabled="{x:Bind ViewModel.HasSelectedItems, Mode=OneWay}"
|
||||||
IsEnabled="{x:Bind ViewModel.HasSelectedItems, Mode=OneWay}"
|
Style="{StaticResource TopCommandBarButtonStyle}"
|
||||||
Style="{StaticResource TopCommandBarButtonStyle}"
|
ToolTipService.ToolTip="{x:Bind domain:Translator.MailOperation_Delete}">
|
||||||
ToolTipService.ToolTip="{x:Bind domain:Translator.MailOperation_Move}">
|
<Button.CommandParameter>
|
||||||
<Button.CommandParameter>
|
<enums:MailOperation>SoftDelete</enums:MailOperation>
|
||||||
<enums:MailOperation>Move</enums:MailOperation>
|
</Button.CommandParameter>
|
||||||
</Button.CommandParameter>
|
<Button.Content>
|
||||||
<Button.Content>
|
<controls:WinoFontIcon FontSize="18" Icon="Delete" />
|
||||||
<controls:WinoFontIcon FontSize="18" Icon="Move" />
|
</Button.Content>
|
||||||
</Button.Content>
|
</Button>
|
||||||
</Button>
|
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
Grid.Column="6"
|
x:Name="MoveButtonAppBarButton"
|
||||||
Style="{StaticResource TopCommandBarButtonStyle}"
|
Grid.Column="5"
|
||||||
IsEnabled="{x:Bind ViewModel.HasSelectedItems, Mode=OneWay}">
|
Command="{x:Bind ViewModel.MailOperationCommand}"
|
||||||
<Button.Content>
|
IsEnabled="{x:Bind ViewModel.HasSelectedItems, Mode=OneWay}"
|
||||||
<controls:WinoFontIcon FontSize="20" Icon="More" />
|
Style="{StaticResource TopCommandBarButtonStyle}"
|
||||||
</Button.Content>
|
ToolTipService.ToolTip="{x:Bind domain:Translator.MailOperation_Move}">
|
||||||
<Button.Flyout>
|
<Button.CommandParameter>
|
||||||
<MenuFlyout AreOpenCloseAnimationsEnabled="False" Placement="BottomEdgeAlignedLeft">
|
<enums:MailOperation>Move</enums:MailOperation>
|
||||||
<MenuFlyoutItem Command="{x:Bind ViewModel.MailOperationCommand}" Text="{x:Bind domain:Translator.MailOperation_SetFlag}">
|
</Button.CommandParameter>
|
||||||
<MenuFlyoutItem.CommandParameter>
|
<Button.Content>
|
||||||
<enums:MailOperation>SetFlag</enums:MailOperation>
|
<controls:WinoFontIcon FontSize="18" Icon="Move" />
|
||||||
</MenuFlyoutItem.CommandParameter>
|
</Button.Content>
|
||||||
<MenuFlyoutItem.Icon>
|
</Button>
|
||||||
<controls:WinoFontIcon Icon="Flag" />
|
|
||||||
</MenuFlyoutItem.Icon>
|
<Button
|
||||||
</MenuFlyoutItem>
|
Grid.Column="6"
|
||||||
<MenuFlyoutItem Command="{x:Bind ViewModel.MailOperationCommand}" Text="{x:Bind domain:Translator.MailOperation_ClearFlag}">
|
IsEnabled="{x:Bind ViewModel.HasSelectedItems, Mode=OneWay}"
|
||||||
<MenuFlyoutItem.CommandParameter>
|
Style="{StaticResource TopCommandBarButtonStyle}">
|
||||||
<enums:MailOperation>ClearFlag</enums:MailOperation>
|
<Button.Content>
|
||||||
</MenuFlyoutItem.CommandParameter>
|
<controls:WinoFontIcon FontSize="20" Icon="More" />
|
||||||
<MenuFlyoutItem.Icon>
|
</Button.Content>
|
||||||
<controls:WinoFontIcon Icon="ClearFlag" />
|
<Button.Flyout>
|
||||||
</MenuFlyoutItem.Icon>
|
<MenuFlyout AreOpenCloseAnimationsEnabled="False" Placement="BottomEdgeAlignedLeft">
|
||||||
</MenuFlyoutItem>
|
<MenuFlyoutItem Command="{x:Bind ViewModel.MailOperationCommand}" Text="{x:Bind domain:Translator.MailOperation_SetFlag}">
|
||||||
<MenuFlyoutItem Command="{x:Bind ViewModel.MailOperationCommand}" Text="{x:Bind domain:Translator.MailOperation_MarkAsRead}">
|
<MenuFlyoutItem.CommandParameter>
|
||||||
<MenuFlyoutItem.CommandParameter>
|
<enums:MailOperation>SetFlag</enums:MailOperation>
|
||||||
<enums:MailOperation>MarkAsRead</enums:MailOperation>
|
</MenuFlyoutItem.CommandParameter>
|
||||||
</MenuFlyoutItem.CommandParameter>
|
<MenuFlyoutItem.Icon>
|
||||||
<MenuFlyoutItem.Icon>
|
<controls:WinoFontIcon Icon="Flag" />
|
||||||
<controls:WinoFontIcon Icon="MarkRead" />
|
</MenuFlyoutItem.Icon>
|
||||||
</MenuFlyoutItem.Icon>
|
</MenuFlyoutItem>
|
||||||
</MenuFlyoutItem>
|
<MenuFlyoutItem Command="{x:Bind ViewModel.MailOperationCommand}" Text="{x:Bind domain:Translator.MailOperation_ClearFlag}">
|
||||||
<MenuFlyoutItem Command="{x:Bind ViewModel.MailOperationCommand}" Text="{x:Bind domain:Translator.MailOperation_MarkAsUnread}">
|
<MenuFlyoutItem.CommandParameter>
|
||||||
<MenuFlyoutItem.CommandParameter>
|
<enums:MailOperation>ClearFlag</enums:MailOperation>
|
||||||
<enums:MailOperation>MarkAsUnread</enums:MailOperation>
|
</MenuFlyoutItem.CommandParameter>
|
||||||
</MenuFlyoutItem.CommandParameter>
|
<MenuFlyoutItem.Icon>
|
||||||
<MenuFlyoutItem.Icon>
|
<controls:WinoFontIcon Icon="ClearFlag" />
|
||||||
<controls:WinoFontIcon Icon="MarkUnread" />
|
</MenuFlyoutItem.Icon>
|
||||||
</MenuFlyoutItem.Icon>
|
</MenuFlyoutItem>
|
||||||
</MenuFlyoutItem>
|
<MenuFlyoutItem Command="{x:Bind ViewModel.MailOperationCommand}" Text="{x:Bind domain:Translator.MailOperation_MarkAsRead}">
|
||||||
</MenuFlyout>
|
<MenuFlyoutItem.CommandParameter>
|
||||||
</Button.Flyout>
|
<enums:MailOperation>MarkAsRead</enums:MailOperation>
|
||||||
</Button>
|
</MenuFlyoutItem.CommandParameter>
|
||||||
|
<MenuFlyoutItem.Icon>
|
||||||
|
<controls:WinoFontIcon Icon="MarkRead" />
|
||||||
|
</MenuFlyoutItem.Icon>
|
||||||
|
</MenuFlyoutItem>
|
||||||
|
<MenuFlyoutItem Command="{x:Bind ViewModel.MailOperationCommand}" Text="{x:Bind domain:Translator.MailOperation_MarkAsUnread}">
|
||||||
|
<MenuFlyoutItem.CommandParameter>
|
||||||
|
<enums:MailOperation>MarkAsUnread</enums:MailOperation>
|
||||||
|
</MenuFlyoutItem.CommandParameter>
|
||||||
|
<MenuFlyoutItem.Icon>
|
||||||
|
<controls:WinoFontIcon Icon="MarkUnread" />
|
||||||
|
</MenuFlyoutItem.Icon>
|
||||||
|
</MenuFlyoutItem>
|
||||||
|
</MenuFlyout>
|
||||||
|
</Button.Flyout>
|
||||||
|
</Button>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<muxc:ProgressBar
|
||||||
|
x:Name="LoadingProgressBar"
|
||||||
|
Grid.Row="1"
|
||||||
|
x:Load="{x:Bind ViewModel.IsInitializingFolder, Mode=OneWay}"
|
||||||
|
IsIndeterminate="True" />
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<muxc:ProgressBar
|
<!-- Pivot + Sync + Multi Select -->
|
||||||
x:Name="LoadingProgressBar"
|
<Grid
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
IsIndeterminate="True"
|
Margin="0,0,0,5"
|
||||||
x:Load="{x:Bind ViewModel.IsInitializingFolder, Mode=OneWay}" />
|
Visibility="{x:Bind helpers:XamlHelpers.ReverseBoolToVisibilityConverter(ViewModel.IsInSearchMode), Mode=OneWay}">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto" />
|
||||||
|
<ColumnDefinition Width="*" />
|
||||||
|
<ColumnDefinition Width="Auto" />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto" />
|
||||||
|
<RowDefinition Height="Auto" />
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<!-- Select All Checkbox -->
|
||||||
|
<CheckBox
|
||||||
|
x:Name="SelectAllCheckbox"
|
||||||
|
Grid.Row="1"
|
||||||
|
MinWidth="0"
|
||||||
|
Margin="8,0,0,0"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Canvas.ZIndex="100"
|
||||||
|
Checked="SelectAllCheckboxChecked"
|
||||||
|
Unchecked="SelectAllCheckboxUnchecked"
|
||||||
|
Visibility="{x:Bind helpers:XamlHelpers.IsSelectionModeMultiple(MailListView.SelectionMode), Mode=OneWay}" />
|
||||||
|
|
||||||
|
<!-- Folders -->
|
||||||
|
<controls:WinoPivotControl
|
||||||
|
x:Name="WinoPivot"
|
||||||
|
Grid.Row="1"
|
||||||
|
Grid.Column="1"
|
||||||
|
HorizontalAlignment="Left"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
DataTemplate="{StaticResource FolderPivotTemplate}"
|
||||||
|
ItemsSource="{x:Bind ViewModel.PivotFolders, Mode=OneWay}"
|
||||||
|
SelectedItem="{x:Bind ViewModel.SelectedFolderPivot, Mode=TwoWay}"
|
||||||
|
SelectionChanged="FolderPivotChanged"
|
||||||
|
SelectorPipeColor="{ThemeResource NavigationViewSelectionIndicatorForeground}" />
|
||||||
|
|
||||||
|
<!-- Filtering -->
|
||||||
|
<muxc:DropDownButton
|
||||||
|
Grid.Row="1"
|
||||||
|
Grid.Column="2"
|
||||||
|
Content="{x:Bind ViewModel.SelectedFilterOption.Title, Mode=OneWay}"
|
||||||
|
ToolTipService.ToolTip="Filter">
|
||||||
|
<muxc:DropDownButton.Flyout>
|
||||||
|
<menuflyouts:FilterMenuFlyout
|
||||||
|
x:Name="FilterMenuFlyout"
|
||||||
|
AreOpenCloseAnimationsEnabled="True"
|
||||||
|
FilterOptions="{x:Bind ViewModel.FilterOptions, Mode=OneTime}"
|
||||||
|
Placement="Bottom"
|
||||||
|
SelectedFilterChangedCommand="{x:Bind ViewModel.SelectedFilterChangedCommand}"
|
||||||
|
SelectedFilterOption="{x:Bind ViewModel.SelectedFilterOption, Mode=TwoWay}"
|
||||||
|
SelectedSortingOption="{x:Bind ViewModel.SelectedSortingOption, Mode=TwoWay}"
|
||||||
|
SelectedSortingOptionChangedCommand="{x:Bind ViewModel.SelectedSortingChangedCommand}"
|
||||||
|
SortingOptions="{x:Bind ViewModel.SortingOptions, Mode=OneTime}" />
|
||||||
|
</muxc:DropDownButton.Flyout>
|
||||||
|
</muxc:DropDownButton>
|
||||||
|
|
||||||
|
<muxc:InfoBar
|
||||||
|
Title="{x:Bind domain:Translator.InfoBarTitle_SynchronizationDisabledFolder}"
|
||||||
|
Grid.Row="0"
|
||||||
|
Grid.ColumnSpan="3"
|
||||||
|
IsClosable="True"
|
||||||
|
IsOpen="{x:Bind ViewModel.IsFolderSynchronizationEnabled, Converter={StaticResource ReverseBooleanConverter}, Mode=OneWay}"
|
||||||
|
Message="{x:Bind domain:Translator.InfoBarMessage_SynchronizationDisabledFolder}"
|
||||||
|
Severity="Informational">
|
||||||
|
<muxc:InfoBar.ActionButton>
|
||||||
|
<Button Command="{x:Bind ViewModel.EnableFolderSynchronizationCommand}" Content="Enable" />
|
||||||
|
</muxc:InfoBar.ActionButton>
|
||||||
|
</muxc:InfoBar>
|
||||||
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<!-- Pivot + Sync + Multi Select -->
|
<!-- No items createria -->
|
||||||
<Grid
|
<StackPanel
|
||||||
Grid.Row="1"
|
x:Name="NoItemsPanel"
|
||||||
Margin="0,0,0,5"
|
|
||||||
Visibility="{x:Bind helpers:XamlHelpers.ReverseBoolToVisibilityConverter(ViewModel.IsInSearchMode), Mode=OneWay}">
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="Auto" />
|
|
||||||
<ColumnDefinition Width="*" />
|
|
||||||
<ColumnDefinition Width="Auto" />
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition Height="Auto" />
|
|
||||||
<RowDefinition Height="Auto" />
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
|
|
||||||
<!-- Select All Checkbox -->
|
|
||||||
<CheckBox
|
|
||||||
x:Name="SelectAllCheckbox"
|
|
||||||
Grid.Row="1"
|
|
||||||
MinWidth="0"
|
|
||||||
Margin="8,0,0,0"
|
|
||||||
VerticalAlignment="Center"
|
|
||||||
Canvas.ZIndex="100"
|
|
||||||
Checked="SelectAllCheckboxChecked"
|
|
||||||
Unchecked="SelectAllCheckboxUnchecked"
|
|
||||||
Visibility="{x:Bind helpers:XamlHelpers.IsSelectionModeMultiple(MailListView.SelectionMode), Mode=OneWay}" />
|
|
||||||
|
|
||||||
<!-- Folders -->
|
|
||||||
<controls:WinoPivotControl
|
|
||||||
x:Name="WinoPivot"
|
|
||||||
Grid.Row="1"
|
|
||||||
Grid.Column="1"
|
|
||||||
HorizontalAlignment="Left"
|
|
||||||
VerticalAlignment="Center"
|
|
||||||
DataTemplate="{StaticResource FolderPivotTemplate}"
|
|
||||||
ItemsSource="{x:Bind ViewModel.PivotFolders, Mode=OneWay}"
|
|
||||||
SelectedItem="{x:Bind ViewModel.SelectedFolderPivot, Mode=TwoWay}"
|
|
||||||
SelectionChanged="FolderPivotChanged"
|
|
||||||
SelectorPipeColor="{ThemeResource NavigationViewSelectionIndicatorForeground}" />
|
|
||||||
|
|
||||||
<!-- Filtering -->
|
|
||||||
<muxc:DropDownButton
|
|
||||||
Grid.Row="1"
|
|
||||||
Grid.Column="2"
|
|
||||||
Content="{x:Bind ViewModel.SelectedFilterOption.Title, Mode=OneWay}"
|
|
||||||
ToolTipService.ToolTip="Filter">
|
|
||||||
<muxc:DropDownButton.Flyout>
|
|
||||||
<menuflyouts:FilterMenuFlyout
|
|
||||||
x:Name="FilterMenuFlyout"
|
|
||||||
AreOpenCloseAnimationsEnabled="True"
|
|
||||||
FilterOptions="{x:Bind ViewModel.FilterOptions, Mode=OneTime}"
|
|
||||||
Placement="Bottom"
|
|
||||||
SelectedFilterChangedCommand="{x:Bind ViewModel.SelectedFilterChangedCommand}"
|
|
||||||
SelectedFilterOption="{x:Bind ViewModel.SelectedFilterOption, Mode=TwoWay}"
|
|
||||||
SelectedSortingOption="{x:Bind ViewModel.SelectedSortingOption, Mode=TwoWay}"
|
|
||||||
SelectedSortingOptionChangedCommand="{x:Bind ViewModel.SelectedSortingChangedCommand}"
|
|
||||||
SortingOptions="{x:Bind ViewModel.SortingOptions, Mode=OneTime}" />
|
|
||||||
</muxc:DropDownButton.Flyout>
|
|
||||||
</muxc:DropDownButton>
|
|
||||||
|
|
||||||
<muxc:InfoBar
|
|
||||||
Title="{x:Bind domain:Translator.InfoBarTitle_SynchronizationDisabledFolder}"
|
|
||||||
Grid.Row="0"
|
|
||||||
Grid.ColumnSpan="3"
|
|
||||||
IsClosable="True"
|
|
||||||
IsOpen="{x:Bind ViewModel.IsFolderSynchronizationEnabled, Converter={StaticResource ReverseBooleanConverter}, Mode=OneWay}"
|
|
||||||
Message="{x:Bind domain:Translator.InfoBarMessage_SynchronizationDisabledFolder}"
|
|
||||||
Severity="Informational">
|
|
||||||
<muxc:InfoBar.ActionButton>
|
|
||||||
<Button Command="{x:Bind ViewModel.EnableFolderSynchronizationCommand}" Content="Enable" />
|
|
||||||
</muxc:InfoBar.ActionButton>
|
|
||||||
</muxc:InfoBar>
|
|
||||||
</Grid>
|
|
||||||
</Grid>
|
|
||||||
|
|
||||||
<!-- No items createria -->
|
|
||||||
<StackPanel
|
|
||||||
x:Name="NoItemsPanel"
|
|
||||||
Grid.Row="2"
|
|
||||||
Grid.RowSpan="3"
|
|
||||||
VerticalAlignment="Center"
|
|
||||||
HorizontalAlignment="Stretch"
|
|
||||||
Spacing="10">
|
|
||||||
|
|
||||||
<Viewbox
|
|
||||||
Width="48"
|
|
||||||
Visibility="{x:Bind ViewModel.IsEmpty, Mode=OneWay}"
|
|
||||||
Opacity="0.4">
|
|
||||||
<Path Data="M252,960C227,960 203.083,954.917 180.25,944.75C157.417,934.583 137.417,920.917 120.25,903.75C103.083,886.583 89.4167,866.583 79.25,843.75C69.0833,820.917 64,797 64,772L64,252C64,227 69.0833,203.083 79.25,180.25C89.4167,157.417 103.083,137.417 120.25,120.25C137.417,103.083 157.417,89.4167 180.25,79.25C203.083,69.0834 227,64.0001 252,64L772,64C797,64.0001 820.917,69.0834 843.75,79.25C866.583,89.4167 886.583,103.083 903.75,120.25C920.917,137.417 934.583,157.417 944.75,180.25C954.917,203.083 960,227 960,252L960,772C960,797 954.917,820.917 944.75,843.75C934.583,866.583 920.917,886.583 903.75,903.75C886.583,920.917 866.583,934.583 843.75,944.75C820.917,954.917 797,960 772,960ZM770.5,896C787.167,896 803.083,892.583 818.25,885.75C833.417,878.917 846.75,869.75 858.25,858.25C869.75,846.75 878.917,833.417 885.75,818.25C892.583,803.083 896,787.167 896,770.5L896,253.5C896,236.833 892.583,220.917 885.75,205.75C878.917,190.583 869.75,177.25 858.25,165.75C846.75,154.25 833.417,145.083 818.25,138.25C803.083,131.417 787.167,128 770.5,128L253.5,128C236.833,128 220.917,131.417 205.75,138.25C190.583,145.083 177.25,154.25 165.75,165.75C154.25,177.25 145.083,190.583 138.25,205.75C131.417,220.917 128,236.833 128,253.5L128,770.5C128,787.167 131.417,803.083 138.25,818.25C145.083,833.417 154.25,846.75 165.75,858.25C177.25,869.75 190.583,878.917 205.75,885.75C220.917,892.583 236.833,896 253.5,896ZM559,604.5C541.667,616.833 523.417,625.833 504.25,631.5C485.083,637.167 465,640 444,640C418,640 393.583,634.833 370.75,624.5C347.917,614.167 328,600.167 311,582.5C294,564.833 280.583,544.417 270.75,521.25C260.917,498.083 256,473.667 256,448C256,421.333 261,396.333 271,373C281,349.667 294.667,329.333 312,312C329.333,294.667 349.667,281 373,271C396.333,261 421.333,256 448,256C473.667,256 498.083,260.917 521.25,270.75C544.417,280.583 564.833,294 582.5,311C600.167,328 614.167,347.917 624.5,370.75C634.833,393.583 640,418 640,444C640,465 637.167,485.083 631.5,504.25C625.833,523.417 616.833,541.667 604.5,559L758.5,713.5C764.833,719.833 768,727.333 768,736C768,744.667 764.833,752.167 758.5,758.5C752.167,764.833 744.667,768 736,768C727.333,768 719.833,764.833 713.5,758.5ZM576,448L576,445.5C576,428.167 572.5,411.917 565.5,396.75C558.5,381.583 549.167,368.333 537.5,357C525.833,345.667 512.25,336.667 496.75,330C481.25,323.333 465,320 448,320C430.333,320 413.75,323.417 398.25,330.25C382.75,337.083 369.25,346.25 357.75,357.75C346.25,369.25 337.083,382.833 330.25,398.5C323.417,414.167 320,430.667 320,448C320,465.667 323.417,482.25 330.25,497.75C337.083,513.25 346.25,526.75 357.75,538.25C369.25,549.75 382.75,558.917 398.25,565.75C413.75,572.583 430.333,576 448,576C465.333,576 481.833,572.583 497.5,565.75C513.167,558.917 526.75,549.75 538.25,538.25C549.75,526.75 558.917,513.25 565.75,497.75C572.583,482.25 576,465.667 576,448Z" Fill="{ThemeResource InformationBrush}" />
|
|
||||||
</Viewbox>
|
|
||||||
|
|
||||||
<TextBlock
|
|
||||||
HorizontalAlignment="Center"
|
|
||||||
Opacity="0.4"
|
|
||||||
FontSize="20"
|
|
||||||
FontWeight="ExtraLight"
|
|
||||||
Foreground="{ThemeResource InformationBrush}"
|
|
||||||
Text="{x:Bind domain:Translator.NoMessageCrieteria}"
|
|
||||||
Visibility="{x:Bind ViewModel.IsCriteriaFailed, Mode=OneWay}" />
|
|
||||||
|
|
||||||
<TextBlock
|
|
||||||
HorizontalAlignment="Center"
|
|
||||||
Opacity="0.4"
|
|
||||||
FontSize="20"
|
|
||||||
FontWeight="ExtraLight"
|
|
||||||
Foreground="{ThemeResource InformationBrush}"
|
|
||||||
Text="{x:Bind domain:Translator.NoMessageEmptyFolder}"
|
|
||||||
Visibility="{x:Bind ViewModel.IsFolderEmpty, Mode=OneWay}" />
|
|
||||||
|
|
||||||
<muxc:ProgressRing
|
|
||||||
Grid.Row="2"
|
Grid.Row="2"
|
||||||
x:Name="LoadingProgressIndicator"
|
Grid.RowSpan="3"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
x:Load="{x:Bind ViewModel.IsProgressRing, Mode=OneWay}"
|
Spacing="10">
|
||||||
Canvas.ZIndex="999" />
|
|
||||||
</StackPanel>
|
|
||||||
|
|
||||||
<!-- Mail Items -->
|
<Viewbox
|
||||||
<muxc:RefreshContainer
|
Width="48"
|
||||||
Grid.Row="2"
|
Opacity="0.4"
|
||||||
RefreshRequested="PullToRefreshRequested"
|
Visibility="{x:Bind ViewModel.IsEmpty, Mode=OneWay}">
|
||||||
Visibility="{x:Bind ViewModel.IsEmpty, Converter={StaticResource ReverseBooleanToVisibilityConverter}, Mode=OneWay}">
|
<Path Data="M252,960C227,960 203.083,954.917 180.25,944.75C157.417,934.583 137.417,920.917 120.25,903.75C103.083,886.583 89.4167,866.583 79.25,843.75C69.0833,820.917 64,797 64,772L64,252C64,227 69.0833,203.083 79.25,180.25C89.4167,157.417 103.083,137.417 120.25,120.25C137.417,103.083 157.417,89.4167 180.25,79.25C203.083,69.0834 227,64.0001 252,64L772,64C797,64.0001 820.917,69.0834 843.75,79.25C866.583,89.4167 886.583,103.083 903.75,120.25C920.917,137.417 934.583,157.417 944.75,180.25C954.917,203.083 960,227 960,252L960,772C960,797 954.917,820.917 944.75,843.75C934.583,866.583 920.917,886.583 903.75,903.75C886.583,920.917 866.583,934.583 843.75,944.75C820.917,954.917 797,960 772,960ZM770.5,896C787.167,896 803.083,892.583 818.25,885.75C833.417,878.917 846.75,869.75 858.25,858.25C869.75,846.75 878.917,833.417 885.75,818.25C892.583,803.083 896,787.167 896,770.5L896,253.5C896,236.833 892.583,220.917 885.75,205.75C878.917,190.583 869.75,177.25 858.25,165.75C846.75,154.25 833.417,145.083 818.25,138.25C803.083,131.417 787.167,128 770.5,128L253.5,128C236.833,128 220.917,131.417 205.75,138.25C190.583,145.083 177.25,154.25 165.75,165.75C154.25,177.25 145.083,190.583 138.25,205.75C131.417,220.917 128,236.833 128,253.5L128,770.5C128,787.167 131.417,803.083 138.25,818.25C145.083,833.417 154.25,846.75 165.75,858.25C177.25,869.75 190.583,878.917 205.75,885.75C220.917,892.583 236.833,896 253.5,896ZM559,604.5C541.667,616.833 523.417,625.833 504.25,631.5C485.083,637.167 465,640 444,640C418,640 393.583,634.833 370.75,624.5C347.917,614.167 328,600.167 311,582.5C294,564.833 280.583,544.417 270.75,521.25C260.917,498.083 256,473.667 256,448C256,421.333 261,396.333 271,373C281,349.667 294.667,329.333 312,312C329.333,294.667 349.667,281 373,271C396.333,261 421.333,256 448,256C473.667,256 498.083,260.917 521.25,270.75C544.417,280.583 564.833,294 582.5,311C600.167,328 614.167,347.917 624.5,370.75C634.833,393.583 640,418 640,444C640,465 637.167,485.083 631.5,504.25C625.833,523.417 616.833,541.667 604.5,559L758.5,713.5C764.833,719.833 768,727.333 768,736C768,744.667 764.833,752.167 758.5,758.5C752.167,764.833 744.667,768 736,768C727.333,768 719.833,764.833 713.5,758.5ZM576,448L576,445.5C576,428.167 572.5,411.917 565.5,396.75C558.5,381.583 549.167,368.333 537.5,357C525.833,345.667 512.25,336.667 496.75,330C481.25,323.333 465,320 448,320C430.333,320 413.75,323.417 398.25,330.25C382.75,337.083 369.25,346.25 357.75,357.75C346.25,369.25 337.083,382.833 330.25,398.5C323.417,414.167 320,430.667 320,448C320,465.667 323.417,482.25 330.25,497.75C337.083,513.25 346.25,526.75 357.75,538.25C369.25,549.75 382.75,558.917 398.25,565.75C413.75,572.583 430.333,576 448,576C465.333,576 481.833,572.583 497.5,565.75C513.167,558.917 526.75,549.75 538.25,538.25C549.75,526.75 558.917,513.25 565.75,497.75C572.583,482.25 576,465.667 576,448Z" Fill="{ThemeResource InformationBrush}" />
|
||||||
<SemanticZoom x:Name="SemanticZoomContainer" CanChangeViews="{x:Bind ViewModel.PreferencesService.IsSemanticZoomEnabled, Mode=OneWay}">
|
</Viewbox>
|
||||||
<SemanticZoom.ZoomedInView>
|
|
||||||
<listview:WinoListView
|
<TextBlock
|
||||||
x:Name="MailListView"
|
HorizontalAlignment="Center"
|
||||||
HorizontalContentAlignment="Stretch"
|
FontSize="20"
|
||||||
ui:ListViewExtensions.ItemContainerStretchDirection="Horizontal"
|
FontWeight="ExtraLight"
|
||||||
LoadMoreCommand="{x:Bind ViewModel.LoadMoreItemsCommand}"
|
Foreground="{ThemeResource InformationBrush}"
|
||||||
ItemContainerStyleSelector="{StaticResource WinoContainerSelector}"
|
Opacity="0.4"
|
||||||
ItemTemplateSelector="{StaticResource MailItemDisplaySelector}"
|
Text="{x:Bind domain:Translator.NoMessageCrieteria}"
|
||||||
ItemsSource="{x:Bind MailCollectionViewSource.View, Mode=OneWay}"
|
Visibility="{x:Bind ViewModel.IsCriteriaFailed, Mode=OneWay}" />
|
||||||
ItemDeletedCommand="{x:Bind ViewModel.MailOperationCommand}"
|
|
||||||
ProcessKeyboardAccelerators="ProcessMailItemKeyboardAccelerator"
|
<TextBlock
|
||||||
ScrollViewer.VerticalScrollBarVisibility="Auto">
|
HorizontalAlignment="Center"
|
||||||
<ListView.ItemContainerTransitions>
|
FontSize="20"
|
||||||
<TransitionCollection>
|
FontWeight="ExtraLight"
|
||||||
<AddDeleteThemeTransition />
|
Foreground="{ThemeResource InformationBrush}"
|
||||||
</TransitionCollection>
|
Opacity="0.4"
|
||||||
</ListView.ItemContainerTransitions>
|
Text="{x:Bind domain:Translator.NoMessageEmptyFolder}"
|
||||||
<ListView.ItemsPanel>
|
Visibility="{x:Bind ViewModel.IsFolderEmpty, Mode=OneWay}" />
|
||||||
<ItemsPanelTemplate>
|
|
||||||
<ItemsStackPanel AreStickyGroupHeadersEnabled="True" />
|
<muxc:ProgressRing
|
||||||
</ItemsPanelTemplate>
|
x:Name="LoadingProgressIndicator"
|
||||||
</ListView.ItemsPanel>
|
Grid.Row="2"
|
||||||
<ListView.Resources>
|
HorizontalAlignment="Center"
|
||||||
<ResourceDictionary>
|
VerticalAlignment="Center"
|
||||||
<Style BasedOn="{StaticResource MailListHeaderStyle}" TargetType="ListViewHeaderItem" />
|
x:Load="{x:Bind ViewModel.IsProgressRing, Mode=OneWay}"
|
||||||
</ResourceDictionary>
|
Canvas.ZIndex="999" />
|
||||||
</ListView.Resources>
|
</StackPanel>
|
||||||
<ListView.GroupStyle>
|
|
||||||
<GroupStyle HeaderTemplate="{StaticResource MailGroupHeaderDefaultTemplate}" HidesIfEmpty="True" />
|
<!-- Mail Items -->
|
||||||
</ListView.GroupStyle>
|
<muxc:RefreshContainer
|
||||||
</listview:WinoListView>
|
Grid.Row="2"
|
||||||
</SemanticZoom.ZoomedInView>
|
RefreshRequested="PullToRefreshRequested"
|
||||||
<SemanticZoom.ZoomedOutView>
|
Visibility="{x:Bind ViewModel.IsEmpty, Converter={StaticResource ReverseBooleanToVisibilityConverter}, Mode=OneWay}">
|
||||||
<ListView
|
<SemanticZoom x:Name="SemanticZoomContainer" CanChangeViews="{x:Bind ViewModel.PreferencesService.IsSemanticZoomEnabled, Mode=OneWay}">
|
||||||
x:Name="ZoomOutList"
|
<SemanticZoom.ZoomedInView>
|
||||||
x:Load="{x:Bind helpers:XamlHelpers.ReverseBoolConverter(SemanticZoomContainer.IsZoomedInViewActive), Mode=OneWay}"
|
<listview:WinoListView
|
||||||
ItemsSource="{x:Bind MailCollectionViewSource.View.CollectionGroups}">
|
x:Name="MailListView"
|
||||||
<ListView.Resources>
|
HorizontalContentAlignment="Stretch"
|
||||||
<Style TargetType="ListViewItem">
|
ui:ListViewExtensions.ItemContainerStretchDirection="Horizontal"
|
||||||
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
ItemContainerStyleSelector="{StaticResource WinoContainerSelector}"
|
||||||
<Setter Property="VerticalContentAlignment" Value="Stretch" />
|
ItemDeletedCommand="{x:Bind ViewModel.MailOperationCommand}"
|
||||||
<Setter Property="Margin" Value="0,12" />
|
ItemTemplateSelector="{StaticResource MailItemDisplaySelector}"
|
||||||
<Setter Property="Padding" Value="0" />
|
ItemsSource="{x:Bind MailCollectionViewSource.View, Mode=OneWay}"
|
||||||
</Style>
|
LoadMoreCommand="{x:Bind ViewModel.LoadMoreItemsCommand}"
|
||||||
</ListView.Resources>
|
ProcessKeyboardAccelerators="ProcessMailItemKeyboardAccelerator"
|
||||||
<ListView.ItemTemplate>
|
ScrollViewer.VerticalScrollBarVisibility="Auto">
|
||||||
<DataTemplate x:DataType="ICollectionViewGroup">
|
<ListView.ItemContainerTransitions>
|
||||||
<Grid
|
<TransitionCollection>
|
||||||
Margin="4,0"
|
<AddDeleteThemeTransition />
|
||||||
Background="{ThemeResource MailListHeaderBackgroundColor}"
|
</TransitionCollection>
|
||||||
CornerRadius="4">
|
</ListView.ItemContainerTransitions>
|
||||||
<TextBlock
|
<ListView.ItemsPanel>
|
||||||
Margin="12,0"
|
<ItemsPanelTemplate>
|
||||||
HorizontalAlignment="Center"
|
<ItemsStackPanel AreStickyGroupHeadersEnabled="True" />
|
||||||
VerticalAlignment="Center"
|
</ItemsPanelTemplate>
|
||||||
FontWeight="SemiBold"
|
</ListView.ItemsPanel>
|
||||||
Text="{x:Bind helpers:XamlHelpers.GetMailGroupDateString(Group)}" />
|
<ListView.Resources>
|
||||||
</Grid>
|
<ResourceDictionary>
|
||||||
</DataTemplate>
|
<Style BasedOn="{StaticResource MailListHeaderStyle}" TargetType="ListViewHeaderItem" />
|
||||||
</ListView.ItemTemplate>
|
</ResourceDictionary>
|
||||||
</ListView>
|
</ListView.Resources>
|
||||||
</SemanticZoom.ZoomedOutView>
|
<ListView.GroupStyle>
|
||||||
</SemanticZoom>
|
<GroupStyle HeaderTemplate="{StaticResource MailGroupHeaderDefaultTemplate}" HidesIfEmpty="True" />
|
||||||
</muxc:RefreshContainer>
|
</ListView.GroupStyle>
|
||||||
|
</listview:WinoListView>
|
||||||
|
</SemanticZoom.ZoomedInView>
|
||||||
|
<SemanticZoom.ZoomedOutView>
|
||||||
|
<ListView
|
||||||
|
x:Name="ZoomOutList"
|
||||||
|
x:Load="{x:Bind helpers:XamlHelpers.ReverseBoolConverter(SemanticZoomContainer.IsZoomedInViewActive), Mode=OneWay}"
|
||||||
|
ItemsSource="{x:Bind MailCollectionViewSource.View.CollectionGroups}">
|
||||||
|
<ListView.Resources>
|
||||||
|
<Style TargetType="ListViewItem">
|
||||||
|
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
||||||
|
<Setter Property="VerticalContentAlignment" Value="Stretch" />
|
||||||
|
<Setter Property="Margin" Value="0,12" />
|
||||||
|
<Setter Property="Padding" Value="0" />
|
||||||
|
</Style>
|
||||||
|
</ListView.Resources>
|
||||||
|
<ListView.ItemTemplate>
|
||||||
|
<DataTemplate x:DataType="ICollectionViewGroup">
|
||||||
|
<Grid
|
||||||
|
Margin="4,0"
|
||||||
|
Background="{ThemeResource MailListHeaderBackgroundColor}"
|
||||||
|
CornerRadius="4">
|
||||||
|
<TextBlock
|
||||||
|
Margin="12,0"
|
||||||
|
HorizontalAlignment="Center"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
FontWeight="SemiBold"
|
||||||
|
Text="{x:Bind helpers:XamlHelpers.GetMailGroupDateString(Group)}" />
|
||||||
|
</Grid>
|
||||||
|
</DataTemplate>
|
||||||
|
</ListView.ItemTemplate>
|
||||||
|
</ListView>
|
||||||
|
</SemanticZoom.ZoomedOutView>
|
||||||
|
</SemanticZoom>
|
||||||
|
</muxc:RefreshContainer>
|
||||||
|
|
||||||
|
|
||||||
<!-- Update Info Bar -->
|
<!-- Update Info Bar -->
|
||||||
<controls:WinoInfoBar
|
<controls:WinoInfoBar
|
||||||
Title="{x:Bind ViewModel.BarTitle, Mode=OneWay}"
|
Title="{x:Bind ViewModel.BarTitle, Mode=OneWay}"
|
||||||
Grid.Row="2"
|
Grid.Row="2"
|
||||||
Margin="6,0,6,6"
|
Margin="6,0,6,6"
|
||||||
VerticalAlignment="Bottom"
|
VerticalAlignment="Bottom"
|
||||||
AnimationType="SlideFromBottomToTop"
|
AnimationType="SlideFromBottomToTop"
|
||||||
DismissInterval="2"
|
DismissInterval="2"
|
||||||
IsClosable="False"
|
IsClosable="False"
|
||||||
IsOpen="{x:Bind ViewModel.IsBarOpen, Mode=TwoWay}"
|
IsOpen="{x:Bind ViewModel.IsBarOpen, Mode=TwoWay}"
|
||||||
Message="{x:Bind ViewModel.BarMessage, Mode=OneWay}"
|
Message="{x:Bind ViewModel.BarMessage, Mode=OneWay}"
|
||||||
Severity="{x:Bind helpers:XamlHelpers.InfoBarSeverityConverter(ViewModel.BarSeverity), Mode=OneWay}" />
|
Severity="{x:Bind helpers:XamlHelpers.InfoBarSeverityConverter(ViewModel.BarSeverity), Mode=OneWay}" />
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
|
</Border>
|
||||||
|
|
||||||
<!-- Mail Rendering Frame -->
|
<!-- Mail Rendering Frame -->
|
||||||
<Frame
|
<Frame
|
||||||
@@ -861,4 +862,3 @@
|
|||||||
</VisualStateManager.VisualStateGroups>
|
</VisualStateManager.VisualStateGroups>
|
||||||
</Grid>
|
</Grid>
|
||||||
</abstract:MailListPageAbstract>
|
</abstract:MailListPageAbstract>
|
||||||
|
|
||||||
|
|||||||
@@ -153,18 +153,24 @@ namespace Wino.Views
|
|||||||
|
|
||||||
private void UpdateAdaptiveness()
|
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);
|
RenderingFrame.Visibility = StatePersistanceService.IsReadingMail ? Visibility.Visible : (StatePersistanceService.IsReaderNarrowed ? Visibility.Collapsed : Visibility.Visible);
|
||||||
|
|
||||||
if (RenderingFrame.Visibility == Visibility.Collapsed)
|
if (RenderingFrame.Visibility == Visibility.Collapsed)
|
||||||
{
|
{
|
||||||
Grid.SetColumn(ReaderGrid, 0);
|
Grid.SetColumn(ReaderGrid, 0);
|
||||||
Grid.SetColumnSpan(ReaderGrid, 2);
|
Grid.SetColumnSpan(ReaderGrid, 2);
|
||||||
|
Grid.SetColumn(ReaderGridContainer, 0);
|
||||||
|
Grid.SetColumnSpan(ReaderGridContainer, 2);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Grid.SetColumn(ReaderGrid, 0);
|
Grid.SetColumn(ReaderGrid, 0);
|
||||||
Grid.SetColumnSpan(ReaderGrid, 1);
|
Grid.SetColumnSpan(ReaderGrid, 1);
|
||||||
|
Grid.SetColumn(ReaderGridContainer, 0);
|
||||||
|
Grid.SetColumnSpan(ReaderGridContainer, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ReaderGrid.Visibility == Visibility.Collapsed)
|
if (ReaderGrid.Visibility == Visibility.Collapsed)
|
||||||
@@ -536,7 +542,7 @@ namespace Wino.Views
|
|||||||
|
|
||||||
private async void SearchBar_TextChanged(AutoSuggestBox sender, AutoSuggestBoxTextChangedEventArgs args)
|
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();
|
await ViewModel.PerformSearchAsync();
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -4,44 +4,51 @@
|
|||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:abstract="using:Wino.Views.Abstract"
|
xmlns:abstract="using:Wino.Views.Abstract"
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
||||||
xmlns:winuiControls="using:Microsoft.UI.Xaml.Controls"
|
|
||||||
xmlns:helpers="using:Wino.Helpers"
|
xmlns:helpers="using:Wino.Helpers"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:viewModelData="using:Wino.Mail.ViewModels.Data"
|
xmlns:viewModelData="using:Wino.Mail.ViewModels.Data"
|
||||||
|
xmlns:winuiControls="using:Microsoft.UI.Xaml.Controls"
|
||||||
Style="{StaticResource PageStyle}"
|
Style="{StaticResource PageStyle}"
|
||||||
mc:Ignorable="d">
|
mc:Ignorable="d">
|
||||||
|
|
||||||
<Grid
|
<Border
|
||||||
MaxWidth="900"
|
Margin="0,0,7,7"
|
||||||
Padding="20"
|
Background="{ThemeResource WinoContentZoneBackgroud}"
|
||||||
HorizontalAlignment="Stretch"
|
BorderBrush="{StaticResource CardStrokeColorDefaultBrush}"
|
||||||
RowSpacing="20">
|
BorderThickness="1"
|
||||||
<Grid.RowDefinitions>
|
CornerRadius="7">
|
||||||
<RowDefinition Height="Auto" />
|
<Grid
|
||||||
<RowDefinition Height="*" />
|
MaxWidth="900"
|
||||||
</Grid.RowDefinitions>
|
Padding="20"
|
||||||
|
HorizontalAlignment="Stretch"
|
||||||
|
RowSpacing="20">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto" />
|
||||||
|
<RowDefinition Height="*" />
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<winuiControls:BreadcrumbBar
|
<winuiControls:BreadcrumbBar
|
||||||
x:Name="Breadcrumb"
|
x:Name="Breadcrumb"
|
||||||
ItemsSource="{x:Bind PageHistory, Mode=OneWay}"
|
ItemClicked="BreadItemClicked"
|
||||||
ItemClicked="BreadItemClicked">
|
ItemsSource="{x:Bind PageHistory, Mode=OneWay}">
|
||||||
<winuiControls:BreadcrumbBar.ItemTemplate>
|
<winuiControls:BreadcrumbBar.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<winuiControls:BreadcrumbBarItem Margin="0,0,8,0">
|
<winuiControls:BreadcrumbBarItem Margin="0,0,8,0">
|
||||||
<winuiControls:BreadcrumbBarItem.ContentTemplate>
|
<winuiControls:BreadcrumbBarItem.ContentTemplate>
|
||||||
<DataTemplate x:DataType="viewModelData:BreadcrumbNavigationItemViewModel">
|
<DataTemplate x:DataType="viewModelData:BreadcrumbNavigationItemViewModel">
|
||||||
<TextBlock
|
<TextBlock
|
||||||
Margin="0,0,8,10"
|
Margin="0,0,8,10"
|
||||||
Text="{Binding Title, Mode=OneWay}"
|
FontWeight="{x:Bind helpers:XamlHelpers.GetFontWeightBySyncState(IsActive), Mode=OneWay}"
|
||||||
FontWeight="{x:Bind helpers:XamlHelpers.GetFontWeightBySyncState(IsActive), Mode=OneWay}"
|
Style="{StaticResource TitleTextBlockStyle}"
|
||||||
Style="{StaticResource TitleTextBlockStyle}" />
|
Text="{Binding Title, Mode=OneWay}" />
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</winuiControls:BreadcrumbBarItem.ContentTemplate>
|
</winuiControls:BreadcrumbBarItem.ContentTemplate>
|
||||||
</winuiControls:BreadcrumbBarItem>
|
</winuiControls:BreadcrumbBarItem>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</winuiControls:BreadcrumbBar.ItemTemplate>
|
</winuiControls:BreadcrumbBar.ItemTemplate>
|
||||||
</winuiControls:BreadcrumbBar>
|
</winuiControls:BreadcrumbBar>
|
||||||
|
|
||||||
<Frame x:Name="AccountPagesFrame" Grid.Row="1" />
|
<Frame x:Name="AccountPagesFrame" Grid.Row="1" />
|
||||||
</Grid>
|
</Grid>
|
||||||
|
</Border>
|
||||||
</abstract:NewAccountManagementPageAbstract>
|
</abstract:NewAccountManagementPageAbstract>
|
||||||
|
|||||||
@@ -4,44 +4,51 @@
|
|||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:abstract="using:Wino.Views.Abstract"
|
xmlns:abstract="using:Wino.Views.Abstract"
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
||||||
xmlns:winuiControls="using:Microsoft.UI.Xaml.Controls"
|
|
||||||
xmlns:helpers="using:Wino.Helpers"
|
xmlns:helpers="using:Wino.Helpers"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:viewModelData="using:Wino.Mail.ViewModels.Data"
|
xmlns:viewModelData="using:Wino.Mail.ViewModels.Data"
|
||||||
|
xmlns:winuiControls="using:Microsoft.UI.Xaml.Controls"
|
||||||
Style="{StaticResource PageStyle}"
|
Style="{StaticResource PageStyle}"
|
||||||
mc:Ignorable="d">
|
mc:Ignorable="d">
|
||||||
|
|
||||||
<Grid
|
<Border
|
||||||
MaxWidth="900"
|
Margin="0,0,7,7"
|
||||||
Padding="20"
|
Background="{ThemeResource WinoContentZoneBackgroud}"
|
||||||
HorizontalAlignment="Stretch"
|
BorderBrush="{StaticResource CardStrokeColorDefaultBrush}"
|
||||||
RowSpacing="20">
|
BorderThickness="1"
|
||||||
<Grid.RowDefinitions>
|
CornerRadius="7">
|
||||||
<RowDefinition Height="Auto" />
|
<Grid
|
||||||
<RowDefinition Height="*" />
|
MaxWidth="900"
|
||||||
</Grid.RowDefinitions>
|
Padding="20"
|
||||||
|
HorizontalAlignment="Stretch"
|
||||||
|
RowSpacing="20">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto" />
|
||||||
|
<RowDefinition Height="*" />
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<winuiControls:BreadcrumbBar
|
<winuiControls:BreadcrumbBar
|
||||||
x:Name="Breadcrumb"
|
x:Name="Breadcrumb"
|
||||||
ItemsSource="{x:Bind PageHistory, Mode=OneWay}"
|
ItemClicked="BreadItemClicked"
|
||||||
ItemClicked="BreadItemClicked">
|
ItemsSource="{x:Bind PageHistory, Mode=OneWay}">
|
||||||
<winuiControls:BreadcrumbBar.ItemTemplate>
|
<winuiControls:BreadcrumbBar.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<winuiControls:BreadcrumbBarItem Margin="0,0,8,0">
|
<winuiControls:BreadcrumbBarItem Margin="0,0,8,0">
|
||||||
<winuiControls:BreadcrumbBarItem.ContentTemplate>
|
<winuiControls:BreadcrumbBarItem.ContentTemplate>
|
||||||
<DataTemplate x:DataType="viewModelData:BreadcrumbNavigationItemViewModel">
|
<DataTemplate x:DataType="viewModelData:BreadcrumbNavigationItemViewModel">
|
||||||
<TextBlock
|
<TextBlock
|
||||||
Margin="0,0,8,10"
|
Margin="0,0,8,10"
|
||||||
Text="{Binding Title}"
|
FontWeight="{x:Bind helpers:XamlHelpers.GetFontWeightBySyncState(IsActive), Mode=OneWay}"
|
||||||
FontWeight="{x:Bind helpers:XamlHelpers.GetFontWeightBySyncState(IsActive), Mode=OneWay}"
|
Style="{StaticResource TitleTextBlockStyle}"
|
||||||
Style="{StaticResource TitleTextBlockStyle}" />
|
Text="{Binding Title}" />
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</winuiControls:BreadcrumbBarItem.ContentTemplate>
|
</winuiControls:BreadcrumbBarItem.ContentTemplate>
|
||||||
</winuiControls:BreadcrumbBarItem>
|
</winuiControls:BreadcrumbBarItem>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</winuiControls:BreadcrumbBar.ItemTemplate>
|
</winuiControls:BreadcrumbBar.ItemTemplate>
|
||||||
</winuiControls:BreadcrumbBar>
|
</winuiControls:BreadcrumbBar>
|
||||||
|
|
||||||
<Frame x:Name="SettingsFrame" Grid.Row="1" />
|
<Frame x:Name="SettingsFrame" Grid.Row="1" />
|
||||||
</Grid>
|
</Grid>
|
||||||
|
</Border>
|
||||||
</abstract:SettingsPageAbstract>
|
</abstract:SettingsPageAbstract>
|
||||||
|
|||||||
@@ -1,28 +1,35 @@
|
|||||||
<abstract:WelcomePageAbstract
|
<abstract:WelcomePageAbstract
|
||||||
xmlns:abstract="using:Wino.Views.Abstract"
|
|
||||||
x:Class="Wino.Views.WelcomePage"
|
x:Class="Wino.Views.WelcomePage"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:local="using:Wino.Views"
|
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:Microsoft.Toolkit.Uwp.UI.Controls"
|
xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:local="using:Wino.Views"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
mc:Ignorable="d">
|
mc:Ignorable="d">
|
||||||
|
|
||||||
<Grid Padding="24">
|
<Border
|
||||||
<ScrollViewer>
|
Margin="0,0,7,7"
|
||||||
<controls:MarkdownTextBlock
|
Background="{ThemeResource WinoContentZoneBackgroud}"
|
||||||
x:Name="MarkdownControl"
|
BorderBrush="{StaticResource CardStrokeColorDefaultBrush}"
|
||||||
LinkClicked="HyperlinkClicked"
|
BorderThickness="1"
|
||||||
Background="Transparent"
|
CornerRadius="7">
|
||||||
ImageStretch="UniformToFill"
|
<Grid Padding="24">
|
||||||
Text="{x:Bind ViewModel.CurrentVersionNotes, Mode=OneWay}"
|
<ScrollViewer>
|
||||||
ListBulletSpacing="10"
|
<controls:MarkdownTextBlock
|
||||||
Header1FontSize="30"
|
x:Name="MarkdownControl"
|
||||||
CharacterSpacing="12"
|
Background="Transparent"
|
||||||
FontSize="16"
|
CharacterSpacing="12"
|
||||||
Header2FontSize="22" />
|
FontSize="16"
|
||||||
</ScrollViewer>
|
Header1FontSize="30"
|
||||||
</Grid>
|
Header2FontSize="22"
|
||||||
|
ImageStretch="UniformToFill"
|
||||||
|
LinkClicked="HyperlinkClicked"
|
||||||
|
ListBulletSpacing="10"
|
||||||
|
Text="{x:Bind ViewModel.CurrentVersionNotes, Mode=OneWay}" />
|
||||||
|
</ScrollViewer>
|
||||||
|
</Grid>
|
||||||
|
</Border>
|
||||||
|
|
||||||
</abstract:WelcomePageAbstract>
|
</abstract:WelcomePageAbstract>
|
||||||
|
|||||||
Reference in New Issue
Block a user