|
4 | 4 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
5 | 5 | x:Class="MiniWebCompiler.Views.MainWindow" |
6 | 6 | Title="Mini Web Compiler" |
7 | | - Height="300" Width="800" |
| 7 | + Height="300" Width="900" |
8 | 8 | Cursor="{Binding Cursor}" |
9 | 9 | DataContextChanged="Window_DataContextChanged" |
10 | 10 | StateChanged="Window_StateChanged" |
|
19 | 19 | <ColumnDefinition Width="20"/> |
20 | 20 | <ColumnDefinition Width="{Binding FilesListWidth, Mode=TwoWay}"/> |
21 | 21 | <ColumnDefinition Width="20"/> |
22 | | - <ColumnDefinition Width="3*"/> |
| 22 | + <ColumnDefinition Width="*"/> |
23 | 23 | </Grid.ColumnDefinitions> |
24 | 24 |
|
25 | 25 | <Grid Grid.Column="0"> |
|
120 | 120 | <ColumnDefinition Width="*"/> |
121 | 121 | <ColumnDefinition Width="Auto"/> |
122 | 122 | <ColumnDefinition Width="Auto" SharedSizeGroup="Size"/> |
| 123 | + <ColumnDefinition Width="Auto" SharedSizeGroup="SizeDiff"/> |
123 | 124 | </Grid.ColumnDefinitions> |
124 | 125 | <Ellipse Width="10" Height="10" VerticalAlignment="Center"> |
125 | 126 | <Ellipse.Style> |
|
139 | 140 | <TextBlock Grid.Column="1" Margin="6,0,0,0" Text="{Binding FilePath}"/> |
140 | 141 | <TextBlock Grid.Column="2" Margin="10,0,0,0" Text="{Binding LastCompileTimeStr}" Opacity="0.6" ToolTip="Last compile time"/> |
141 | 142 | <TextBlock Grid.Column="3" HorizontalAlignment="Right" Margin="10,0,0,0" Text="{Binding CompressedResultSizeStr}" Opacity="0.6" ToolTip="GZip-compressed file size"/> |
| 143 | + <TextBlock Grid.Column="4" HorizontalAlignment="Right" Margin="4,0,0,0" Text="{Binding CompressedResultSizeDiffStr}" Opacity="0.6" ToolTip="Difference to baseline" Visibility="{Binding BaselineSetVisibility}"/> |
142 | 144 | </Grid> |
143 | 145 | </DataTemplate> |
144 | 146 | </ListBox.ItemTemplate> |
|
151 | 153 | <Path Margin="0,3" Width="10" Height="10" Fill="Black" Data="M0,4 L10,4 10,6 0,6 z"/> |
152 | 154 | </Button> |
153 | 155 | <Button Margin="6,0,0,0" MinWidth="75" IsEnabled="{Binding IsProjectSelected}" Command="{Binding SelectedProject.CompileAllCommand}">Compile all</Button> |
| 156 | + <ToggleButton Margin="6,0,0,0" IsEnabled="{Binding IsProjectSelected}" IsChecked="{Binding SelectedProject.HasBaseline}">Baseline</ToggleButton> |
154 | 157 | </StackPanel> |
155 | 158 | </Grid> |
156 | 159 |
|
|
0 commit comments