Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions src/Resources/Styles.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@
Cursor="BottomRightCorner"
Tag="{x:Static WindowEdge.SouthEast}"/>

<Grid Margin="{TemplateBinding Padding}" Effect="drop-shadow(0 0 12 #60000000)">
<Border x:Name="PART_ContentRoot"
<Grid Margin="{TemplateBinding Padding}">
<Border BoxShadow="0 0 12 0 #60000000" x:Name="PART_ContentRoot"
Background="{DynamicResource Brush.Window}"
BorderBrush="{DynamicResource Brush.WindowBorder}"
BorderThickness="1"
Expand Down Expand Up @@ -198,8 +198,8 @@
<Setter Property="TextBlock.TextDecorations" Value=""/>
<Setter Property="Template">
<ControlTemplate>
<Grid Margin="8" Effect="drop-shadow(0 0 8 #60000000)">
<Border Padding="8,6"
<Grid Margin="8">
<Border BoxShadow="0 0 8 0 #60000000" Padding="8,6"
CornerRadius="4"
Background="{DynamicResource Brush.Popup}"
BorderBrush="{DynamicResource Brush.PopupBorder}"
Expand All @@ -226,8 +226,8 @@

<Setter Property="Template">
<ControlTemplate>
<Grid Margin="4" Effect="drop-shadow(0 0 4 #80000000)">
<Border Name="LayoutRoot"
<Grid Margin="4">
<Border BoxShadow="0 0 4 0 #80000000" Name="LayoutRoot"
Padding="12"
Background="{DynamicResource Brush.Popup}"
BorderThickness="1"
Expand Down Expand Up @@ -769,8 +769,8 @@
<Setter Property="VerticalOffset" Value="-6"/>
<Setter Property="Template">
<ControlTemplate>
<Grid Margin="6" Effect="drop-shadow(0 0 6 #80000000)">
<Border BorderThickness="1"
<Grid Margin="6">
<Border BoxShadow="0 0 6 0 #80000000" BorderThickness="1"
BorderBrush="{DynamicResource Brush.PopupBorder}"
Background="{DynamicResource Brush.Popup}"
CornerRadius="{TemplateBinding CornerRadius}"
Expand All @@ -794,8 +794,8 @@
<Style Selector="MenuFlyoutPresenter">
<Setter Property="Template">
<ControlTemplate>
<Grid Margin="4" Effect="drop-shadow(0 0 4 #80000000)">
<Border Name="LayoutRoot"
<Grid Margin="4">
<Border BoxShadow="0 0 4 0 #80000000" Name="LayoutRoot"
Background="{DynamicResource Brush.Popup}"
BorderBrush="{DynamicResource Brush.PopupBorder}"
BorderThickness="1"
Expand Down Expand Up @@ -907,8 +907,8 @@
HorizontalOffset="-4"
VerticalOffset="-4"
IsOpen="{TemplateBinding IsSubMenuOpen, Mode=TwoWay}">
<Grid Margin="6" Effect="drop-shadow(0 0 6 #80000000)">
<Border Padding="8,4"
<Grid Margin="6">
<Border BoxShadow="0 0 6 0 #80000000" Padding="8,4"
MaxHeight="400"
BorderThickness="1" BorderBrush="{DynamicResource Brush.PopupBorder}"
Background="{DynamicResource Brush.Popup}"
Expand Down
3 changes: 1 addition & 2 deletions src/Views/About.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,9 @@
<StackPanel Orientation="Vertical" Margin="4,18,24,18">
<StackPanel Height="40" Orientation="Horizontal">
<TextBlock Classes="bold" Text="SourceGit" FontSize="32" />
<Border Margin="12,0,0,0" Height="20"
<Border BoxShadow="0 0 6 0 #40000000" Margin="12,0,0,0" Height="20"
CornerRadius="10"
Background="{DynamicResource Brush.Accent}"
Effect="drop-shadow(0 0 6 #40000000)"
Cursor="Hand"
PointerPressed="OnVisitReleaseNotes"
ToolTip.Tip="{DynamicResource Text.About.ReleaseNotes}">
Expand Down
4 changes: 2 additions & 2 deletions src/Views/CommitMessageToolBox.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
</MultiBinding>
</Popup.IsOpen>

<Border Margin="8" VerticalAlignment="Top" Effect="drop-shadow(0 0 8 #80000000)">
<Border Padding="4"
<Border Margin="8" VerticalAlignment="Top">
<Border BoxShadow="0 0 8 0 #80000000" Padding="4"
BorderThickness="1" BorderBrush="{DynamicResource Brush.PopupBorder}"
Background="{DynamicResource Brush.Popup}"
CornerRadius="4">
Expand Down
4 changes: 2 additions & 2 deletions src/Views/CommitSearchView.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@
</MultiBinding>
</Popup.IsOpen>

<Border Margin="8" VerticalAlignment="Top" Effect="drop-shadow(0 0 8 #80000000)">
<Border Padding="4"
<Border Margin="8" VerticalAlignment="Top">
<Border BoxShadow="0 0 8 0 #80000000" Padding="4"
CornerRadius="4"
Background="{DynamicResource Brush.Popup}"
BorderThickness="1" BorderBrush="{DynamicResource Brush.PopupBorder}">
Expand Down
3 changes: 1 addition & 2 deletions src/Views/Histories.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,11 @@
ClipToBounds="True"
Loaded="OnCommitGraphLoaded"/>

<Border Width="28" Height="28"
<Border BoxShadow="0 0 8 0 #80000000" Width="28" Height="28"
Margin="0,0,16,8"
CornerRadius="14"
Background="{DynamicResource Brush.Popup}"
HorizontalAlignment="Right" VerticalAlignment="Bottom"
Effect="drop-shadow(0 0 8 #80000000)"
PointerPressed="OnScrollToTopPointerPressed"
IsVisible="{Binding $parent[v:Histories].IsScrollToTopVisible}">
<Path Width="12" Height="12"
Expand Down
20 changes: 10 additions & 10 deletions src/Views/ImageDiffView.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
<TextBlock Text="{Binding OldFileSize, Converter={x:Static c:LongConverters.ToFileSize}}" Foreground="{DynamicResource Brush.FG2}" Margin="16,0,0,0"/>
</StackPanel>

<Border Grid.Row="1" Margin="0,12,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" Effect="drop-shadow(0 0 8 #A0000000)">
<Border Background="{DynamicResource Brush.Popup}" Padding="8">
<Border Grid.Row="1" Margin="0,12,0,0" HorizontalAlignment="Center" VerticalAlignment="Center">
<Border BoxShadow="0 0 8 0 #A0000000" Background="{DynamicResource Brush.Popup}" Padding="8">
<Border BorderThickness="1" BorderBrush="{DynamicResource Brush.Border1}">
<v:ImageView Image="{Binding Old}"/>
</Border>
Expand All @@ -51,8 +51,8 @@
<TextBlock Text="{Binding NewFileSize, Converter={x:Static c:LongConverters.ToFileSize}}" Foreground="{DynamicResource Brush.FG2}" Margin="16,0,0,0"/>
</StackPanel>

<Border Grid.Row="1" Margin="0,12,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" Effect="drop-shadow(0 0 8 #A0000000)">
<Border Background="{DynamicResource Brush.Popup}" Padding="8">
<Border Grid.Row="1" Margin="0,12,0,0" HorizontalAlignment="Center" VerticalAlignment="Center">
<Border BoxShadow="0 0 8 0 #A0000000" Background="{DynamicResource Brush.Popup}" Padding="8">
<Border BorderThickness="1" BorderBrush="{DynamicResource Brush.Border1}">
<v:ImageView Image="{Binding New}"/>
</Border>
Expand Down Expand Up @@ -84,8 +84,8 @@
<TextBlock Grid.Column="5" Text="{Binding NewFileSize, Converter={x:Static c:LongConverters.ToFileSize}}" Foreground="{DynamicResource Brush.FG2}" Margin="16,0,0,0"/>
</Grid>

<Border Grid.Row="1" Margin="0,12,0,0" HorizontalAlignment="Center" Effect="drop-shadow(0 0 8 #A0000000)">
<Border Background="{DynamicResource Brush.Window}">
<Border Grid.Row="1" Margin="0,12,0,0" HorizontalAlignment="Center">
<Border BoxShadow="0 0 8 0 #A0000000" Background="{DynamicResource Brush.Window}">
<Border BorderThickness="1" BorderBrush="{DynamicResource Brush.Border1}" Margin="8">
<v:ImageSwipeControl OldImage="{Binding Old}"
NewImage="{Binding New}"
Expand Down Expand Up @@ -118,8 +118,8 @@
<TextBlock Grid.Column="5" Text="{Binding NewFileSize, Converter={x:Static c:LongConverters.ToFileSize}}" Foreground="{DynamicResource Brush.FG2}" Margin="16,0,0,0"/>
</Grid>

<Border Grid.Row="1" Margin="0,12,0,0" HorizontalAlignment="Center" Effect="drop-shadow(0 0 8 #A0000000)">
<Border Background="{DynamicResource Brush.Window}">
<Border Grid.Row="1" Margin="0,12,0,0" HorizontalAlignment="Center">
<Border BoxShadow="0 0 8 0 #A0000000" Background="{DynamicResource Brush.Window}">
<Border BorderThickness="1" BorderBrush="{DynamicResource Brush.Border1}" Margin="8">
<v:ImageBlendControl Alpha="{Binding #ImageBlendSlider.Value}"
OldImage="{Binding Old}"
Expand Down Expand Up @@ -179,8 +179,8 @@
<TextBlock Grid.Column="5" Text="{Binding NewFileSize, Converter={x:Static c:LongConverters.ToFileSize}}" Foreground="{DynamicResource Brush.FG2}" Margin="16,0,0,0"/>
</Grid>

<Border Grid.Row="1" Margin="0,12,0,0" HorizontalAlignment="Center" Effect="drop-shadow(0 0 8 #A0000000)">
<Border Background="{DynamicResource Brush.Window}">
<Border Grid.Row="1" Margin="0,12,0,0" HorizontalAlignment="Center">
<Border BoxShadow="0 0 8 0 #A0000000" Background="{DynamicResource Brush.Window}">
<Border BorderThickness="1" BorderBrush="{DynamicResource Brush.Border1}" Margin="8">
<v:ImageDifferenceControl Alpha="{Binding #ImageDifferenceSlider.Value}"
OldImage="{Binding Old}"
Expand Down
4 changes: 2 additions & 2 deletions src/Views/Launcher.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@
Background="Transparent"
IsVisible="{Binding CommandPalette, Converter={x:Static ObjectConverters.IsNotNull}}"
PointerPressed="OnCloseCommandPalette">
<Border Width="420" HorizontalAlignment="Center" VerticalAlignment="Center" Effect="drop-shadow(0 0 12 #60000000)">
<Border Background="{DynamicResource Brush.Popup}"
<Border Width="420" HorizontalAlignment="Center" VerticalAlignment="Center">
<Border BoxShadow="0 0 12 0 #60000000" Background="{DynamicResource Brush.Popup}"
BorderThickness="1" BorderBrush="{DynamicResource Brush.PopupBorder}"
CornerRadius="8">
<ContentControl Margin="16,10,16,12" Content="{Binding CommandPalette}">
Expand Down
7 changes: 3 additions & 4 deletions src/Views/LauncherPage.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,8 @@
<!-- Popup -->
<Grid Grid.Row="0" Margin="6,0,6,6">
<Border Background="Transparent"
Effect="drop-shadow(0 0 8 #8F000000)"
IsVisible="{Binding Popup, Converter={x:Static ObjectConverters.IsNotNull}}">
<Border Background="{DynamicResource Brush.Popup}"
<Border BoxShadow="0 0 8 0 #8F000000" Background="{DynamicResource Brush.Popup}"
BorderThickness="1,0,1,1" BorderBrush="{DynamicResource Brush.PopupBorder}"
CornerRadius="0,0,8,8">
<ContentControl x:Name="PopupPanel" Content="{Binding Popup}" KeyboardNavigation.TabNavigation="Cycle">
Expand Down Expand Up @@ -184,8 +183,8 @@
<ItemsControl ItemsSource="{Binding Notifications}">
<ItemsControl.ItemTemplate>
<DataTemplate DataType="m:Notification">
<Border Margin="6" HorizontalAlignment="Stretch" VerticalAlignment="Top" Effect="drop-shadow(0 0 8 #80000000)">
<Border Padding="8" CornerRadius="6" Background="{DynamicResource Brush.Popup}" BorderThickness="1" BorderBrush="{DynamicResource Brush.PopupBorder}">
<Border Margin="6" HorizontalAlignment="Stretch" VerticalAlignment="Top">
<Border BoxShadow="0 0 8 0 #80000000" Padding="8" CornerRadius="6" Background="{DynamicResource Brush.Popup}" BorderThickness="1" BorderBrush="{DynamicResource Brush.PopupBorder}">
<Grid RowDefinitions="26,Auto">
<Grid Grid.Row="0" ColumnDefinitions="Auto,*,Auto,Auto" Margin="8,0">
<Path Grid.Column="0" Width="14" Height="14" Data="{StaticResource Icons.Error}" Fill="Red" IsVisible="{Binding IsError}"/>
Expand Down
3 changes: 1 addition & 2 deletions src/Views/MergeConflictEditor.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -317,13 +317,12 @@
</Grid>

<!-- Error -->
<Border Grid.Row="2"
<Border BoxShadow="0 0 12 0 #60000000" Grid.Row="2"
Background="{DynamicResource Brush.Popup}"
BorderThickness="1" BorderBrush="{DynamicResource Brush.PopupBorder}"
Padding="16"
CornerRadius="6"
HorizontalAlignment="Center" VerticalAlignment="Center"
Effect="drop-shadow(0 0 12 #60000000)"
IsVisible="{Binding Error, Converter={x:Static StringConverters.IsNotNullOrEmpty}}">
<StackPanel Orientation="Vertical">
<Path Width="32" Height="32" Fill="Orange" Data="{StaticResource Icons.Error}"/>
Expand Down
4 changes: 2 additions & 2 deletions src/Views/Repository.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -865,8 +865,8 @@
</Border>

<!-- Auto-Fetch Notification -->
<Border Padding="12" HorizontalAlignment="Center" VerticalAlignment="Center" Effect="drop-shadow(0 0 12 #A0000000)" IsVisible="{Binding IsAutoFetching}">
<Border Background="{DynamicResource Brush.Popup}" CornerRadius="6" BorderThickness="1" BorderBrush="{DynamicResource Brush.PopupBorder}">
<Border Padding="12" HorizontalAlignment="Center" VerticalAlignment="Center" IsVisible="{Binding IsAutoFetching}">
<Border BoxShadow="0 0 12 0 #A0000000" Background="{DynamicResource Brush.Popup}" CornerRadius="6" BorderThickness="1" BorderBrush="{DynamicResource Brush.PopupBorder}">
<StackPanel Orientation="Vertical" Margin="16,8">
<TextBlock Text="{DynamicResource Text.Repository.AutoFetching}"/>
<ProgressBar Margin="0,8,0,0"
Expand Down
4 changes: 2 additions & 2 deletions src/Views/RevisionFileContentViewer.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@

<DataTemplate DataType="m:RevisionImageFile">
<Grid RowDefinitions="*,Auto" Margin="0,8" VerticalAlignment="Center" HorizontalAlignment="Center">
<Border Grid.Row="0" HorizontalAlignment="Center" Effect="drop-shadow(0 0 8 #A0000000)">
<Border Background="{DynamicResource Brush.Window}">
<Border Grid.Row="0" HorizontalAlignment="Center">
<Border BoxShadow="0 0 8 0 #A0000000" Background="{DynamicResource Brush.Window}">
<Border BorderThickness="1" BorderBrush="{DynamicResource Brush.Border1}" Margin="8">
<v:ImageView Image="{Binding Image}"/>
</Border>
Expand Down
4 changes: 2 additions & 2 deletions src/Views/RevisionFiles.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
</MultiBinding>
</Popup.IsOpen>

<Border Margin="8" VerticalAlignment="Top" Effect="drop-shadow(0 0 8 #80000000)">
<Border Padding="4"
<Border Margin="8" VerticalAlignment="Top">
<Border BoxShadow="0 0 8 0 #80000000" Padding="4"
CornerRadius="4"
Background="{DynamicResource Brush.Popup}"
BorderThickness="1" BorderBrush="{DynamicResource Brush.PopupBorder}">
Expand Down
5 changes: 2 additions & 3 deletions src/Views/SSHKeyHelper.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,8 @@
<DataTemplate DataType="vm:SSHKeyGenerator">
<Grid Background="Transparent">
<Border HorizontalAlignment="Center" VerticalAlignment="Top"
Background="Transparent"
Effect="drop-shadow(0 0 8 #8F000000)">
<Border Width="500"
Background="Transparent">
<Border BoxShadow="0 0 8 0 #8F000000" Width="500"
Background="{DynamicResource Brush.Popup}"
BorderThickness="1,0,1,1" BorderBrush="{DynamicResource Brush.PopupBorder}"
CornerRadius="0,0,8,8">
Expand Down
2 changes: 1 addition & 1 deletion src/Views/SelfUpdate.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,8">
<Path Width="14" Height="14" Data="{StaticResource Icons.Info}" Fill="Green"/>
<TextBlock Margin="8,0,0,0" FontWeight="Bold" FontSize="14" Text="{DynamicResource Text.SelfUpdate.Available}"/>
<Border Margin="4,0,0,0" Height="20" CornerRadius="10" Background="{DynamicResource Brush.Accent}" Effect="drop-shadow(0 0 6 #40000000)">
<Border BoxShadow="0 0 6 0 #40000000" Margin="4,0,0,0" Height="20" CornerRadius="10" Background="{DynamicResource Brush.Accent}">
<TextBlock Margin="8,0" Text="{Binding TagName}" FontSize="12" Foreground="White"/>
</Border>
</StackPanel>
Expand Down
3 changes: 1 addition & 2 deletions src/Views/Statistics.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,9 @@
ClipToBounds="False">
<ContentControl.DataTemplates>
<DataTemplate DataType="v:PieChartToolTip">
<Border BorderThickness="1"
<Border BoxShadow="0 0 12 0 #80000000" BorderThickness="1"
BorderBrush="{DynamicResource Brush.PopupBorder}"
Background="{DynamicResource Brush.Popup}"
Effect="drop-shadow(0 0 12 #80000000)"
CornerRadius="4">
<StackPanel Margin="8" Orientation="Vertical">
<StackPanel Orientation="Horizontal">
Expand Down
8 changes: 7 additions & 1 deletion src/Views/TextDiffView.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,13 @@
</ContentControl.DataTemplates>
</ContentControl>

<StackPanel x:Name="Popup" IsVisible="False" Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Right" Effect="drop-shadow(0 0 8 #80000000)">
<StackPanel x:Name="Popup" IsVisible="False" Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Right">
<StackPanel.Styles>
<Style Selector="Button.flat /template/ Border#PART_Border">
<Setter Property="BoxShadow" Value="0 0 8 0 #80000000"/>
</Style>
</StackPanel.Styles>

<Button Classes="flat" x:Name="BtnStageChunk" BorderBrush="{DynamicResource Brush.FlatButton.FloatingBorder}" Click="OnStageChunk" IsVisible="{Binding Option.IsUnstaged}">
<TextBlock>
<Run Text="{DynamicResource Text.Hunk.Stage}"/>
Expand Down
Loading