2022-01-11 04:18:35 -08:00
|
|
|
<controls:Window
|
|
|
|
x:Class="SourceGit.Views.Statistics"
|
|
|
|
x:Name="me"
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:controls="clr-namespace:SourceGit.Views.Controls"
|
2022-01-12 02:38:03 -08:00
|
|
|
xmlns:widgets="clr-namespace:SourceGit.Views.Widgets"
|
2022-01-11 04:18:35 -08:00
|
|
|
mc:Ignorable="d"
|
|
|
|
Title="Statistics"
|
|
|
|
Height="450" Width="600"
|
|
|
|
WindowStartupLocation="CenterOwner" ResizeMode="NoResize">
|
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="28"/>
|
|
|
|
<RowDefinition Height="1"/>
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
<!-- Title Bar -->
|
|
|
|
<Grid Grid.Row="0" Background="{DynamicResource Brush.TitleBar}">
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
<!-- Icon -->
|
|
|
|
<Path Grid.Column="0" Margin="6,0" Width="16" Height="16" Data="{StaticResource Icon.Statistics}"/>
|
|
|
|
|
|
|
|
<!-- Title -->
|
|
|
|
<TextBlock Grid.Column="1" Text="{DynamicResource Text.Statistics}"/>
|
|
|
|
|
|
|
|
<!-- Window Commands -->
|
|
|
|
<StackPanel Grid.Column="3" Orientation="Horizontal" WindowChrome.IsHitTestVisibleInChrome="True">
|
|
|
|
<controls:IconButton Click="Quit" Width="28" Padding="9" Icon="{StaticResource Icon.Close}" HoverBackground="Red" Opacity="1"/>
|
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
<Rectangle
|
|
|
|
Grid.Row="1"
|
|
|
|
Height="1"
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
Fill="{DynamicResource Brush.Border0}"/>
|
|
|
|
|
|
|
|
<!-- Contents -->
|
|
|
|
<TabControl
|
|
|
|
Grid.Row="2"
|
|
|
|
Margin="8"
|
|
|
|
Style="{DynamicResource Style.TabControl.MiddleSwitch}">
|
|
|
|
<TabItem Header="{DynamicResource Text.Statistics.ThisWeek}">
|
2022-01-12 02:38:03 -08:00
|
|
|
<widgets:StatisticsPage x:Name="pageWeek"/>
|
2022-01-11 04:18:35 -08:00
|
|
|
</TabItem>
|
|
|
|
<TabItem Header="{DynamicResource Text.Statistics.ThisMonth}">
|
2022-01-12 02:38:03 -08:00
|
|
|
<widgets:StatisticsPage x:Name="pageMonth"/>
|
|
|
|
</TabItem>
|
|
|
|
<TabItem Header="{DynamicResource Text.Statistics.ThisYear}">
|
|
|
|
<widgets:StatisticsPage x:Name="pageYear"/>
|
2022-01-11 04:18:35 -08:00
|
|
|
</TabItem>
|
|
|
|
</TabControl>
|
|
|
|
|
|
|
|
<!-- Loading -->
|
|
|
|
<controls:Loading Grid.Row="2" x:Name="loading" Width="48" Height="48" IsAnimating="True"/>
|
|
|
|
</Grid>
|
|
|
|
</controls:Window>
|