|
1 | 1 | <Window x:Class="LogSearchApp.MainWindow"
|
2 | 2 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
3 | 3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
4 |
| - Title="Log Search" Height="414" Width="715"> |
| 4 | + Title="Log Search" Height="584" Width="803"> |
5 | 5 | <Window.Resources>
|
6 | 6 | <Style x:Key="SearchTextBoxStyle" TargetType="TextBox">
|
| 7 | + <Setter Property="Background" Value="#FF748260"/> |
| 8 | + <Setter Property="BorderThickness" Value="1"/> |
| 9 | + <Setter Property="BorderBrush" Value="DarkGreen"/> |
| 10 | + <Setter Property="Foreground" Value="Black"/> |
7 | 11 | <Setter Property="Template">
|
8 | 12 | <Setter.Value>
|
9 | 13 | <ControlTemplate TargetType="TextBox">
|
|
15 | 19 | </Setter>
|
16 | 20 | </Style>
|
17 | 21 | </Window.Resources>
|
18 |
| - <Grid Background="#FF1D4C17" Margin="0,0,0,-6"> |
19 |
| - <TextBlock Text="Drag and drop your logs folder:" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="29,12,0,0" FontFamily="Arial Black" FontWeight="Bold" FontSize="14" Foreground="#FF15A55A" Width="324"/> |
| 22 | + <Grid Background="#FF121C27" Margin="0,0,0,-6"> |
| 23 | + <Grid.RowDefinitions> |
| 24 | + <RowDefinition Height="350*"/> |
| 25 | + <RowDefinition Height="*"/> |
| 26 | + <RowDefinition Height="143*"/> |
| 27 | + <RowDefinition Height="14*"/> |
| 28 | + </Grid.RowDefinitions> |
| 29 | + <TextBlock Text="Drag and drop your logs folder:" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="16,109,0,0" FontFamily="Segoe UI" FontWeight="Bold" FontSize="14" Foreground="#FF99BCD6" Width="324"/> |
20 | 30 |
|
21 |
| - <ListBox AllowDrop="True" Name="FolderListBox" HorizontalAlignment="Left" VerticalAlignment="Top" Width="376" Height="35" Margin="29,28,0,0" Drop="FolderListBox_Drop" Foreground="Black" Background="#FF748260"/> |
| 31 | + <ListBox AllowDrop="True" Name="FolderListBox" HorizontalAlignment="Left" VerticalAlignment="Top" Width="407" Height="59" Margin="14,133,0,0" Drop="FolderListBox_Drop" Background="#FF203746" Foreground="#FF99BCD6" FontWeight="Bold" FontStyle="Italic" SelectionChanged="FolderListBox_SelectionChanged" RenderTransformOrigin="0.5,0.5"> |
| 32 | + <ListBox.RenderTransform> |
| 33 | + <TransformGroup> |
| 34 | + <ScaleTransform/> |
| 35 | + <SkewTransform AngleY="0.147"/> |
| 36 | + <RotateTransform/> |
| 37 | + <TranslateTransform Y="0.497"/> |
| 38 | + </TransformGroup> |
| 39 | + </ListBox.RenderTransform> |
| 40 | + </ListBox> |
22 | 41 |
|
23 | 42 | <!-- Apply the SearchTextBoxStyle to the TextBox -->
|
24 |
| - <TextBox x:Name="SearchTextBox" HorizontalAlignment="Left" VerticalAlignment="Top" Width="376" Margin="29,92,0,0" Height="24" Foreground="Black" TextChanged="SearchTextBox_TextChanged"> |
25 |
| - <TextBox.Style> |
26 |
| - <Style TargetType="TextBox"> |
27 |
| - <Setter Property="BorderThickness" Value="1"/> |
28 |
| - <Setter Property="BorderBrush" Value="DarkGreen"/> |
29 |
| - </Style> |
30 |
| - </TextBox.Style> |
| 43 | + <TextBox x:Name="SearchTextBox" HorizontalAlignment="Left" VerticalAlignment="Top" Width="392" Margin="10,218,0,0" Height="24" TextChanged="SearchTextBox_TextChanged" FontFamily="Segoe UI" RenderTransformOrigin="0.501,1.556" BorderBrush="#FFA97F22" Foreground="Black" FontWeight="Bold" FontSize="14"> |
| 44 | + <TextBox.SelectionBrush> |
| 45 | + <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> |
| 46 | + <GradientStop Color="Black"/> |
| 47 | + <GradientStop Color="#FF983C3C" Offset="1"/> |
| 48 | + </LinearGradientBrush> |
| 49 | + </TextBox.SelectionBrush> |
31 | 50 | </TextBox>
|
32 | 51 |
|
33 |
| - <Button Content="Search" Click="Search_Click" HorizontalAlignment="Left" VerticalAlignment="Top" Width="75" Height="24" Margin="418,92,0,0" Background="#FF3F82F1"/> |
34 |
| - <Button Content="Clear" Click="Clear_Click" HorizontalAlignment="Left" VerticalAlignment="Top" Width="74" Height="25" Margin="498,92,0,0" Background="#FF3F82F1"/> |
35 |
| - <Button Content="ℹ️" Click="About_Click" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,10,10,0" Background="#FF3F82F1"/> |
36 |
| - <ProgressBar Name="SearchProgressBar" IsIndeterminate="True" Visibility="Collapsed" HorizontalAlignment="Left" VerticalAlignment="Top" Width="100" Height="10" Margin="29,120,0,0"/> |
37 |
| - <TextBlock Name="ResultCountTextBlock" HorizontalAlignment="Left" Margin="29,355,0,0" VerticalAlignment="Top" FontFamily="Arial" FontWeight="Bold" FontSize="14"/> |
| 52 | + <Button Content="Search" Click="Search_Click" HorizontalAlignment="Left" VerticalAlignment="Top" Width="75" Height="24" Margin="620,218,0,0" Background="#FF3F82F1" BorderBrush="Transparent" FontSize="14" Foreground="White" /> |
| 53 | + <Button Content="Clear" Click="Clear_Click" HorizontalAlignment="Left" VerticalAlignment="Top" Width="74" Height="25" Margin="700,218,0,0" Background="{DynamicResource {x:Static SystemColors.HotTrackBrushKey}}" BorderBrush="Transparent" FontSize="14" Foreground="White" /> |
| 54 | + <ProgressBar Name="SearchProgressBar" IsIndeterminate="True" Visibility="Collapsed" HorizontalAlignment="Left" VerticalAlignment="Top" Width="100" Height="10" Margin="680,86,0,0"/> |
| 55 | + <TextBlock Name="ResultCountTextBlock" HorizontalAlignment="Left" Margin="10,133,0,0" VerticalAlignment="Top" FontFamily="Segoe UI" FontWeight="Bold" FontSize="14" Width="168" Grid.Row="2" Foreground="#FF99BCD6"/> |
38 | 56 |
|
39 |
| - |
40 |
| - |
41 |
| - <ListView x:Name="ResultListView" HorizontalAlignment="Left" VerticalAlignment="Top" Width="651" Height="197" Margin="29,149,0,0"> |
| 57 | + <ListView x:Name="ResultListView" HorizontalAlignment="Left" VerticalAlignment="Top" Width="770" Height="264" Margin="10,247,0,0" Grid.RowSpan="3"> |
42 | 58 | <ListView.View>
|
43 | 59 | <GridView>
|
44 | 60 | <GridViewColumn Header="Sentence" Width="220" DisplayMemberBinding="{Binding Line}"/>
|
45 |
| - <GridViewColumn Header="File Name" Width="145" DisplayMemberBinding="{Binding FileName}"/> |
46 |
| - <GridViewColumn Header="File Path" Width="210" DisplayMemberBinding="{Binding Path}" /> |
| 61 | + <GridViewColumn Header="File Name" Width="235" DisplayMemberBinding="{Binding FileName}"/> |
| 62 | + <GridViewColumn Header="File Path" Width="235" DisplayMemberBinding="{Binding Path}" /> |
47 | 63 | <GridViewColumn Header="Line Number" Width="72" DisplayMemberBinding="{Binding LineNumber}"/>
|
48 | 64 | </GridView>
|
49 | 65 | </ListView.View>
|
50 | 66 | </ListView>
|
51 |
| - <Label Content="Input your keyword: " HorizontalAlignment="Left" Margin="29,68,0,0" VerticalAlignment="Top" FontFamily="Bookman Old Style" FontWeight="Bold" Foreground="#FF18903B" FontSize="14"/> |
| 67 | + <Label Content="Input your keyword: " HorizontalAlignment="Left" Margin="10,189,0,0" VerticalAlignment="Top" FontFamily="Segoe UI" FontWeight="Bold" Foreground="#FF99BCD6" FontSize="14"/> |
| 68 | + <Grid Grid.Row="0" Background="#171717" Margin="3,0,0,302"> |
| 69 | + <TextBlock Text="Log Search" VerticalAlignment="Top" |
| 70 | + Margin="10,10,543,0" |
| 71 | + FontSize="28" Foreground="White"/> |
| 72 | + |
| 73 | + <Button Content="❕" HorizontalAlignment="Right" |
| 74 | + VerticalAlignment="Top" |
| 75 | + Margin="0,10,10,0" |
| 76 | + Background="Transparent" BorderBrush="White" |
| 77 | + Foreground="White" FontSize="16" |
| 78 | + Click="About_Click" /> |
| 79 | + </Grid> |
52 | 80 | </Grid>
|
53 | 81 | </Window>
|
0 commit comments