* Separation of messages. Introducing Wino.Messages library. * Wino.Server and Wino.Packaging projects. Enabling full trust for UWP and app service connection manager basics. * Remove debug code. * Enable generating assembly info to deal with unsupported os platform warnings. * Fix server-client connection. * UIMessage communication. Single instancing for server and re-connection mechanism on suspension. * Removed IWinoSynchronizerFactory from UWP project. * Removal of background task service from core. * Delegating changes to UI and triggering new background synchronization. * Fix build error. * Moved core lib messages to Messaging project. * Better client-server communication. Handling of requests in the server. New synchronizer factory in the server. * WAM broker and MSAL token caching for OutlookAuthenticator. Handling account creation for Outlook. * WinoServerResponse basics. * Delegating protocol activation for Gmail authenticator. * Adding margin to searchbox to match action bar width. * Move libraries into lib folder. * Storing base64 encoded mime on draft creation instead of MimeMessage object. Fixes serialization/deserialization issue with S.T.Json * Scrollbar adjustments * WınoExpander for thread expander layout ıssue. * Handling synchronizer state changes. * Double init on background activation. * FIxing packaging issues and new Wino Mail launcher protocol for activation from full thrust process. * Remove debug deserialization. * Remove debug code. * Making sure the server connection is established when the app is launched. * Thrust -> Trust string replacement... * Rename package to Wino Mail * Enable translated values in the server. * Fixed an issue where toast activation can't find the clicked mail after the folder is initialized. * Revert debug code. * Change server background sync to every 3 minute and Inbox only synchronization. * Revert google auth changes. * App preferences page. * Changing tray icon visibility on preference change. * Start the server with invisible tray icon if set to invisible. * Reconnect button on the title bar. * Handling of toast actions. * Enable x86 build for server during packaging. * Get rid of old background tasks and v180 migration. * Terminate client when Exit clicked in server. * Introducing SynchronizationSource to prevent notifying UI after server tick synchronization. * Remove confirmAppClose restricted capability and unused debug code in manifest. * Closing the reconnect info popup when reconnect is clicked. * Custom RetryHandler for OutlookSynchronizer and separating client/server logs. * Running server on Windows startup. * Fix startup exe. * Fix for expander list view item paddings. * Force full sync on app launch instead of Inbox. * Fix draft creation. * Fix an issue with custom folder sync logic. * Reporting back account sync progress from server. * Fix sending drafts and missing notifications for imap. * Changing imap folder sync requirements. * Retain file count is set to 3. * Disabled swipe gestures temporarily due to native crash with SwipeControl * Save all attachments implementation. * Localization for save all attachments button. * Fix logging dates for logs. * Fixing ARM64 build. * Add ARM64 build config to packaging project. * Comment out OutOfProcPDB for ARM64. * Hnadling GONE response for Outlook folder synchronization.
224 lines
13 KiB
XML
224 lines
13 KiB
XML
<Application x:Class="Wino.App"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:controls="using:Wino.Controls"
|
|
xmlns:selectors="using:Wino.Selectors"
|
|
xmlns:wino="using:Wino">
|
|
|
|
<Application.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
|
|
<ResourceDictionary Source="/Styles/Converters.xaml" />
|
|
<ResourceDictionary Source="/Styles/FontIcons.xaml" />
|
|
<ResourceDictionary Source="/Styles/Colors.xaml" />
|
|
<ResourceDictionary Source="/Styles/ContentPresenters.xaml" />
|
|
<ResourceDictionary Source="/Styles/ImagePreviewControl.xaml" />
|
|
<ResourceDictionary Source="/Styles/CommandBarItems.xaml" />
|
|
<ResourceDictionary Source="/Styles/ItemContainerStyles.xaml" />
|
|
<ResourceDictionary Source="/Styles/WinoInfoBar.xaml" />
|
|
|
|
<ResourceDictionary>
|
|
|
|
<x:Double x:Key="AppBarButtonContentHeight">19</x:Double>
|
|
<x:Double x:Key="NavigationViewItemOnLeftIconBoxHeight">19</x:Double>
|
|
<Thickness x:Key="ImapSetupDialogSubPagePadding">24,24,24,24</Thickness>
|
|
|
|
<Style x:Key="PageStyle" TargetType="Page">
|
|
<Setter Property="Margin" Value="-1,0,0,0" />
|
|
<Setter Property="Padding" Value="12" />
|
|
<Setter Property="Background" Value="{ThemeResource AppBarBackgroundColor}" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate>
|
|
<Grid Padding="12">
|
|
<ContentPresenter />
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!-- Border style for each page's root border for separation of zones. -->
|
|
<Style TargetType="Border" x:Key="PageRootBorderStyle">
|
|
<Setter Property="Margin" Value="7,0,7,7" />
|
|
<Setter Property="Background" Value="{ThemeResource WinoContentZoneBackgroud}" />
|
|
<Setter Property="BorderBrush" Value="{StaticResource CardStrokeColorDefaultBrush}" />
|
|
<Setter Property="CornerRadius" Value="7" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
</Style>
|
|
|
|
<!-- Default StackPanel animation. -->
|
|
<Style TargetType="StackPanel">
|
|
<Setter Property="ChildrenTransitions">
|
|
<Setter.Value>
|
|
<TransitionCollection>
|
|
<EntranceThemeTransition IsStaggeringEnabled="True" />
|
|
</TransitionCollection>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!-- Default Style for ContentDialog -->
|
|
<Style x:Key="WinoDialogStyle"
|
|
BasedOn="{StaticResource DefaultContentDialogStyle}"
|
|
TargetType="ContentDialog" />
|
|
|
|
<!-- Settings Menu Item Template -->
|
|
<Style TargetType="controls:SettingsMenuItemControl">
|
|
<Setter Property="HorizontalAlignment" Value="Stretch" />
|
|
<Setter Property="VerticalAlignment" Value="Stretch" />
|
|
<Setter Property="Padding" Value="0" />
|
|
<Setter Property="IsClickable" Value="True" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="controls:SettingsMenuItemControl">
|
|
<Grid>
|
|
<Button Padding="0"
|
|
HorizontalAlignment="Stretch"
|
|
HorizontalContentAlignment="Stretch"
|
|
Command="{TemplateBinding Command}"
|
|
CommandParameter="{TemplateBinding CommandParameter}"
|
|
IsEnabled="{TemplateBinding IsEnabled}"
|
|
IsHitTestVisible="{TemplateBinding IsClickable}">
|
|
<Grid Height="70"
|
|
Padding="0,6,12,6"
|
|
CornerRadius="4">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="50" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<ContentControl HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Content="{TemplateBinding Icon}" />
|
|
|
|
<Grid Grid.Column="1"
|
|
Margin="4,0"
|
|
VerticalAlignment="Center"
|
|
RowSpacing="3">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock VerticalAlignment="Center"
|
|
FontWeight="SemiBold"
|
|
Style="{StaticResource BodyTextBlockStyle}"
|
|
Text="{TemplateBinding Title}" />
|
|
<TextBlock Grid.Row="1"
|
|
VerticalAlignment="Center"
|
|
Style="{StaticResource CaptionTextBlockStyle}"
|
|
Text="{TemplateBinding Description}" />
|
|
</Grid>
|
|
|
|
<Viewbox Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
Width="16"
|
|
Height="16"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
Visibility="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=IsNavigateIconVisible}">
|
|
<PathIcon Data="F1 M 5.029297 19.091797 L 14.111328 10 L 5.029297 0.908203 L 5.908203 0.029297 L 15.888672 10 L 5.908203 19.970703 Z " />
|
|
</Viewbox>
|
|
</Grid>
|
|
</Button>
|
|
|
|
<ContentControl Grid.RowSpan="2"
|
|
Margin="0,0,16,0"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
Content="{TemplateBinding SideContent}"
|
|
IsHitTestVisible="True"
|
|
Visibility="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=IsNavigateIconVisible, Converter={StaticResource ReverseBooleanToVisibilityConverter}}" />
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!-- Wino Navigation View Item -->
|
|
<Style TargetType="controls:WinoNavigationViewItem">
|
|
<Setter Property="ContentTransitions">
|
|
<Setter.Value>
|
|
<TransitionCollection>
|
|
<PopupThemeTransition />
|
|
</TransitionCollection>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<DataTemplate x:Key="NoneTemplate">
|
|
<Image Source="/Assets/FileTypes/type_none.png" />
|
|
</DataTemplate>
|
|
|
|
<DataTemplate x:Key="ExecutableTemplate">
|
|
<Image Source="/Assets/FileTypes/type_executable.png" />
|
|
</DataTemplate>
|
|
|
|
<DataTemplate x:Key="ImageTemplate">
|
|
<Image Source="/Assets/FileTypes/type_image.png" />
|
|
</DataTemplate>
|
|
|
|
<DataTemplate x:Key="VideoTemplate">
|
|
<Image Source="/Assets/FileTypes/type_video.png" />
|
|
</DataTemplate>
|
|
|
|
<DataTemplate x:Key="AudioTemplate">
|
|
<Image Source="/Assets/FileTypes/type_audio.png" />
|
|
</DataTemplate>
|
|
|
|
<DataTemplate x:Key="PDFTemplate">
|
|
<Image Source="/Assets/FileTypes/type_pdf.png" />
|
|
</DataTemplate>
|
|
|
|
<DataTemplate x:Key="HTMLTemplate">
|
|
<Image Source="/Assets/FileTypes/type_html.png" />
|
|
</DataTemplate>
|
|
|
|
<DataTemplate x:Key="RarTemplate">
|
|
<Image Source="/Assets/FileTypes/type_rar.png" />
|
|
</DataTemplate>
|
|
|
|
<DataTemplate x:Key="ArchiveTemplate">
|
|
<Image Source="/Assets/FileTypes/type_archive.png" />
|
|
</DataTemplate>
|
|
|
|
<DataTemplate x:Key="OtherTemplate">
|
|
<Image Source="/Assets/FileTypes/type_other.png" />
|
|
</DataTemplate>
|
|
|
|
<selectors:FileAttachmentTypeSelector x:Key="FileTypeIconSelector"
|
|
Archive="{StaticResource ArchiveTemplate}"
|
|
Executable="{StaticResource ExecutableTemplate}"
|
|
HTML="{StaticResource HTMLTemplate}"
|
|
Image="{StaticResource ImageTemplate}"
|
|
None="{StaticResource NoneTemplate}"
|
|
Other="{StaticResource OtherTemplate}"
|
|
PDF="{StaticResource PDFTemplate}"
|
|
RarArchive="{StaticResource RarTemplate}"
|
|
Video="{StaticResource VideoTemplate}" />
|
|
</ResourceDictionary>
|
|
|
|
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
|
|
|
|
<!-- Define Global Styles here -->
|
|
<ResourceDictionary>
|
|
<Style TargetType="ScrollViewer">
|
|
<Setter Property="VerticalScrollBarVisibility" Value="Auto" />
|
|
</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>
|
|
|
|
<!-- Last item must always be the default theme. -->
|
|
<ResourceDictionary Source="/AppThemes/Mica.xaml" />
|
|
</ResourceDictionary.MergedDictionaries>
|
|
</ResourceDictionary>
|
|
</Application.Resources>
|
|
</Application>
|