|
7 | 7 | x:Class="GitContentSearch.UI.Views.MainWindow" |
8 | 8 | x:DataType="vm:MainWindowViewModel" |
9 | 9 | Icon="/Assets/gitcontentsearch.ico" |
10 | | - Title="Git Content Search"> |
| 10 | + Title="Git Content Search" |
| 11 | + MinWidth="700" |
| 12 | + MinHeight="600" |
| 13 | + WindowStartupLocation="CenterScreen"> |
11 | 14 |
|
12 | 15 | <Design.DataContext> |
13 | 16 | <vm:MainWindowViewModel/> |
14 | 17 | </Design.DataContext> |
15 | 18 |
|
16 | | - <Grid Margin="20" RowDefinitions="Auto,Auto,Auto,Auto,Auto,Auto,Auto,*"> |
| 19 | + <Grid Margin="24" RowDefinitions="Auto,Auto,Auto,Auto,Auto,Auto,Auto,*"> |
17 | 20 | <!-- File Path --> |
18 | | - <Grid Grid.Row="0" ColumnDefinitions="Auto,*,Auto" Margin="0,5"> |
19 | | - <TextBlock Grid.Column="0" Text="File Path:" VerticalAlignment="Center" Width="120"/> |
20 | | - <TextBox Grid.Column="1" Text="{Binding FilePath}" Margin="5,0"/> |
21 | | - <Button Grid.Column="2" Content="Browse" Command="{Binding BrowseFilePathCommand}" Margin="5,0"/> |
| 21 | + <Grid Grid.Row="0" ColumnDefinitions="Auto,*,Auto" Margin="0,8"> |
| 22 | + <TextBlock Grid.Column="0" Text="File Path" VerticalAlignment="Center" Width="140" FontWeight="Medium"/> |
| 23 | + <TextBox Grid.Column="1" Text="{Binding FilePath}" Margin="8,0"/> |
| 24 | + <Button Grid.Column="2" |
| 25 | + Classes="Secondary" |
| 26 | + Content="Browse" |
| 27 | + Command="{Binding BrowseFilePathCommand}" |
| 28 | + Margin="8,0"/> |
22 | 29 | </Grid> |
23 | 30 |
|
24 | 31 | <!-- Search String --> |
25 | | - <Grid Grid.Row="1" ColumnDefinitions="Auto,*" Margin="0,5"> |
26 | | - <TextBlock Grid.Column="0" Text="Search String:" VerticalAlignment="Center" Width="120"/> |
27 | | - <TextBox Grid.Column="1" Text="{Binding SearchString}" Margin="5,0"/> |
| 32 | + <Grid Grid.Row="1" ColumnDefinitions="Auto,*" Margin="0,8"> |
| 33 | + <TextBlock Grid.Column="0" Text="Search String" VerticalAlignment="Center" Width="140" FontWeight="Medium"/> |
| 34 | + <TextBox Grid.Column="1" Text="{Binding SearchString}" Margin="8,0"/> |
28 | 35 | </Grid> |
29 | 36 |
|
30 | 37 | <!-- Commit Range --> |
31 | | - <Grid Grid.Row="2" ColumnDefinitions="Auto,*,Auto,*" Margin="0,5"> |
32 | | - <TextBlock Grid.Column="0" Text="Earliest Commit:" VerticalAlignment="Center" Width="120"/> |
33 | | - <TextBox Grid.Column="1" Text="{Binding EarliestCommit}" Margin="5,0"/> |
34 | | - <TextBlock Grid.Column="2" Text="Latest Commit:" VerticalAlignment="Center" Margin="10,0"/> |
35 | | - <TextBox Grid.Column="3" Text="{Binding LatestCommit}" Margin="5,0"/> |
| 38 | + <Grid Grid.Row="2" ColumnDefinitions="Auto,*,Auto,*" Margin="0,8"> |
| 39 | + <TextBlock Grid.Column="0" Text="Earliest Commit" VerticalAlignment="Center" Width="140" FontWeight="Medium"/> |
| 40 | + <TextBox Grid.Column="1" Text="{Binding EarliestCommit}" Margin="8,0"/> |
| 41 | + <TextBlock Grid.Column="2" Text="Latest Commit" VerticalAlignment="Center" Margin="16,0" FontWeight="Medium"/> |
| 42 | + <TextBox Grid.Column="3" Text="{Binding LatestCommit}" Margin="8,0"/> |
36 | 43 | </Grid> |
37 | 44 |
|
38 | 45 | <!-- Working Directory --> |
39 | | - <Grid Grid.Row="3" ColumnDefinitions="Auto,*,Auto" Margin="0,5"> |
40 | | - <TextBlock Grid.Column="0" Text="Working Directory:" VerticalAlignment="Center" Width="120"/> |
41 | | - <TextBox Grid.Column="1" Text="{Binding WorkingDirectory}" Margin="5,0"/> |
42 | | - <Button Grid.Column="2" Content="Browse" Command="{Binding BrowseWorkingDirectoryCommand}" Margin="5,0"/> |
| 46 | + <Grid Grid.Row="3" ColumnDefinitions="Auto,*,Auto" Margin="0,8"> |
| 47 | + <TextBlock Grid.Column="0" Text="Working Directory" VerticalAlignment="Center" Width="140" FontWeight="Medium"/> |
| 48 | + <TextBox Grid.Column="1" Text="{Binding WorkingDirectory}" Margin="8,0"/> |
| 49 | + <Button Grid.Column="2" |
| 50 | + Classes="Secondary" |
| 51 | + Content="Browse" |
| 52 | + Command="{Binding BrowseWorkingDirectoryCommand}" |
| 53 | + Margin="8,0"/> |
43 | 54 | </Grid> |
44 | 55 |
|
45 | 56 | <!-- Log Directory --> |
46 | | - <Grid Grid.Row="4" ColumnDefinitions="Auto,*,Auto" Margin="0,5"> |
47 | | - <TextBlock Grid.Column="0" Text="Log Directory:" VerticalAlignment="Center" Width="120"/> |
48 | | - <TextBox Grid.Column="1" Text="{Binding LogDirectory}" Margin="5,0"/> |
49 | | - <Button Grid.Column="2" Content="Browse" Command="{Binding BrowseLogDirectoryCommand}" Margin="5,0"/> |
| 57 | + <Grid Grid.Row="4" ColumnDefinitions="Auto,*,Auto" Margin="0,8"> |
| 58 | + <TextBlock Grid.Column="0" Text="Log Directory" VerticalAlignment="Center" Width="140" FontWeight="Medium"/> |
| 59 | + <TextBox Grid.Column="1" Text="{Binding LogDirectory}" Margin="8,0"/> |
| 60 | + <Button Grid.Column="2" |
| 61 | + Classes="Secondary" |
| 62 | + Content="Browse" |
| 63 | + Command="{Binding BrowseLogDirectoryCommand}" |
| 64 | + Margin="8,0"/> |
50 | 65 | </Grid> |
51 | 66 |
|
52 | 67 | <!-- Options --> |
53 | | - <StackPanel Grid.Row="5" Orientation="Horizontal" Margin="0,10"> |
54 | | - <CheckBox Content="Disable Linear Search" IsChecked="{Binding DisableLinearSearch}" Margin="120,0,20,0"/> |
55 | | - <CheckBox Content="Follow History" IsChecked="{Binding FollowHistory}"/> |
56 | | - </StackPanel> |
| 68 | + <Grid Grid.Row="5" ColumnDefinitions="Auto,*" Margin="0,8"> |
| 69 | + <TextBlock Grid.Column="0" Text="Options" VerticalAlignment="Center" Width="140" FontWeight="Medium"/> |
| 70 | + <StackPanel Grid.Column="1" Orientation="Horizontal" Margin="8,0"> |
| 71 | + <CheckBox Content="Disable Linear Search" IsChecked="{Binding DisableLinearSearch}" Margin="0,0,24,0"/> |
| 72 | + <CheckBox Content="Follow History" IsChecked="{Binding FollowHistory}"/> |
| 73 | + </StackPanel> |
| 74 | + </Grid> |
57 | 75 |
|
58 | 76 | <!-- Search Button and Progress --> |
59 | | - <Grid Grid.Row="6" Margin="0,10"> |
| 77 | + <Grid Grid.Row="6" Margin="0,8"> |
60 | 78 | <Grid.ColumnDefinitions> |
61 | 79 | <ColumnDefinition Width="120"/> |
62 | 80 | <ColumnDefinition Width="*"/> |
63 | 81 | </Grid.ColumnDefinitions> |
64 | 82 | <Button Grid.Column="0" |
| 83 | + Classes="Primary" |
65 | 84 | Content="Start Search" |
66 | 85 | Command="{Binding StartSearchCommand}"/> |
67 | 86 | <ProgressBar Grid.Column="1" |
| 87 | + Height="4" |
68 | 88 | Value="{Binding SearchProgress}" |
69 | 89 | IsVisible="{Binding IsSearching}" |
70 | | - Margin="5,0"/> |
| 90 | + Margin="8,0"/> |
71 | 91 | </Grid> |
72 | 92 |
|
73 | 93 | <!-- Log Output --> |
74 | 94 | <Border Grid.Row="7" |
75 | | - BorderBrush="Gray" |
| 95 | + BorderBrush="#3A3B3F" |
76 | 96 | BorderThickness="1" |
77 | | - Margin="0,10"> |
78 | | - <ScrollViewer> |
| 97 | + CornerRadius="8" |
| 98 | + Margin="0,16,0,0"> |
| 99 | + <ScrollViewer Margin="8"> |
79 | 100 | <ItemsControl ItemsSource="{Binding LogOutput}"> |
80 | 101 | <ItemsControl.ItemTemplate> |
81 | 102 | <DataTemplate> |
82 | | - <TextBlock Text="{Binding}" TextWrapping="Wrap"/> |
| 103 | + <TextBlock Text="{Binding}" |
| 104 | + TextWrapping="Wrap" |
| 105 | + Foreground="#CCCCCC" |
| 106 | + FontFamily="Consolas" |
| 107 | + Margin="0,2"/> |
83 | 108 | </DataTemplate> |
84 | 109 | </ItemsControl.ItemTemplate> |
85 | 110 | </ItemsControl> |
|
0 commit comments