|
24 | 24 | <local:CompressionLevelAbbreviatedConverter x:Key="CompressionLevelAbbreviatedConverter"/>
|
25 | 25 | <local:ConfidenceIntToColorConverter x:Key="ConfidenceIntToColorConverter"/>
|
26 | 26 | <local:ConfidenceIntToStringConverter x:Key="ConfidenceIntToStringConverter"/>
|
| 27 | + <local:WikiCompressionLevelAbbreviatedConverter x:Key="WikiCompressionLevelAbbreviatedConverter" /> |
| 28 | + <local:RatioConverter x:Key="RatioConverter" /> |
| 29 | + <local:NonZeroToVisConverter x:Key="NonZeroToVisConverter" /> |
27 | 30 |
|
28 |
| - </ResourceDictionary> |
| 31 | + </ResourceDictionary> |
29 | 32 |
|
30 | 33 | </Window.Resources>
|
31 | 34 |
|
|
790 | 793 | <TextBlock x:Name="LeftLabel" Text="current size" FontFamily="Segoe UI Semibold" FontSize="17" Foreground="#BAC2CA" HorizontalAlignment="Center"/>
|
791 | 794 | </StackPanel>
|
792 | 795 |
|
793 |
| - <StackPanel Orientation="Vertical" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center"> |
794 |
| - <TextBlock Text="{Binding ActiveFolder.CompressedBytes, Converter={StaticResource BytesToReadableConverter}}" d:Text="29.7 GB" FontFamily="Segoe UI Semibold" FontSize="31" Foreground="White" HorizontalAlignment="Center"/> |
795 |
| - <TextBlock x:Name="RightLabel" Text="estimated size" FontFamily="Segoe UI Semibold" FontSize="17" Foreground="#BAC2CA" HorizontalAlignment="Center"/> |
| 796 | + <StackPanel Orientation="Vertical" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center" Cursor="Help"> |
| 797 | + <TextBlock Text="{Binding ActiveFolder.CompressedBytes, Converter={StaticResource BytesToReadableConverter}}" d:Text="29.7 GB" FontFamily="Segoe UI Semibold" FontSize="31" Foreground="White" HorizontalAlignment="Center"/> |
| 798 | + <TextBlock x:Name="RightLabel" Text="estimated size" FontFamily="Segoe UI Semibold" FontSize="17" Foreground="#BAC2CA" HorizontalAlignment="Center"/> |
| 799 | + <StackPanel.ToolTip> |
| 800 | + <ToolTip Visibility="{Binding ActiveFolder.WikiCompressionResults.Count, Converter={StaticResource NonZeroToVisConverter}}" > |
| 801 | + <ToolTip.Resources> |
| 802 | + <Style TargetType="ToolTip"> |
| 803 | + <Setter Property="ContentTemplate"> |
| 804 | + <Setter.Value> |
| 805 | + <DataTemplate> |
| 806 | + <Border BorderBrush="Gray" Padding="10" |
| 807 | + BorderThickness="1" Background="White" CornerRadius="5"> |
| 808 | + |
| 809 | + <ContentPresenter Content="{Binding}" /> |
| 810 | + </Border> |
| 811 | + </DataTemplate> |
| 812 | + </Setter.Value> |
| 813 | + </Setter> |
| 814 | + <Setter Property="MaxWidth" |
| 815 | + Value="400" /> |
| 816 | + <Setter Property="Width" |
| 817 | + Value="400" /> |
| 818 | + <Setter Property="Background" |
| 819 | + Value="Transparent" /> |
| 820 | + <Setter Property="BorderThickness" |
| 821 | + Value="0" /> |
| 822 | + </Style> |
| 823 | + |
| 824 | + </ToolTip.Resources> |
| 825 | + <Grid > |
| 826 | + <Grid.RowDefinitions> |
| 827 | + <RowDefinition Height="30" /> |
| 828 | + <RowDefinition Height="auto" /> |
| 829 | + </Grid.RowDefinitions> |
| 830 | + |
| 831 | + <StackPanel VerticalAlignment="Center" Orientation="Horizontal" |
| 832 | + Grid.Row="0"> |
| 833 | + |
| 834 | + <TextBlock Text="Algorithm" FontFamily="Segoe UI " FontSize="13" Foreground="#4A4A4A" Width="110" Margin="10,0" /> |
| 835 | + <TextBlock Text="Before" TextAlignment="Right" FontFamily="Segoe UI " FontSize="13" Foreground="#4A4A4A" Width="60"/> |
| 836 | + <TextBlock Text="After" TextAlignment="Right" FontFamily="Segoe UI " FontSize="13" Foreground="#4A4A4A" Width="80"/> |
| 837 | + <TextBlock Text="%Saved" TextAlignment="Right" FontFamily="Segoe UI " FontSize="13" Foreground="#4A4A4A" Width="80"/> |
| 838 | + </StackPanel> |
| 839 | + |
| 840 | + <ListView Grid.Row="1" ItemsSource="{Binding ActiveFolder.WikiCompressionResults}" |
| 841 | + HorizontalAlignment="Left" HorizontalContentAlignment="Left" |
| 842 | + Background="Transparent" |
| 843 | + BorderThickness="0" |
| 844 | + Foreground="White" |
| 845 | + FontFamily="Segoe UI" |
| 846 | + FontSize="13" |
| 847 | + ScrollViewer.HorizontalScrollBarVisibility="Disabled" |
| 848 | + ScrollViewer.VerticalScrollBarVisibility="Disabled"> |
| 849 | + <ListView.ItemTemplate> |
| 850 | + <DataTemplate> |
| 851 | + |
| 852 | + <StackPanel > |
| 853 | + <StackPanel Orientation="Horizontal"> |
| 854 | + <Grid Margin="0,0,40,0" Height="30" > |
| 855 | + |
| 856 | + <Grid.ColumnDefinitions> |
| 857 | + <ColumnDefinition Width="50" /> |
| 858 | + <ColumnDefinition Width="auto" /> |
| 859 | + </Grid.ColumnDefinitions> |
| 860 | + |
| 861 | + <Border Grid.Column="0" |
| 862 | + Grid.ColumnSpan="2" |
| 863 | + CornerRadius="4" |
| 864 | + Background="#C03f4758" Margin="0" Padding="0" /> |
| 865 | + |
| 866 | + <TextBlock VerticalAlignment="Center" Grid.Column="0" Text="{Binding CompType, Converter={StaticResource WikiCompressionLevelAbbreviatedConverter}}" Margin="7,0,5,0" FontFamily="Segoe UI Semibold" FontSize="14" Foreground="White"/> |
| 867 | + |
| 868 | + <Border Grid.Column="1" CornerRadius="4" Width="30" |
| 869 | + HorizontalAlignment="Center" Margin="0,0,-1,0" |
| 870 | + Background="#3f4758" Padding="2,0"> |
| 871 | + <TextBlock VerticalAlignment="Center" Text="{Binding TotalResults}" |
| 872 | + TextAlignment="Center" Foreground="White" |
| 873 | + FontFamily="Segoe UI Semibold" |
| 874 | + Padding="0,2,0,0" FontSize="12"/> |
| 875 | + </Border> |
| 876 | + |
| 877 | + |
| 878 | + </Grid> |
796 | 879 |
|
| 880 | + |
| 881 | + <TextBlock VerticalAlignment="Center" Text="{Binding BeforeBytes, Converter={StaticResource BytesToReadableConverter}}" TextAlignment="Right" Width="60" Margin="0,0,10,0"/> |
| 882 | + <TextBlock VerticalAlignment="Center" Text="{Binding AfterBytes, Converter={StaticResource BytesToReadableConverter}}" TextAlignment="Right" Width="70" Margin="0,0,10,0"/> |
| 883 | + <TextBlock VerticalAlignment="Center" TextAlignment="Right" Width="70" Margin="0,0,10,0"> |
| 884 | + <TextBlock.Text> |
| 885 | + <MultiBinding Converter="{StaticResource RatioConverter}"> |
| 886 | + <Binding Path="AfterBytes" /> |
| 887 | + <Binding Path="BeforeBytes" /> |
| 888 | + </MultiBinding> |
| 889 | + </TextBlock.Text> |
| 890 | + </TextBlock> |
| 891 | + </StackPanel> |
797 | 892 | </StackPanel>
|
| 893 | + </DataTemplate> |
| 894 | + </ListView.ItemTemplate> |
| 895 | +</ListView> |
| 896 | + |
| 897 | + </Grid> |
| 898 | + </ToolTip> |
| 899 | + |
| 900 | + |
| 901 | + |
| 902 | + |
| 903 | + </StackPanel.ToolTip> |
| 904 | + </StackPanel> |
798 | 905 | <Grid Margin="0,3,0,0" x:Name="Confidence" Grid.Column="3" Grid.Row="1" Grid.ColumnSpan="1" HorizontalAlignment="Center" Width="110">
|
799 | 906 | <TextBlock HorizontalAlignment="Left" Text="confidence" FontFamily="Segoe UI " FontSize="13" Foreground="#50BAC2CA" />
|
800 | 907 | <TextBlock HorizontalAlignment="Right" Text="{Binding ActiveFolder.CompressionConfidence, Converter={StaticResource ConfidenceIntToStringConverter}}" FontFamily="Segoe UI SemiBold" FontSize="13" Foreground="{Binding ActiveFolder.CompressionConfidence, Converter={StaticResource ConfidenceIntToColorConverter}}" />
|
|
0 commit comments