From 6e6bbaaf0b361ec18ad457c652d4b9b835b119de Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 2 Apr 2021 14:07:17 +0800 Subject: [PATCH] style: add Brush.SideBar to replace both Brush.GroupBar and Brush.Content --- src/Resources/Themes/Dark.xaml | 3 +-- src/Resources/Themes/Light.xaml | 3 +-- src/UI/Dashboard.xaml | 24 +++++++----------------- 3 files changed, 9 insertions(+), 21 deletions(-) diff --git a/src/Resources/Themes/Dark.xaml b/src/Resources/Themes/Dark.xaml index 171f1ac7..ce303b95 100644 --- a/src/Resources/Themes/Dark.xaml +++ b/src/Resources/Themes/Dark.xaml @@ -10,8 +10,7 @@ - - + diff --git a/src/Resources/Themes/Light.xaml b/src/Resources/Themes/Light.xaml index 743100b1..9d2cf01e 100644 --- a/src/Resources/Themes/Light.xaml +++ b/src/Resources/Themes/Light.xaml @@ -10,8 +10,7 @@ - - + diff --git a/src/UI/Dashboard.xaml b/src/UI/Dashboard.xaml index 07964130..fcaacacf 100644 --- a/src/UI/Dashboard.xaml +++ b/src/UI/Dashboard.xaml @@ -119,7 +119,7 @@ - + @@ -129,7 +129,6 @@ - @@ -139,14 +138,13 @@ - + @@ -187,7 +185,7 @@ - + @@ -208,7 +206,6 @@ x:Name="localBranchTree" Padding="0" FontFamily="Consolas" - Background="{StaticResource Brush.GroupContent}" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Auto" LostFocus="TreeLostFocus" @@ -272,7 +269,7 @@ - + @@ -288,7 +285,6 @@ x:Name="remoteBranchTree" Padding="0" FontFamily="Consolas" - Background="{StaticResource Brush.GroupContent}" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Auto" SelectedItemChanged="RemoteBranchSelected" @@ -360,8 +356,7 @@ x:Name="tagListToggle" Grid.Row="6" Style="{StaticResource Style.ToggleButton.Expender}" - IsChecked="{Binding Path=ExpandTags, ElementName=me, Mode=TwoWay}" - Background="{StaticResource Brush.GroupBar}"> + IsChecked="{Binding Path=ExpandTags, ElementName=me, Mode=TwoWay}"> @@ -380,7 +375,6 @@ Visibility="{Binding ElementName=tagListToggle, Path=IsChecked, Converter={StaticResource Bool2Collapsed}}" RowHeight="24" Height="200" - Background="{StaticResource Brush.GroupContent}" LostFocus="TagLostFocus" SelectionChanged="TagSelectionChanged" ContextMenuOpening="TagContextMenuOpening" @@ -423,15 +417,12 @@ - - + IsChecked="False"> @@ -455,7 +446,6 @@ Visibility="{Binding ElementName=submoduleListToggle, Path=IsChecked, Converter={StaticResource Bool2Collapsed}}" RowHeight="24" Height="100" - Background="{StaticResource Brush.GroupContent}" LostFocus="SubmoduleLostFocus" ContextMenuOpening="SubmoduleContextMenuOpening" ScrollViewer.HorizontalScrollBarVisibility="Disabled"