simplify layout for mail list

This commit is contained in:
Aleh Khantsevich
2024-08-29 17:18:46 +02:00
parent 945c747e3e
commit c6216f54f8

View File

@@ -195,28 +195,6 @@
</selectors:MailItemDisplaySelector>
<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>
<wino:BasePage.ShellContent>
@@ -259,7 +237,7 @@
<Border
x:Name="MailListContainer"
Grid.Column="0"
Padding="5,0,0,0"
Padding="5"
Background="{ThemeResource WinoContentZoneBackgroud}"
BorderBrush="{StaticResource CardStrokeColorDefaultBrush}"
BorderThickness="1"
@@ -271,17 +249,9 @@
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<!-- Top Area -->
<Grid CornerRadius="8" RowSpacing="4">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<!-- Top Commands -->
<!-- Action bar -->
<Grid
Grid.Row="0"
Margin="0,5,5,0"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
CornerRadius="8"
Visibility="{x:Bind ViewModel.PreferencesService.IsMailListActionBarEnabled}">
@@ -402,7 +372,7 @@
<!-- Pivot + Sync + Multi Select -->
<Grid
Grid.Row="1"
Margin="0,0,0,5"
Padding="0,0,0,2"
Visibility="{x:Bind helpers:XamlHelpers.ReverseBoolToVisibilityConverter(ViewModel.IsInSearchMode), Mode=OneWay}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
@@ -514,7 +484,6 @@
</muxc:InfoBar.ActionButton>
</muxc:InfoBar>
</Grid>
</Grid>
<!-- No items createria -->
<StackPanel
@@ -614,7 +583,7 @@
<ListView.ItemTemplate>
<DataTemplate x:DataType="ICollectionViewGroup">
<Grid
Margin="4,0"
Margin="0,0"
Background="{ThemeResource MailListHeaderBackgroundColor}"
CornerRadius="4">
<TextBlock
@@ -636,7 +605,6 @@
<controls:WinoInfoBar
Title="{x:Bind ViewModel.BarTitle, Mode=OneWay}"
Grid.Row="2"
Margin="6,0,6,6"
VerticalAlignment="Bottom"
AnimationType="SlideFromBottomToTop"
DismissInterval="2"