* New rename folder dialog keys. * Insfra work for folder operations and rename folder code. * RenameFolder for Gmail. * Fixed input dialog to take custom take for primary button. * Missing rename for DS call. * Outlook to throw exception in case of error. * Implemented rename folder functionality for Outlook. * Remove default primary text from input dialog. * Fixed an issue where outlook folder rename does not work. * Disable vertical scroll for composing page editor items. * Fixing some issues with imap folder sync. * fix copy pasta * TODO folder update/removed overrides for shell. * New rename folder dialog keys. * Insfra work for folder operations and rename folder code. * RenameFolder for Gmail. * Fixed input dialog to take custom take for primary button. * Missing rename for DS call. * Outlook to throw exception in case of error. * Implemented rename folder functionality for Outlook. * Remove default primary text from input dialog. * Fixed an issue where outlook folder rename does not work. * Disable vertical scroll for composing page editor items. * Fixing some issues with imap folder sync. * fix copy pasta * TODO folder update/removed overrides for shell. * New rename folder dialog keys. * Insfra work for folder operations and rename folder code. * RenameFolder for Gmail. * Fixed input dialog to take custom take for primary button. * Missing rename for DS call. * Outlook to throw exception in case of error. * Implemented rename folder functionality for Outlook. * Remove default primary text from input dialog. * Fixed an issue where outlook folder rename does not work. * Disable vertical scroll for composing page editor items. * Fixing some issues with imap folder sync. * fix copy pasta * TODO folder update/removed overrides for shell. * New rename folder dialog keys. * Fixed an issue where redundant older updates causing pivots to be re-created. * New empty folder request * New rename folder dialog keys. * Insfra work for folder operations and rename folder code. * RenameFolder for Gmail. * Fixed input dialog to take custom take for primary button. * Missing rename for DS call. * Outlook to throw exception in case of error. * Implemented rename folder functionality for Outlook. * Remove default primary text from input dialog. * Fixed an issue where outlook folder rename does not work. * Fixing some issues with imap folder sync. * fix copy pasta * TODO folder update/removed overrides for shell. * New rename folder dialog keys. * New rename folder dialog keys. * New rename folder dialog keys. * Fixed an issue where redundant older updates causing pivots to be re-created. * New empty folder request * Enable empty folder on base sync. * Move updates on event listeners. * Remove folder UI messages. * Reworked folder synchronization for gmail. * Loading folders on the fly as the selected account changed instead of relying on cached menu items. * Merged account folder items, re-navigating to existing rendering page. * - Reworked merged account menu system. - Reworked unread item count loadings. - Fixed back button visibility. - Instant rendering of mails if renderer is active. - Animation fixes. - Menu item re-load crash/hang fixes. * Handle folder renaming on the UI. * Empty folder for all synchronizers. * New execution delay mechanism and handling folder mark as read for all synchronizers. * Revert UI changes on failure for IMAP. * Remove duplicate translation keys. * Cleanup.
305 lines
21 KiB
XML
305 lines
21 KiB
XML
<ResourceDictionary
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:primitives="using:Microsoft.UI.Xaml.Controls.Primitives"
|
|
xmlns:winoControls="using:Wino.Controls"
|
|
xmlns:muxc="using:Microsoft.UI.Xaml.Controls">
|
|
<ResourceDictionary.ThemeDictionaries>
|
|
<ResourceDictionary x:Key="Light">
|
|
<SolidColorBrush x:Key="MailItemFlaggedBackgroundBrush" Color="#ffffcc" />
|
|
<SolidColorBrush x:Key="InformationBrush">#34495e</SolidColorBrush>
|
|
</ResourceDictionary>
|
|
<ResourceDictionary x:Key="Dark">
|
|
<SolidColorBrush x:Key="MailItemFlaggedBackgroundBrush" Color="#576574" />
|
|
<SolidColorBrush x:Key="InformationBrush">#ecf0f1</SolidColorBrush>
|
|
</ResourceDictionary>
|
|
</ResourceDictionary.ThemeDictionaries>
|
|
|
|
<!-- Horizontally Stretched List View Item Container Style -->
|
|
<Style x:Key="StretchedItemContainerStyle" TargetType="ListViewItem">
|
|
<Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" />
|
|
<Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" />
|
|
<Setter Property="Background" Value="{ThemeResource ListViewItemBackground}" />
|
|
<Setter Property="Foreground" Value="{ThemeResource ListViewItemForeground}" />
|
|
<Setter Property="TabNavigation" Value="Local" />
|
|
<Setter Property="IsHoldingEnabled" Value="True" />
|
|
<Setter Property="Padding" Value="0" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
|
<Setter Property="MinWidth" Value="{ThemeResource ListViewItemMinWidth}" />
|
|
<Setter Property="MinHeight" Value="{ThemeResource ListViewItemMinHeight}" />
|
|
<Setter Property="AllowDrop" Value="False" />
|
|
<Setter Property="UseSystemFocusVisuals" Value="{StaticResource UseSystemFocusVisuals}" />
|
|
<Setter Property="FocusVisualMargin" Value="0" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="ListViewItem">
|
|
<ListViewItemPresenter
|
|
x:Name="Root"
|
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
CheckBoxBrush="{ThemeResource ListViewItemCheckBoxBrush}"
|
|
CheckBrush="{ThemeResource ListViewItemCheckBrush}"
|
|
CheckMode="{ThemeResource ListViewItemCheckMode}"
|
|
ContentMargin="{TemplateBinding Padding}"
|
|
ContentTransitions="{TemplateBinding ContentTransitions}"
|
|
Control.IsTemplateFocusTarget="True"
|
|
DisabledOpacity="{ThemeResource ListViewItemDisabledThemeOpacity}"
|
|
DragBackground="{ThemeResource ListViewItemDragBackground}"
|
|
DragForeground="{ThemeResource ListViewItemDragForeground}"
|
|
DragOpacity="{ThemeResource ListViewItemDragThemeOpacity}"
|
|
FocusBorderBrush="{ThemeResource ListViewItemFocusBorderBrush}"
|
|
FocusSecondaryBorderBrush="{ThemeResource ListViewItemFocusSecondaryBorderBrush}"
|
|
FocusVisualMargin="{TemplateBinding FocusVisualMargin}"
|
|
PlaceholderBackground="{ThemeResource ListViewItemPlaceholderBackground}"
|
|
PointerOverBackground="{ThemeResource ListViewItemBackgroundPointerOver}"
|
|
PointerOverForeground="{ThemeResource ListViewItemForegroundPointerOver}"
|
|
PressedBackground="{ThemeResource ListViewItemBackgroundPressed}"
|
|
ReorderHintOffset="{ThemeResource ListViewItemReorderHintThemeOffset}"
|
|
RevealBackground="{ThemeResource ListViewItemRevealBackground}"
|
|
RevealBorderBrush="{ThemeResource ListViewItemRevealBorderBrush}"
|
|
RevealBorderThickness="{ThemeResource ListViewItemRevealBorderThemeThickness}"
|
|
SelectedBackground="{ThemeResource ListViewItemBackgroundSelected}"
|
|
SelectedForeground="{ThemeResource ListViewItemForegroundSelected}"
|
|
SelectedPointerOverBackground="{ThemeResource ListViewItemBackgroundSelectedPointerOver}"
|
|
SelectedPressedBackground="{ThemeResource ListViewItemBackgroundSelectedPressed}"
|
|
SelectionCheckMarkVisualEnabled="{ThemeResource ListViewItemSelectionCheckMarkVisualEnabled}">
|
|
<VisualStateManager.VisualStateGroups>
|
|
<VisualStateGroup x:Name="CommonStates">
|
|
<VisualState x:Name="Normal" />
|
|
<VisualState x:Name="Selected" />
|
|
<VisualState x:Name="PointerOver">
|
|
<VisualState.Setters>
|
|
<Setter Target="Root.(RevealBrush.State)" Value="PointerOver" />
|
|
<Setter Target="Root.RevealBorderBrush" Value="{ThemeResource ListViewItemRevealBorderBrushPointerOver}" />
|
|
</VisualState.Setters>
|
|
</VisualState>
|
|
<VisualState x:Name="PointerOverSelected">
|
|
<VisualState.Setters>
|
|
<Setter Target="Root.(RevealBrush.State)" Value="PointerOver" />
|
|
<Setter Target="Root.RevealBorderBrush" Value="{ThemeResource ListViewItemRevealBorderBrushPointerOver}" />
|
|
</VisualState.Setters>
|
|
</VisualState>
|
|
<VisualState x:Name="PointerOverPressed">
|
|
<VisualState.Setters>
|
|
<Setter Target="Root.(RevealBrush.State)" Value="Pressed" />
|
|
<Setter Target="Root.RevealBorderBrush" Value="{ThemeResource ListViewItemRevealBorderBrushPressed}" />
|
|
</VisualState.Setters>
|
|
</VisualState>
|
|
<VisualState x:Name="Pressed">
|
|
<VisualState.Setters>
|
|
<Setter Target="Root.(RevealBrush.State)" Value="Pressed" />
|
|
<Setter Target="Root.RevealBorderBrush" Value="{ThemeResource ListViewItemRevealBorderBrushPressed}" />
|
|
</VisualState.Setters>
|
|
</VisualState>
|
|
<VisualState x:Name="PressedSelected">
|
|
<VisualState.Setters>
|
|
<Setter Target="Root.(RevealBrush.State)" Value="Pressed" />
|
|
<Setter Target="Root.RevealBorderBrush" Value="{ThemeResource ListViewItemRevealBorderBrushPressed}" />
|
|
</VisualState.Setters>
|
|
</VisualState>
|
|
</VisualStateGroup>
|
|
<VisualStateGroup x:Name="DisabledStates">
|
|
<VisualState x:Name="Enabled" />
|
|
<VisualState x:Name="Disabled">
|
|
<VisualState.Setters>
|
|
<Setter Target="Root.RevealBorderThickness" Value="0" />
|
|
</VisualState.Setters>
|
|
</VisualState>
|
|
</VisualStateGroup>
|
|
</VisualStateManager.VisualStateGroups>
|
|
</ListViewItemPresenter>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!-- Mail List Header Item Style -->
|
|
<Style x:Key="MailListHeaderStyle" TargetType="ListViewHeaderItem">
|
|
<Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" />
|
|
<Setter Property="FontSize" Value="{ThemeResource ListViewHeaderItemThemeFontSize}" />
|
|
<Setter Property="Background" Value="Transparent" />
|
|
<Setter Property="Margin" Value="0,0,0,0" />
|
|
<Setter Property="MinHeight" Value="0" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
|
<Setter Property="VerticalContentAlignment" Value="Stretch" />
|
|
<Setter Property="UseSystemFocusVisuals" Value="True" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="ListViewHeaderItem">
|
|
<Grid
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}">
|
|
<ContentPresenter
|
|
x:Name="ContentPresenter"
|
|
Margin="0"
|
|
Padding="0"
|
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
Content="{TemplateBinding Content}"
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
ContentTransitions="{TemplateBinding ContentTransitions}"
|
|
Foreground="{TemplateBinding Foreground}" />
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!-- Clickable account navigation view item style -->
|
|
<!-- This introduces custom selector pipe for multi selection in NavigationView in shell. -->
|
|
|
|
<Style x:Key="SingleAccountNavigationViewItemTemplate" TargetType="winoControls:AccountNavigationItem">
|
|
<Setter Property="Foreground" Value="{ThemeResource NavigationViewItemForeground}" />
|
|
<Setter Property="Background" Value="{ThemeResource NavigationViewItemBackground}" />
|
|
<Setter Property="BorderBrush" Value="{ThemeResource NavigationViewItemBorderBrush}" />
|
|
<Setter Property="BorderThickness" Value="{StaticResource NavigationViewItemBorderThickness}" />
|
|
<Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" />
|
|
<Setter Property="FontWeight" Value="Normal" />
|
|
<Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" />
|
|
<Setter Property="Margin" Value="{ThemeResource NavigationViewItemMargin}" />
|
|
<Setter Property="UseSystemFocusVisuals" Value="True" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
|
<Setter Property="TabNavigation" Value="Once" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="winoControls:AccountNavigationItem">
|
|
<Grid x:Name="NVIRootGrid">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<primitives:NavigationViewItemPresenter
|
|
x:Name="NavigationViewItemPresenter"
|
|
Icon="{TemplateBinding Icon}"
|
|
InfoBadge="{TemplateBinding InfoBadge}"
|
|
ContentTransitions="{TemplateBinding ContentTransitions}"
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
Padding="{TemplateBinding Padding}"
|
|
Foreground="{TemplateBinding Foreground}"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
UseSystemFocusVisuals="{TemplateBinding UseSystemFocusVisuals}"
|
|
VerticalAlignment="{TemplateBinding VerticalAlignment}"
|
|
HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
|
|
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"
|
|
CornerRadius="4"
|
|
IsTabStop="false"
|
|
Control.IsTemplateFocusTarget="True">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Rectangle
|
|
x:Name="CustomSelectionIndicator"
|
|
Width="3"
|
|
Opacity="1"
|
|
HorizontalAlignment="Left"
|
|
Visibility="Collapsed"
|
|
Scale="0,0,0"
|
|
Fill="{ThemeResource NavigationViewSelectionIndicatorForeground}"
|
|
RadiusX="2"
|
|
RadiusY="2">
|
|
<Rectangle.ScaleTransition>
|
|
<Vector3Transition />
|
|
</Rectangle.ScaleTransition>
|
|
</Rectangle>
|
|
<ContentPresenter Content="{TemplateBinding Content}" Grid.Column="1" />
|
|
</Grid>
|
|
</primitives:NavigationViewItemPresenter>
|
|
|
|
<muxc:ItemsRepeater
|
|
x:Load="False"
|
|
Grid.Row="1"
|
|
Visibility="Collapsed"
|
|
x:Name="NavigationViewItemMenuItemsHost">
|
|
<muxc:ItemsRepeater.Layout>
|
|
<muxc:StackLayout Orientation="Vertical" />
|
|
</muxc:ItemsRepeater.Layout>
|
|
</muxc:ItemsRepeater>
|
|
|
|
|
|
<!-- Custom selecotr pipe. -->
|
|
|
|
|
|
<FlyoutBase.AttachedFlyout>
|
|
<Flyout x:Name="ChildrenFlyout" Placement="RightEdgeAlignedTop">
|
|
<Flyout.FlyoutPresenterStyle>
|
|
<Style TargetType="FlyoutPresenter">
|
|
<Setter Property="Padding" Value="{ThemeResource NavigationViewItemChildrenMenuFlyoutPadding}" />
|
|
<!-- Set negative top margin to make the flyout align exactly with the button -->
|
|
<Setter Property="Margin" Value="0,-4,0,0" />
|
|
<Setter Property="ScrollViewer.HorizontalScrollMode" Value="Auto" />
|
|
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" />
|
|
<Setter Property="ScrollViewer.VerticalScrollMode" Value="Auto" />
|
|
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
|
|
<Setter Property="ScrollViewer.ZoomMode" Value="Disabled" />
|
|
<Setter Property="CornerRadius" Value="{ThemeResource OverlayCornerRadius}" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="FlyoutPresenter">
|
|
<ScrollViewer
|
|
x:Name="ScrollViewer"
|
|
ZoomMode="{TemplateBinding ScrollViewer.ZoomMode}"
|
|
HorizontalScrollMode="{TemplateBinding ScrollViewer.HorizontalScrollMode}"
|
|
HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
|
|
VerticalScrollMode="{TemplateBinding ScrollViewer.VerticalScrollMode}"
|
|
VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}"
|
|
AutomationProperties.AccessibilityView="Raw">
|
|
<ContentPresenter
|
|
x:Name="ContentPresenter"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
Content="{TemplateBinding Content}"
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
ContentTransitions="{TemplateBinding ContentTransitions}"
|
|
Padding="{TemplateBinding Padding}"
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
CornerRadius="{TemplateBinding CornerRadius}" />
|
|
</ScrollViewer>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</Flyout.FlyoutPresenterStyle>
|
|
<Grid x:Name="FlyoutRootGrid">
|
|
<Grid x:Name="FlyoutContentGrid" />
|
|
</Grid>
|
|
</Flyout>
|
|
</FlyoutBase.AttachedFlyout>
|
|
<VisualStateManager.VisualStateGroups>
|
|
<VisualStateGroup x:Name="ItemOnNavigationViewListPositionStates">
|
|
<VisualState x:Name="OnLeftNavigation">
|
|
<VisualState.Setters>
|
|
<Setter Target="NavigationViewItemPresenter.Style" Value="{StaticResource MUX_NavigationViewItemPresenterStyleWhenOnLeftPane}" />
|
|
</VisualState.Setters>
|
|
</VisualState>
|
|
<VisualState x:Name="OnTopNavigationPrimary">
|
|
<VisualState.Setters>
|
|
<Setter Target="NavigationViewItemPresenter.Margin" Value="{ThemeResource TopNavigationViewItemMargin}" />
|
|
<Setter Target="NavigationViewItemPresenter.Style" Value="{StaticResource MUX_NavigationViewItemPresenterStyleWhenOnTopPane}" />
|
|
<Setter Target="ChildrenFlyout.Placement" Value="BottomEdgeAlignedLeft" />
|
|
</VisualState.Setters>
|
|
</VisualState>
|
|
<VisualState x:Name="OnTopNavigationOverflow">
|
|
<VisualState.Setters>
|
|
<Setter Target="NavigationViewItemPresenter.Style" Value="{StaticResource MUX_NavigationViewItemPresenterStyleWhenOnTopPaneOverflow}" />
|
|
</VisualState.Setters>
|
|
</VisualState>
|
|
</VisualStateGroup>
|
|
</VisualStateManager.VisualStateGroups>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
</ResourceDictionary>
|