simplify layout for mail list
This commit is contained in:
@@ -195,28 +195,6 @@
|
|||||||
</selectors:MailItemDisplaySelector>
|
</selectors:MailItemDisplaySelector>
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ButtonBackgroundDisabled">Transparent</SolidColorBrush>
|
<SolidColorBrush x:Key="ButtonBackgroundDisabled">Transparent</SolidColorBrush>
|
||||||
|
|
||||||
<Style
|
|
||||||
x:Key="TopCommandBarButtonStyle"
|
|
||||||
BasedOn="{StaticResource DefaultButtonStyle}"
|
|
||||||
TargetType="Button">
|
|
||||||
<Setter Property="Background" Value="Transparent" />
|
|
||||||
<Setter Property="BorderThickness" Value="0" />
|
|
||||||
<Setter Property="VerticalAlignment" Value="Center" />
|
|
||||||
<Setter Property="HorizontalAlignment" Value="Stretch" />
|
|
||||||
<Setter Property="Padding" Value="12" />
|
|
||||||
</Style>
|
|
||||||
|
|
||||||
<Style
|
|
||||||
x:Key="TopCommandBarToggleButtonStyle"
|
|
||||||
BasedOn="{StaticResource DefaultToggleButtonStyle}"
|
|
||||||
TargetType="ToggleButton">
|
|
||||||
<Setter Property="Background" Value="Transparent" />
|
|
||||||
<Setter Property="BorderThickness" Value="0" />
|
|
||||||
<Setter Property="VerticalAlignment" Value="Center" />
|
|
||||||
<Setter Property="HorizontalAlignment" Value="Stretch" />
|
|
||||||
<Setter Property="Padding" Value="12" />
|
|
||||||
</Style>
|
|
||||||
</Page.Resources>
|
</Page.Resources>
|
||||||
|
|
||||||
<wino:BasePage.ShellContent>
|
<wino:BasePage.ShellContent>
|
||||||
@@ -259,7 +237,7 @@
|
|||||||
<Border
|
<Border
|
||||||
x:Name="MailListContainer"
|
x:Name="MailListContainer"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Padding="5,0,0,0"
|
Padding="5"
|
||||||
Background="{ThemeResource WinoContentZoneBackgroud}"
|
Background="{ThemeResource WinoContentZoneBackgroud}"
|
||||||
BorderBrush="{StaticResource CardStrokeColorDefaultBrush}"
|
BorderBrush="{StaticResource CardStrokeColorDefaultBrush}"
|
||||||
BorderThickness="1"
|
BorderThickness="1"
|
||||||
@@ -271,17 +249,9 @@
|
|||||||
<RowDefinition Height="*" />
|
<RowDefinition Height="*" />
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<!-- Top Area -->
|
<!-- Action bar -->
|
||||||
<Grid CornerRadius="8" RowSpacing="4">
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition Height="Auto" />
|
|
||||||
<RowDefinition Height="*" />
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
|
|
||||||
<!-- Top Commands -->
|
|
||||||
<Grid
|
<Grid
|
||||||
Grid.Row="0"
|
Grid.Row="0"
|
||||||
Margin="0,5,5,0"
|
|
||||||
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
|
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
|
||||||
CornerRadius="8"
|
CornerRadius="8"
|
||||||
Visibility="{x:Bind ViewModel.PreferencesService.IsMailListActionBarEnabled}">
|
Visibility="{x:Bind ViewModel.PreferencesService.IsMailListActionBarEnabled}">
|
||||||
@@ -402,7 +372,7 @@
|
|||||||
<!-- Pivot + Sync + Multi Select -->
|
<!-- Pivot + Sync + Multi Select -->
|
||||||
<Grid
|
<Grid
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
Margin="0,0,0,5"
|
Padding="0,0,0,2"
|
||||||
Visibility="{x:Bind helpers:XamlHelpers.ReverseBoolToVisibilityConverter(ViewModel.IsInSearchMode), Mode=OneWay}">
|
Visibility="{x:Bind helpers:XamlHelpers.ReverseBoolToVisibilityConverter(ViewModel.IsInSearchMode), Mode=OneWay}">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="Auto" />
|
<ColumnDefinition Width="Auto" />
|
||||||
@@ -514,7 +484,6 @@
|
|||||||
</muxc:InfoBar.ActionButton>
|
</muxc:InfoBar.ActionButton>
|
||||||
</muxc:InfoBar>
|
</muxc:InfoBar>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
|
||||||
|
|
||||||
<!-- No items createria -->
|
<!-- No items createria -->
|
||||||
<StackPanel
|
<StackPanel
|
||||||
@@ -614,7 +583,7 @@
|
|||||||
<ListView.ItemTemplate>
|
<ListView.ItemTemplate>
|
||||||
<DataTemplate x:DataType="ICollectionViewGroup">
|
<DataTemplate x:DataType="ICollectionViewGroup">
|
||||||
<Grid
|
<Grid
|
||||||
Margin="4,0"
|
Margin="0,0"
|
||||||
Background="{ThemeResource MailListHeaderBackgroundColor}"
|
Background="{ThemeResource MailListHeaderBackgroundColor}"
|
||||||
CornerRadius="4">
|
CornerRadius="4">
|
||||||
<TextBlock
|
<TextBlock
|
||||||
@@ -636,7 +605,6 @@
|
|||||||
<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"
|
|
||||||
VerticalAlignment="Bottom"
|
VerticalAlignment="Bottom"
|
||||||
AnimationType="SlideFromBottomToTop"
|
AnimationType="SlideFromBottomToTop"
|
||||||
DismissInterval="2"
|
DismissInterval="2"
|
||||||
|
|||||||
Reference in New Issue
Block a user